最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Trigger Google Maps from Android browser - Stack Overflow

programmeradmin1浏览0评论

I have a website designed for the android browser using jquery/jqtouch. As a part of it, i have a map page that loads. In the process of displaying my data, I found that some of my customer's addresses, when clicked kick of the google app map, with the data sent to it. It also seems to load and run a ton faster (as well as having all the benefits of navigation, etc).

So I've searched and searched, but am unable to "emulate" that built in function of kicking off the address. I've tried links with geo: and maps:, etc, but to none will open the installed app. Yet, just having a <li></li> item with an address, the browser will detect a "proper" address and open the app.

I don't care if i have to kick it off with javascript, or a href, it just has to be embedded in the html.

I have a website designed for the android browser using jquery/jqtouch. As a part of it, i have a map page that loads. In the process of displaying my data, I found that some of my customer's addresses, when clicked kick of the google app map, with the data sent to it. It also seems to load and run a ton faster (as well as having all the benefits of navigation, etc).

So I've searched and searched, but am unable to "emulate" that built in function of kicking off the address. I've tried links with geo: and maps:, etc, but to none will open the installed app. Yet, just having a <li></li> item with an address, the browser will detect a "proper" address and open the app.

I don't care if i have to kick it off with javascript, or a href, it just has to be embedded in the html.

Share Improve this question edited Mar 7, 2014 at 18:59 zmarties 4,86924 silver badges40 bronze badges asked Sep 30, 2010 at 2:53 MikeMike 2174 silver badges16 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 7

I see (at http://m.google./maps?dc=gbackstop ) there is a link: if you have Google Map app - 'Launch it now' and it links to following:

geo:28.61170,77.2747?z=15

I have verified above in address bar (goes to Delhi CWG games) and it works on my HTC Desire web browser.

From the android intent documentation, A zoom level of 1 shows the whole Earth, abd highest being 23:

geo:latitude,longitude
geo:latitude,longitude?z=zoom
geo:0,0?q=my+street+address
geo:0,0?q=business+near+city
发布评论

评论列表(0)

  1. 暂无评论