iphoneiosxcodegeolocationmkreversegeocoder

How to get house number with MKPlacemark


i can get the street and city by applying this code to the MKReversegeocoder

NSString* city = [placemark.addressDictionary valueForKey:@"City"];
NSString* street = [placemark.addressDictionary valueForKey:@"Street"]; 

now i am trying to get the street number is it possible?


Solution

  • I think what you're looking for is the subThoroughfare property of MKPlacemark. Note that in iOS 5.0+, subThoroughfare isn't declared on MKPlacemark. It now inherits this from the new superclass, CLPlacemark.