• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Open URLs in Google Maps App

MaFt

Lurker
Not sure if this should be classed as a 'developer' question so please move it if you don't think it's appropriate for here!

I'm working on an LBS website (http://FindStuffNear.me - UK only POIs) - it is still work in progress but the main parts work. The final search page has a link to Google Maps. Now, the iPhone hijacks any http links to Google Maps pages and shows it in the native maps app (also does similar for YouTube). There is no special code needed for this to happen.

Is there a way in the Android browser to force links to open in the Google Maps app? Either as javascript or maybe a 'special' url like gmap://maps.google.com?q=.... etc?

Any help appreciated! Doing a web search for it brings up too much unrelated stuff - you try searching for GOOGLE, MAP and ANDROID!!!

MaFt
 
I am also very interested in this functionality. I would like to create hyperlinks in a mobile website that will launch Google Maps GPS software in my Incredible and then populate the destination field. Some sort of trick URL would be perfect.
 
you dont need any special link ...

just use ordinary link to google maps like

this one http://maps.google.com/maps?hl=en&q=prague,+czech

link encoded in qr code
img.php

use barcode scanner, open it in browser, and your mobile google maps application will be launched automaticaly

android browser automaticaly detects it and opens it in mobile application google maps for android (or any other installed map application, instead of web service) + user can change this behavior.
 
Back
Top Bottom