意图谷歌地图7.0.0与位置 [英] Intent for Google Maps 7.0.0 with location

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

问题描述

起初,我知道有计算器上几个类似的问题。 Curriently我用的是地缘方案解决可以通过其他应用程序来处理点。

At first I know that there are several similar questions on StackOverflow. Curriently I use the geo scheme for addressing points which can be handled by other apps.

就像在的Andr​​oid文档的例子 <子>(顺便说一句,似乎是过时的RFC吧) 我试图用这样的:

Like in the example of the Android documentation (by the way it seems to be outdated the RFC it out!) I tried to use something like this:

geo:50.95144,6.98725?q=50.95144,6.98725%20(Disneyland)

所以,我得到一个意向选择器,我可以选择一个应用程序,它给我的情况下,谷歌地图迪斯尼乐园上有一个标志。目前看来,在已安装更新从而消除了支持。我刚刚得到这个地方不能被发现的消息。

So I get a intent chooser where I can select an App which showed me in case of Google Maps Disneyland with a marker on it. Now it seems that an update was installed which removes that support. I just get the message that this place cannot been found.

我想了解 RFC 5870 它定义了全球环境展望URI方案。我不明白这一点完全。它是正确的,这是不可能的,在所有定义拉布勒?

I tried to understand the RFC 5870 which defines the 'geo' URI Scheme. I don't get it exactly. It is correct that it is not possible at all to define a lable?

如何我现在的位置链接到谷歌地图?

How can I link now a position to Google Maps?

推荐答案

在WhatsApp的目的是:

The WhatsApp intent is:

开始U0 {行动= android.intent.action.VIEW   猫= [android.intent.category.BROWSABLE]   DAT = https://maps.google.com ?/图Q = LOC:纬度,经度+(你)及RLZ = 1Y1TXLS_enDE543DE543   FLG = 0x3000000 CMP = com.android.browser / .BrowserActivity(有群众演员)}   从PID 2115

START u0 {act=android.intent.action.VIEW cat=[android.intent.category.BROWSABLE] dat=https://maps.google.com/maps?q=loc:lat,lng+(You)&rlz=1Y1TXLS_enDE543DE543 flg=0x3000000 cmp=com.android.browser/.BrowserActivity (has extras)} from pid 2115

因此​​,如果您使用以下意图的URI:

So if you use the following intent URI:

字符串geoUri =htt​​p://maps.google.com/maps?q=loc:+纬度+,+ LNG +(+ mTitle +);

...它应该表现得像WhatsApp的。此外,它似乎有些其他地理应用程序也对这个意图触发。但它并不适用于所有的地理应用程序的工作!

...it should behave like WhatsApp. Furthermore it seems that some other geo apps trigger on this intent too. But it doesn't work for all geo apps!

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

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