Distance and Bearing

Something i just found that i would love to have is for my LatLng to give me another LatLng with taking distance and bearing(by degree).  This would be an awesome addition to be able to draw other features, but for now i will have to settle for doing the calcs myself.  I am now looking up the functions in Flex to see if i can, but here is the formula as i got from http://www.movable-type.co.uk/scripts/latlong.html

 Formula:   

lat2 = asin(sin(lat1)*cos(d/R) + cos(lat1)*sin(d/R)*cos(brng))
    

lon2 = lon1 + atan2(sin(brng)*sin(d/R)*cos(lat1), cos(d/R)−sin(lat1)*sin(lat2))

Respond to this post