Geo: protocol on iPhone Safari

The geo: URI scheme does not seem to work for me in the Safari browser for iphone. Did anyone manage to implement this? Here is a sample code:

<a href="geo:39.555551,-82.814171;">Test</a>

The above works on Android phones ... are there any alternatives to this? Thanks for the help!

+4
source share
3 answers

The scheme geo:, relatively new, is not supported by any embedded iOS applications. (It's a good idea to request a function , though.)

( iPhone OS 1.0) - URL- Google . : http://maps.google.com/maps?ll=37.331044,-122.029202 - Maps. ( , , Google iOS 6.)

URL, , geo, .

+5

iPhone (ios6) google earth geo:. Google Maps, comgooglemaps: Apple, "normal" http://maps.apple.com/.

+4

You can also handle this in pure Javascript. Its easiest to use Dojo, jQuery, or some other JS library that offers delegated event support.

https://github.com/prowestgis/dojo-geo-uri-polyfill

+2
source

Source: https://habr.com/ru/post/1674023/


All Articles