iPhone开发 - 从用户的位置找到地址 [英] iPhone development - Locate address from user's position

查看:145
本文介绍了iPhone开发 - 从用户的位置找到地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用CoreLocation框架获取用户当前所在的街道/区域?因此,如果我获得用户的经度和纬度位置,我可以从该位置获取地址(xx街道,yy城市,z州)吗?

Is it possible to get the street/area where the user currently is by using the CoreLocation framework? So if I get the user's longitude and latitude position, can I get the address (xx street, yy city, z state) from that position?

谢谢。

之前有人已经发布了这个问题。刚刚找到获取纬度/长对的街道地址

推荐答案

您需要的是反向地理编码服务,它将转换一个lat / lon坐标集到一个地址。我怀疑CoreLocation中包含了这个或访问一个。

What you would need is a reverse geocoding service, that will translate a lat/lon coordinate set in to an address. I doubt that this, or access to one, is included in CoreLocation.

您可以查看第三方提供商,例如Google Maps:

You could look into a third-party provider such as Google Maps:

http://nicogoeminne.googlepages.com/documentation.html

还有其他一些可以让你接近的解决方法。例如,通过使用Multimap的路由API,如下所述:

There are also other work-arounds that might get you close. For example by using Multimap's routing API as described in the following:

http://forums.multimap.com/viewtopic.php?f=1&t=51

这篇关于iPhone开发 - 从用户的位置找到地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆