Perhaps you're trying to call .getPolyline() before the reply comes back from the server. Try listening for the "load" event.
You could then use EPoly.GetPointsAtDistance() to return a list of points at equal distances along the route. (Examining the points at each GStep won't work for routes that follow motorways or interstates for long distances, because you don't get GSteps along such a highway.) The next problem is that you'd need the points to be fairly close together to avoid the possibility of missing some postal codes, and attempting to reverse geocode all those points will require delays to avoid exceeding the reverse geocoding speed limit. If you're doing it interactively for long routes, your user might have to wait quite a while for the process to complete. -- Mike Williams http://econym.org.uk/gmap --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
