On Jan 27, 11:10 am, koala <[email protected]> wrote: > Is there a way for me to obtains the list of towns between two > destinations?
Yes, but it is not simple. One way to do it, (which is the wrong way), is to get directions between the two endpoints and then loop each vertex of the returned polyline and reverse geocode it, but that will get you banned very quickly. The right way to do it is to build your own database of cities for the area you want to cover, get directions between the two end points, read the returned polyline and send it to the server, and on the server side compare the points in the route with the locations of the cities in your database. That would be done differently depending on whether you represented your cities as points or as polygons in the database. -- Marcelo - http://maps.forum.nu -- > > For example if I say i want to go from Paris to Madrid, to get a list > of all the towns and cities the goole maps route goes through. > > Regards, > Koala. -- 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.
