【发布时间】:2012-01-20 07:56:11
【问题描述】:
我正在使用以下网址从谷歌地图获取行车路线。
http://maps.google.com/maps?f=d&hl=en&saddr=location1&daddr=location2&ie=UTF8&0&om=0&output=kml
我的 KML 文件中只有一条路线。但是当我们在网络浏览器中搜索相同的位置时,它会显示建议路线。
为了获得所有可用的路由作为输出,是否有在 URL 中添加任何其他参数。
我找到了一些答案,因为它使用 google Directions API for JavaScript with &alternatives=true 它适用于 android 吗?或任何其他解决方案??
如果网址有任何错误,请勿评论,我在我的应用程序中使用了正确的。
谢谢
【问题讨论】:
标签: android google-maps directions