简体   繁体   English

如何在iOS6中通过网页链接打开具有位置的计划应用程序?

[英]How to open Plan app with location from webpage link in iOS6?

On iOS <= 5, i only use: 在iOS <= 5上,我仅使用:

<a href="http://maps.google.com/maps?q=48.853873,2.336883">See Paris on "Plan"</a>

and safari open the link in plan 和野生动物园在计划中打开链接

On iOS6 this link is open in googlemaps website. 在iOS6上,此链接在googlemaps网站中打开。 I see their is a "maps:" protocole but i don't know the syntaxe. 我看到它们是“地图:”协议,但我不知道语法。

For example: 例如:

<a href="maps:48.853873,2.336883">See Paris on "Plan"</a>

will open "Plan" app on iOS6 but don't show any coordonate. 将在iOS6上打开“计划”应用程序,但不显示任何密码。

What is the minimal syntax for "maps:" protocole on iOS ? iOS上“ maps:”协议的最小语法是什么? Is their an API for "maps:" protocole for detailled syntax (adress, zoom level, ...) ? 他们的API是否针对“地图:”协议提供了详细的语法(地址,缩放级别等)?

ok, I answer myself... 好吧,我回答自己...

you can now use 您现在可以使用

<a href="http://maps.apple.com/maps?q=Paris,france">

on non iOS browser it will redirect to google maps. 在非iOS浏览器上,它将重定向到Google地图。

https://developer.apple.com/library/safari/#featuredarticles/iPhoneURLScheme_Reference/Articles/MapLinks.html https://developer.apple.com/library/safari/#featuredarticles/iPhoneURLScheme_Reference/Articles/MapLinks.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM