iPhone development - Locate address from user's position

限于喜欢 提交于 2019-12-20 10:58:19

问题


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?

Thanks.

Someone had already posted the question before. Just found out Get street address at lat/long pair


回答1:


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.

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

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

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




回答2:


Agreed - you need a reverse geocoding service - this is not included in Core Location. There is a fairly complete list of reverse geocoders here link text



来源:https://stackoverflow.com/questions/524077/iphone-development-locate-address-from-users-position

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!