How to use google map waypoints for TRANSIT

假装没事ソ 提交于 2019-12-24 05:12:18

问题


I know that we are not allowed to use google map API waypoints for TRANSIT, are there any ways (possible) that we can work around this to have google map find a direction to multiple addresses in waypoints but for TRANSIT only?


回答1:


From the documentation: As noted within the DirectionsRequest, you may also specify waypoints (of type DirectionsWaypoint) when calculating routes using the Directions service for walking, bicycling or driving directions. Waypoints are not available for transit directions.

The only "work-around" is to make multiple independent directions requests, noting that the directions service is subject to a quota and rate limit.



来源:https://stackoverflow.com/questions/22004102/how-to-use-google-map-waypoints-for-transit

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