gpt4 book ai didi

google-maps - 如何从移动 Safari 浏览器链接到 native Google Maps iOS 应用程序

转载 作者:行者123 更新时间:2023-12-03 17:58:01 27 4
gpt4 key购买 nike

我在某处读到(我忘了在哪里),现在可以使用 maps://协议(protocol)从移动 Safari 浏览器链接到 native Google Maps iOS 应用程序,并且该应用程序现在允许导入 KML 文件.我已经尝试了几个不同的链接 URL,但我似乎无法让它们中的任何一个工作。有谁知道使用带有 KML 文件的 maps://协议(protocol)的此 URL 的正确格式?任何帮助将不胜感激!

最佳答案

据我所知,没有这样的选择。
Apple Developer Documentation on Map Links
您只需重定向到 Google Maps 网站即可启动 Google Maps iOS 原生应用:

<a href="http://maps.google.com/maps?q=cupertino">Cupertino</a>
关于 KML, native 应用程序不会选择它(来自上面的链接):

The rules for creating a valid map link are as follows: ...

  • A parameter cannot be q=* if the value is a URL (so KML is not picked up). ...

关于google-maps - 如何从移动 Safari 浏览器链接到 native Google Maps iOS 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8055890/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com