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?

vale4674
  • 4,161
  • 13
  • 47
  • 72
  • 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 – Pavan Alapati Mar 19 '15 at 09:21

2 Answers2

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

Flov
  • 1,527
  • 16
  • 25
  • Now you can use go with "Standard Plan", much cheaper and still allows you to use the 23 waypoints: https://developers.google.com/maps/documentation/directions/usage-limits – miguev Jul 07 '16 at 10:19
  • @miguev 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? http://stackoverflow.com/questions/38702402/server-side-waypoint-limit-for-google-directions-api – terbubbs Aug 01 '16 at 15:24
  • You can use as many waypoints as you want for free with this solution: http://stackoverflow.com/questions/8779886/exceed-23-waypoint-per-request-limit-on-google-directions-api-business-work-lev/43458012#43458012 – mikep Apr 17 '17 at 20:09
3

Try sending multiple requests.

Vishwanath
  • 6,284
  • 4
  • 38
  • 57
  • 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) – vale4674 Dec 12 '10 at 11:45
  • 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. – vale4674 Dec 13 '10 at 15:22
  • @Vishwanath 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 – – Pavan Alapati Mar 19 '15 at 09:28
  • 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... – Vishwanath Mar 19 '15 at 09:31
  • See my answer in similar question with full code example http://stackoverflow.com/questions/8779886/exceed-23-waypoint-per-request-limit-on-google-directions-api-business-work-lev/43458012#43458012 – mikep Apr 17 '17 at 19:56