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 20 waypoints?

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