3

我正在使用 CLGeocoder reverseGeocodeLocation 从坐标中获取地址,似乎在中国正在返回“地理编码器失败:错误域=kCLErrorDomain Code=8”操作无法完成。(kCLErrorDomain 错误 8。)“对于 loc:50.820835 4.385551”。从 iOs 5.0 开始,有人在中国遇到过 reverseGeocodeLocation 的问题吗?

4

3 回答 3

0

kCLErrorDomain 错误 8 是 kCLErrorGeocodeFoundNoResult。

我在罗马尼亚遇到了类似的问题,但是,如果不是完整地址,下面的代码至少应该返回城市。

[_geoCoder reverseGeocodeLocation:location
                    completionHandler:
     ^(NSArray *placemarks, NSError *error) {

    // Iterate trough placemarks

    CLPlacemark *placemark = [placemarks objectAtIndex:i];                 
    NSDictionary *addressDict = [placemark addressDictionary];

    //addressDict should contain your info.



}];
于 2012-10-23T10:59:48.733 回答
0

有时在中国,您只能反转中国的地理编码位置。

于 2012-11-13T11:50:36.853 回答
0

中国政府长期以来一直在封锁谷歌及其服务。对于北美地区的居民,请不要期望获得中国的详细地理信息。双方互相阻拦。

于 2019-10-02T07:23:11.553 回答