简体   繁体   English

如何使用CLGecoder从经纬度获取地址?

[英]How to get the Address from Latitude and longitude using CLGecoder?

I tried Using CLGeocoder but i am not getting the correct address. 我尝试使用CLGeocoder,但我没有获得正确的地址。 But however i tried the same using MKReverseGeocoder and i am getting the correct address. 但是,但是我尝试使用MKReverseGeocoder进行同样的操作,但是我得到了正确的地址。 Did anyone encounter this issue before. 有人遇到过这个问题吗? Is it a bug or am i going wrong somewhere. 是一个错误还是我在某个地方出错了。

It might be that CLGeocode service is having issues at the time of writing; 在撰写本文时,可能是CLGeocode服务出现问题。 for example some locations in southern Finland seem to get resolved to Estonia. 例如,芬兰南部的某些地区似乎已定居爱沙尼亚。 However, the very same location gets correct address via MKReverseGeocode without a problem. 但是,同一位置可以通过MKReverseGeocode获得正确的地址,而不会出现问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM