本文介绍了如何使用TRANSIT的谷歌地图航点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道我们不允许为TRANSIT使用Google地图API航点,有没有办法(可能)我们可以解决这个问题,让谷歌地图在航点找到多个地址的方向,但仅限于TRANSIT?
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?
推荐答案
从:如DirectionsRequest中所述,当使用路线服务计算路线时,您还可以指定路线点(DirectionsWaypoint类型)以用于步行,骑自行车或驾车路线。航点不适用于公共交通路线。
唯一的解决方法是制作多个独立路线请求,注意路线服务受配额和费率限制。
The only "work-around" is to make multiple independent directions requests, noting that the directions service is subject to a quota and rate limit.
这篇关于如何使用TRANSIT的谷歌地图航点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!