Hi Phil- There's no API-provided mechanism for that. You could try querying a directions result to see if any of its steps were inside the polygon, and then re-issue the query with new waypoints inside that somehow avoid the polygon. Alternatively, you could just visualize the forbidden polygon on the map, and then provide markers that the user can drag to specify new waypoints to try to avoid the polygon. Avoiding a polygon is quite tricky though, since a route could start and end outside the poly, but still travel within it. You may want to star this feature request in the issue tracker: http://code.google.com/p/gmaps-api-issues/issues/detail?id=214
- pamela On Thu, Dec 11, 2008 at 9:00 PM, Phil <[email protected]> wrote: > > Hello, > I'm looking a way to avoid a Polygon when I call the direction.Load() > method so that the API looks for another way to go from point A to > point B. > The goal is to make some regions (or country ...) forbiden. > > Thanks. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API For Flash" 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-for-flash?hl=en -~----------~----~----~----~------~----~------~--~---
