Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a "map:" URI prefix to launch map application? (like mailto: or tel:)

Is there such prefix for launching map application on phones,

<a href="map:21st,High Street, London">Toto's home</a>

like can do

<a href="mailto:[email protected]">Toto's mail</a>

2 Answers

geo: is an officially-recognised URI scheme, and maps: may be implemented in some clients.

https://en.wikipedia.org/wiki/Geo_URI_scheme

like image 58
Andrew Leach Avatar answered Sep 09 '25 08:09

Andrew Leach


In each planform:

Apple

Documentation

Example: <a href="http://maps.apple.com/?ll=12.34567,8.90123">

Android:

Documentation

Example: <a href="geo:40.726966,-74.006076">

Windows Phone:

Documentation

Example: <a href="bingmaps:?cp=40.726966~-74.006076">

like image 20
ivanxuu Avatar answered Sep 09 '25 06:09

ivanxuu