On Jul 27, 5:25 am, Andrew Leach <[email protected]> wrote:
> On Jul 27, 1:18 pm, novitonics <[email protected]> wrote:
>
>
>
> > var request = {
> >      origin:bars[0],
> >      destination:bars[9],
> >      waypoints: [{location:bars[1],stopover:true}.......,
> > {location:bars[8],stopover:true}],
> >      optimizeWaypoints: false,
> >      avoidTolls: true,
> >      travelMode: google.maps.DirectionsTravelMode.DRIVING};
>
> Version 
> 2:http://code.google.com/apis/maps/documentation/javascript/v2/referenc...
> says 25 waypoints.
>
> Your code is Version 3 code, for which the documentation is 
> athttp://code.google.com/apis/maps/documentation/javascript/basics.html.
> The Version 3 docs don't appear to mention a maximum number.

The version 3 limit is 8 waypoints, from:
http://code.google.com/apis/maps/documentation/javascript/reference.html#DirectionsStatus
MAX_WAYPOINTS_EXCEEDED  Too many DirectionsWaypoints were provided in
the DirectionsRequest. The total allowed waypoints is 8, plus the
origin and destination.

The Directions service limits are:
http://code.google.com/apis/maps/documentation/directions/#Limits
Use of the Google Directions API is subject to a query limit of 2,500
directions requests per day. Individual directions requests may
contain up to 8 intermediate waypoints in the request. Google Maps
Premier customers may query up to 100,000 directions requests per day,
with up to 23 waypoints allowed in each request.

  -- Larry

>
> You could always ask in the Version 3 
> Group:http://groups.google.com/group/google-maps-js-api-v3

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

Reply via email to