开发者

Getting city names from CLLocationManager?

开发者 https://www.devze.com 2023-04-05 03:06 出处:网络
I\'m using CLLocationManager on iOS to get the location of my device. Is there a way to get the city name.. e.g.:

I'm using CLLocationManager on iOS to get the location of my device.

Is there a way to get the city name.. e.g.:

Amsterdam

Utrecht

instead of coordinates such as:

<开发者_运维百科;+45.80397963, +13.50200231> +/- 65.00m (speed -1.00 mps / course -1.00) @ 14/09/11 22:47:42 Ora Legale Europa Centrale

thanks


What you need is reverse geocode. You may want to use an instance of MKReverseGeocoder, but there's restrictions about when you may use it. If you aren't going to show result on a map, you'll have to use some web based reverse geocode service.

0

精彩评论

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