Google Maps API [Directions API] Waypoints limitation?
Asked Answered
B

2

8

Documentation says that waypoints limit is 8 points. But I have to draw a line with more than 8 waypoints. How to do that?

Barbarous answered 11/12, 2010 at 20:48 Comment(1)
We faced same problem.Please can you explain.how sending multiple request. We have array(waypoint).In Array have 21 latitude and longitude.We need when we page load 21 points will be showing google_mpasWashstand
T
3

Try sending multiple requests.

Tonie answered 12/12, 2010 at 7:23 Comment(5)
You mean as hardcode my GPS locations? E.g. if I have 16 locations I should send 2 requests: 10 (start + end + 8 waypoints) + 6 (start + end + 4 waypoints)Barbarous
ok tnx. that should do the trick.. but I think that it is stupid that v2 had mulitple waypoints and now v3 of API does't have that. No point in that.Barbarous
@Tonie We faced same problem.Please can you explain.how sending multiple request. We have array(waypoint).In Array have 21 latitude and longitude.We need when we page load 21 points will be showing google_mpas –Washstand
Although this is very old question and this was more of a suggestion than my own implementation. Check the very first comment by vale4674 for the idea...Tonie
See my answer in similar question with full code example #8780386Shoer
C
5

The Google Maps Api V3 says:

MAX_WAYPOINTS_EXCEEDED indicates that too many DirectionsWaypoints were provided in the DirectionsRequest. The maximum allowed waypoints is 8, plus the origin, and destination. Maps API Premier customers are allowed 23 waypoints, plus the origin, and destination.

You can go for API Premier but i guess it will cost you about 10.000$ a year

Campeche answered 26/6, 2011 at 15:43 Comment(3)
Now you can use go with "Standard Plan", much cheaper and still allows you to use the 23 waypoints: developers.google.com/maps/documentation/directions/…Dulaney
@Dulaney I am having an issue accessing that 23 waypoint limit in the standard plan. can you take a look at my question that I just posted? #38702902Rigmarole
You can use as many waypoints as you want for free with this solution: #8780386Shoer
T
3

Try sending multiple requests.

Tonie answered 12/12, 2010 at 7:23 Comment(5)
You mean as hardcode my GPS locations? E.g. if I have 16 locations I should send 2 requests: 10 (start + end + 8 waypoints) + 6 (start + end + 4 waypoints)Barbarous
ok tnx. that should do the trick.. but I think that it is stupid that v2 had mulitple waypoints and now v3 of API does't have that. No point in that.Barbarous
@Tonie We faced same problem.Please can you explain.how sending multiple request. We have array(waypoint).In Array have 21 latitude and longitude.We need when we page load 21 points will be showing google_mpas –Washstand
Although this is very old question and this was more of a suggestion than my own implementation. Check the very first comment by vale4674 for the idea...Tonie
See my answer in similar question with full code example #8780386Shoer

© 2022 - 2024 — McMap. All rights reserved.