On Mar 5, 5:10 am, khaldoon <khaldoon.ma...@gmail.com> wrote:
> Hi,
> Is there any way to add 5km distance to latitude, in order to move
> geographic point to 5 km north or add 5 km to longitude to move 5km east. I
> want to get the new lat and  lng after adding distance value.
> Example:
> lat1: 34
> lng1: 34
> after adding 5km in lat1, new point should be like
> new_lat1: 34+5km
> new_lng1: 34 (lng1 will remain same as we only added in latitude)

http://www.movable-type.co.uk/scripts/latlong.html

some of that functionality is in the "Geometry" library:
http://code.google.com/apis/maps/documentation/javascript/geometry.html

  -- Larry

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to