在 iPhone 上的地图上显示地址

发布于 2024-09-12 01:51:39 字数 121 浏览 1 评论 0原文

如果我提供一个 NSString 形式的地址。如何使用 Mapkit 向我显示一张以该位置为中心的地图以及显示该地址的图钉?做到这一点最简单的方法是什么?

编辑: 有没有办法调用内置地图应用程序来为我做到这一点?

If I supply an address as a NSString. How can I use mapkit to show me a map with that location centered and a push pin showing that address? What's the easiest way to do this?

EDIT:
Is there a way to call the built-in Maps app to do that for me?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

迷雾森÷林ヴ 2024-09-19 01:51:39

您需要转发地理编码地址才能获取 GPS 坐标。这些数据可通过 Google 等第三方的地理编码 API 获取。这是使用 Google API 进行正向地理编码的教程

请记下他们的使用条款

You'll need to forward geocode the address to obtain GPS coordinates. This data is available from third parties like Google via their Geocoding API. Here's a tutorial on forward geocoding using Google APIs.

Take note of their terms of use.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文