On Jul 27, 6:38 am, novitonics <[email protected]> wrote:
> Hello,
> I read sometime ago that in order to calculate a route with
> waypoints,
> there was a limit of 25 waypoints (including origin and destination).
> Well I tried with 20 waypoints and the script won't work.
>
> Suprisingly I tried with 10 waypoints and the route was calculated
> with no issue.
> The parameter set I used to calculate my route are the following:
>
> 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};
>
> where bars is my array containing LatLang objects.
> So this code works perfectly well untill I add one more waypoint.
> Then
> it seems as if the script doesn't even execute.
>
> My question is: is there a way to concatenate 2 routes and thus
> compose a route containing at least 20 waypoints?

You should be able to (obviously you can't do too many without risking
running into the 2500/day quota (and associated rate limit), but I
would think 2 would work.  What have you tried?

  -- Larry

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