If you're using GDirections then the polyline you get back does follow 
roads.



If you're obtaining your directions some other way, and GDirections is 
supported in your country, then you could use GDirections on each 
polyline vertex to find the nearest point that is on a road. If that 
point is within a certain distance then you could consider your point to 
be on a road, but how much leeway to allow is unclear - some roads are 
much wider than others.

Hint: To make best use of your GDirections quota and requests-per-second 
limit, perform requests with up to 25 waypoints at once.

However, if GDirections is supported in your country, consider using 
that to obtain your directions.

-- 
http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

  • Directions michelle
    • Re: Directions Mike Williams

Reply via email to