On Aug 5, 1:22 am, Rossko <[email protected]> wrote:
> > The waypoints feature seems to suggest that I can provide a list of
> > locations that the direction service must go through.
>
> Yes.
>
> > Question I have
> > is, can these waypoints be made optional so direction service chooses
> > the best route considering the waypoints as a restriction?
>
> Not using the API, there is no "avoid this" facility.
> There is enhancement request you could 'star' to vote for, but I
> wouldn't hold your 
> breathhttp://code.google.com/p/gmaps-api-issues/issues/detail?id=214

The way I read his question sounds like the "stopover" flag in the
DirectionsWaypoint:
http://code.google.com/apis/maps/documentation/javascript/reference.html#DirectionsWaypoint

There is also the optimize waypoints option:
http://code.google.com/apis/maps/documentation/javascript/reference.html#DirectionsRequest

optimizeWaypoints
boolean
If set to true, the DirectionService will attempt to re-order the
supplied intermediate waypoints to minimize overall cost of the route.
If waypoints are optimized, inspect DirectionsRoute.waypoint_order in
the response to determine the new ordering.

  -- Larry

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

Reply via email to