Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open google maps from hyperlink

I am trying to design a webpage specially for android users so i was wondering if there is a hyper link format that can open up google maps just like the call function eg

<a href="tel:0766551121"> Call me now </a> 
like image 984
opc0de Avatar asked Apr 18 '12 07:04

opc0de


People also ask

How do I open Google Maps in my browser?

If the Google Maps app is not installed, the map view will open in a mobile browser or in the default Maps app. , followed by Open View in Google Maps. If Google Maps is installed, and the zoom level selected is valid, Google Maps will open and display the same map view.

Why can't Google Maps open the Link?

You may need to update your Google Maps app, connect to a stronger Wi-Fi signal, recalibrate the app, or check your location services. You can also reinstall the Google Maps app if it isn't working, or simply restart your iPhone or Android phone.


2 Answers

If by "open up Google Maps" you mean the native Android Google Maps application instead of opening the link in the Android's browser then according to Geo Intents you can use the following Geo URI formats that trigger intents that will open the Google Maps application on the device to the given location or query:

  • geo:latitude,longitude
  • geo:latitude,longitude?z=zoom
  • geo:0,0?q=my+street+address
  • geo:0,0?q=business+near+city

For Google Streetview you can use:

  • google.streetview:cbll=lat,lng&cbp=1,yaw,,pitch,zoom&mz=mapZoom

For details on the available options see the official Google Maps Intents documentation

like image 156
Alex Bitek Avatar answered Sep 23 '22 17:09

Alex Bitek


use GEO URI for open a map on hyper link click like:

<a href="geo:37.786971,-122.399677;u=35">open map</a> 
like image 30
ρяσѕρєя K Avatar answered Sep 24 '22 17:09

ρяσѕρєя K