ユーザーの現在地の通りを保存するアプリを開発しています。私はすでに場所を把握しており、ジオコーダーを使用して通りと番号を取得しています。
- (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];
}
すべてうまくいきますが、私はアルゼンチンにいるので、目印のサブストリート フィールドは常に null です。
これに関連する何かを見つけました: https://stackoverflow.com/questions/7335094/mapkit-stopped-sending-subthoroughfare-when-the-coordinates-dont-correspond-to、しかし、正確な位置でも常にnullになります(アルゼンチン)。アンドロイドでは、通りの番号を問題なく取得できます。
アドバイスをいただければ幸いです