If the route polyline is enough for you, the Directions web service will give it to you:
Directions Responses http://code.google.com/apis/maps/documentation/directions/#DirectionsResponses However, once you have a several-thousand-long route with tons of town and cities along it, obtaining their names using reverse geocoding would be subject to a rate limit so it may take a while to detect them all. Maybe you can detect them as you need them rather than all at once? On Tue, Jun 8, 2010 at 21:11, Stephen <[email protected]> wrote: > Is it possible to return coordinates or other location data for points > along a leg of a route calculated through the directions service? For > instance if I make an API call for directions between Seattle and > Chicago I would like to determine what cities the route passes > through. From what I can tell the smallest unit of distance the API > call returns are the legs, which with several over 800mi, would miss > most cities that the route returned. If it were possible to return > the polyline for the route I would be able to process that and pull > out cities from the geo-coordinate data, but I'm not finding any > documentation on pulling the polyline. Does anyone know if it is > possible to get that sort of more detailed location data out of the > results returned by a direction service call to the API? > Thanks! > -Stephen > > -- > 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]<google-maps-js-api-v3%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-maps-js-api-v3?hl=en. > > -- 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.
