URI与航点谷歌地图意图 [英] URI for Google Maps Intent with waypoints

查看:183
本文介绍了URI与航点谷歌地图意图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想添加到我的应用程序打开谷歌地图应用超过2分的能力,但我只能设置起点和终点。如何增加航点?
我试过的URI如 http://stackoverflow.com/a/13565504/3626048 描述,但它不工作。在谷歌地图文档 https://developers.google.com/maps/documentation/android/intents 有也一无所知。它甚至有可能到航点添加到谷歌地图意图是什么?

I would like to add to my app ability to open Google Maps app with more than 2 points but I can only set start point and end point. How to add waypoints? I've tried uri as described in http://stackoverflow.com/a/13565504/3626048 but it's not working. In Google Maps doc https://developers.google.com/maps/documentation/android/intents there's also nothing about it. Is it even possible to add waypoints to Google Maps intent?

推荐答案

我认为你可以使用 +到:航点

I think you can use +to:waypoint after the destination address. For example:

<一个href=\"https://www.google.com/maps?saddr=San+Francisco&daddr=GooglePlex+Mountain+View+to:San+Jose\" rel=\"nofollow\">https://www.google.com/maps?saddr=San+Francisco&daddr=GooglePlex+Mountain+View+to:San+Jose

或者

<一个href=\"https://www.google.com/maps?saddr=San+Francisco&daddr=GooglePlex+Mountain+View+to:Google+Building+45+to:San+Jose\" rel=\"nofollow\">https://www.google.com/maps?saddr=San+Francisco&daddr=GooglePlex+Mountain+View+to:Google+Building+45+to:San+Jose

这篇关于URI与航点谷歌地图意图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆