On Sep 22, 10:51 am, david gatard <[email protected]> wrote: > Bonjour, > Je désire mettre en place un distancier grâce à l'API. Quelqu'un l'a-t- > il déjà réalisé ? > Merci pour vos réponses et suggestions.
Straight-line distance: http://code.google.com/apis/maps/documentation/reference.html#GLatLng.distanceFrom var a=new GLatLng(...); var b=new GLatLng(...); var d=b.distanceFrom(a); Distance by road: http://code.google.com/apis/maps/documentation/reference.html#GDirections.getDistance var gd = new GDirections(...); var d; GEvent.addListener(gd,"load",function() { d = gd.getDistance().meters; } gd.load(...); Andrew --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" 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-api?hl=en -~----------~----~----~----~------~----~------~--~---
