开发者

How to get the address of a latitude and longitude in an iphone application

开发者 https://www.devze.com 2022-12-17 11:27 出处:网络
I am getting latitude and longitude using CLLocation.I want to know how I can get the address by using this la开发者_JS百科titude and longitude.Please help me.You can use MKReverseGeocoder class for t

I am getting latitude and longitude using CLLocation. I want to know how I can get the address by using this la开发者_JS百科titude and longitude. Please help me.


You can use MKReverseGeocoder class for that purpose, which uses google reverse geocoding facilities.

Update: MKReverseGeocoder class is deprecated in iOS 5, you should use CLGeocoder class from Core Location framework instead. It provides functions for both forward and reverse geocoding - check class reference for more details

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号