Geo:iPhone Safari上的协议 [英] Geo: Protocol on iPhone Safari

查看:188
本文介绍了Geo:iPhone Safari上的协议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在iphone safari浏览器中,geo:URI方案似乎不适用于我。有没有人有过这样的运气?以下是一段代码示例:

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

以上作品在Android手机上...有没有其他选择呢?感谢您的帮助!

解决方案

geo:新的,不支持iOS上的任何内置应用程序。 (但是,功能请求是个好主意。)



另一种方法(支持iPhone OS 1.0)是使用Google Maps URL 。例如: http://maps.google.com/maps?ll=37.331044,- 122.029202 - 这会自动重定向到地图应用程序。 (不过我不知道iOS 6中即将发布的非Google支持的地图可能会如何改变,或者如何改变这种情况。)



也可以注册第三方应用程序以处理系统应用程序未使用的URL方案,因此如果这对您有用,您可以创建自己的 geo 处理程序。


The geo: URI scheme doesn't seem to work for me on the iphone safari browser. Has anyone had any luck implementing this? Here is an example piece of 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!

解决方案

The geo: scheme, being relatively new, isn't supported by any builtin apps on iOS. (It's a good idea for a feature request, though.)

One alternative (supported all the way back to iPhone OS 1.0) is to use a Google Maps URL. For example: http://maps.google.com/maps?ll=37.331044,-122.029202 -- this will get automatically redirected to the Maps application. (I dunno if or how this might change with the forthcoming non-Google-backed Maps in iOS 6, though.)

It's also possible to register a third-party app to handle URL schemes not used by system apps, so you could create your own geo handler if that's useful to you.

这篇关于Geo:iPhone Safari上的协议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆