iPhone SDK - MapKit CoreLocation - 根据纬度和经度创建街道地址

发布于 2024-09-12 05:16:06 字数 128 浏览 2 评论 0原文

我正在构建的应用程序遇到问题。

我可以检索用户的纬度和经度,但是我需要将这些值转换为 NSString 街道地址。 IE。 “悉尼公园街 123 号”。

知道如何从坐标创建街道地址吗?

I have a problem in an app I am building.

I can retrieve the users latitude and longitude, however I need to convert those values into an NSString street address. ie. "123 Park Street, Sydney".

Any idea as to how I can create a street address from the coordinates?

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

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

发布评论

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

评论(1

青巷忧颜 2024-09-19 05:16:06

查看 MKReverseGeocoder 的文档。

编辑:如文档MKReverseGeocoder 在 iOS 5.0 中已弃用。请改用 CLGeocoder 类 (此处的文档此处为示例代码)。

Look at the documentation for MKReverseGeocoder.

Edit: As stated in the documentation, MKReverseGeocoder is deprecated in iOS 5.0. Use the CLGeocoder class instead (documentation here, example code here).

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