Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trigger Google Maps from Android browser

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.

like image 330
Mike Avatar asked Sep 30 '10 02:09

Mike


People also ask

How do I get Google Maps to open automatically?

Open the Gmail app and tap the menu icon in the top left corner of the screen. Scroll down to the bottom of the menu and tap Settings. On the Settings screen, tap the Default apps option. Under the Navigate from your location and the Navigate between location sections, tap to select Google Maps.

Can I use Google Maps in browser?

To use the full Google Maps with 3D imagery and Earth view, you need the latest version of one of these browsers: Google Chrome. Firefox. Safari.


1 Answers

I see (at http://m.google.com/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
like image 148
ankitjaininfo Avatar answered Oct 14 '22 15:10

ankitjaininfo