Google Maps API [Directions API] Waypoints limitation?

喜欢而已 提交于 2019-11-29 19:49:16

问题


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


回答1:


Try sending multiple requests.




回答2:


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



来源:https://stackoverflow.com/questions/4418875/google-maps-api-directions-api-waypoints-limitation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!