On 13 July 2011 13:32, Nico <[email protected]> wrote: > I already thought about something like that, but I don't know how to > implement that. How should I measure the distance between the two > points? Is there some kind of method I can use or do I have to > implement it myself somehow? In that case I probably have to convert > the measurements somehow .. Honestly I dont know where to start and it > would be very, very nice of you if you could give me a hint.
Hint: http://code.google.com/apis/maps/documentation/javascript/geometry.html var LL1=new google.maps.LatLng(...,...); var LL2=new google.maps.LatLng(...,...); var d=computeDistanceBetween(LL1,LL2); Note that you need to explicitly load the Geometry library, it's not part of the basic API. -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
