2011-11-27 1 views
2

사용자의 현재 위치 거리를 저장하는 앱을 개발 중입니다. 이미 위치를 가지고 있고, 미안 거리와 번호를 얻기 위해 지오 코더를 사용하여 :iPhone에서 위치, subThoroughfare null입니다.

- (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 필드는 항상 null입니다.

나는 이것과 관련된 것을 발견했습니다 : https://stackoverflow.com/questions/7335094/mapkit-stopped-sending-subthoroughfare-when-the-coordinates-dont-correspond-to, 그러나 나는 항상 아르헨티나에서 정확한 위치에서도 null을 얻습니다. 안드로이드에서 아무 문제없이 거리 번호를 얻을 수 있습니다.

어떤 조언을 마지막으로 나는 위치를 reatrive하기 위해 구글 API를 사용하여 문제를 해결,

답변

0

확인을 이해할 수있을 것이다.