Check out this page: http://www.movable-type.co.uk/scripts/latlong.html
Specifically, the spherical law of cosines. Use the google API to geocode the address, then simply plop the lat/long into the appropriate variables. Note that the bottom of the page has full javascript examples. Don't forget to convert to radians! On May 31, 5:02 pm, tazkiyah arrosyidah <[email protected]> wrote: > Hi, > > I am new with Google Map API, and i have work to create application to > calculate shortest distance between two point, my scenario like this: > > i have multiple GPS Device that representation with marker, and i have a > point (accident event ), how i can know distance every GPS to these accident > event, to calculate this i have lat/lng every GPS dan Accident Event > > Please help to solve my problem. > > Thanks -- 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.
