我正在开发一个应用程序来保存用户当前位置的街道。我已经有了位置,我正在使用地理编码器来获取街道和号码:
- (void)reverseGeocoder:(MKReverseGeocoder *)geocoder didFindPlacemark:(MKPlacemark *)placemark
{
// with the placemark you can now retrieve the city name
[self setCity:placemark.subLocality];
[self setStreet:placemark.thoroughfare];
[self setNumber:placemark.subThoroughfare];
}
一切都很顺利,但我在阿根廷,而地标的subthoroughfare字段总是空的。
我找到了与此相关的内容:https://stackoverflow.com/questions/7335094/mapkit-stopped-sending-subthoroughfare-when-the-coordinates-dont-correspond-to,但即使在准确的位置(在阿根廷),我也总是为空。在android中,我能够毫无问题地获得街道号码。
任何建议将不胜感激
答案 0 :(得分:0)
好的,最后我使用google apis解决了问题,以便重新获取该位置。