// // MKReverseGeocoder.h // MapKit // // Copyright (c) 2009-2014, Apple Inc. All rights reserved. // #import #import #import #import #import @protocol MKReverseGeocoderDelegate; // MKReverseGeocoder is now deprecated. // Use CLGeocoder in CoreLocation instead. NS_CLASS_DEPRECATED(NA, NA, 3_0, 5_0) API_UNAVAILABLE(tvos, watchos) @interface MKReverseGeocoder : NSObject - (instancetype)initWithCoordinate:(CLLocationCoordinate2D)coordinate NS_DEPRECATED_IOS(3_0,5_0); // A MKReverseGeocoder object should only be started once. - (void)start NS_DEPRECATED_IOS(3_0,5_0); - (void)cancel NS_DEPRECATED_IOS(3_0,5_0); @property (nonatomic, weak) id delegate NS_DEPRECATED_IOS(3_0,5_0); @property (nonatomic, readonly) CLLocationCoordinate2D coordinate NS_DEPRECATED_IOS(3_0,5_0); @property (nonatomic, readonly) MKPlacemark *placemark NS_DEPRECATED_IOS(3_2,5_0); @property (nonatomic, readonly, getter=isQuerying) BOOL querying NS_DEPRECATED_IOS(3_0,5_0); @end NS_CLASS_DEPRECATED(NA, NA, 3_0, 5_0) API_UNAVAILABLE(tvos, watchos) @protocol MKReverseGeocoderDelegate @required - (void)reverseGeocoder:(MKReverseGeocoder *)geocoder didFindPlacemark:(MKPlacemark *)placemark NS_DEPRECATED_IOS(3_0,5_0); // There are at least two types of errors: // - Errors sent up from the underlying connection (temporary condition) // - Result not found errors (permanent condition). The result not found errors // will have the domain MKErrorDomain and the code MKErrorPlacemarkNotFound - (void)reverseGeocoder:(MKReverseGeocoder *)geocoder didFailWithError:(NSError *)error NS_DEPRECATED_IOS(3_0,5_0); @end