ios 如何通过网络链接在 Google Maps iPhone 应用程序上放置图钉?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/15361186/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to drop a pin on Google Maps iPhone app via web link?
提问by Chaddeus
I used to just be able to have a link to a coordinate on Google Maps, like https://maps.google.com/maps?q=35.7491455078125,139.382995605469
我曾经只能链接到 Google 地图上的坐标,例如https://maps.google.com/maps?q=35.7491455078125,139.382995605469
but now that Apple kicked out the original Maps app, and Google has re-launched another one, links like that no longer drop a pin on the maps of iOS users.
但现在苹果踢出了最初的地图应用程序,谷歌又重新推出了另一个应用程序,这样的链接不再在 iOS 用户的地图上留下一个图钉。
Is there a way to drop a pin on a visitor's Google Maps app with the click of a link?
有没有办法通过单击链接在访问者的 Google 地图应用程序上放置图钉?
回答by Joel Kalmanowicz
Sounds like the official Maps URLs would work for you. In your example, this should work (and across platforms, too!):
听起来官方地图网址对您有用。在您的示例中,这应该有效(也可以跨平台!):
https://www.google.com/maps/search/?api=1&query=35.7491455078125,139.382995605469
https://www.google.com/maps/search/?api=1&query=35.7491455078125,139.382995605469
You can read the full documentation at https://developers.google.com/maps/documentation/urls/guide
您可以在https://developers.google.com/maps/documentation/urls/guide阅读完整的文档
回答by Daan Lemmen
Replace http://maps.google.comwith http://maps.apple.com, hopefully that works!