开发者

get address from reverse geocoding

开发者 https://www.devze.com 2022-12-27 12:45 出处:网络
in my application, I got a map that show the location of the user. But I also need to get the ex开发者_JS百科act address of where he is and put it in a string.

in my application, I got a map that show the location of the user. But I also need to get the ex开发者_JS百科act address of where he is and put it in a string.

How does it work?


Use MKReverseGeocoder. Look at the Apple sample app CurrentAddress.
The placemark object passed into didFindPlacemark has the address fields which you can put into a string.

0

精彩评论

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

关注公众号