00001
00002
00003
00004
00005
00006
00007
00008 #import <UIKit/UIKit.h>
00009 #import <CoreLocation/CoreLocation.h>
00010 #import <BingMaps/BMTypes.h>
00011
00012 @class BMReverseGeocoderInternal;
00013 @class BMEntity;
00014 @protocol BMReverseGeocoderDelegate;
00015
00016 @interface BMReverseGeocoder : NSObject {
00017 @private
00018 BMReverseGeocoderInternal* _internal;
00019 }
00020
00021 - (id)initWithCoordinate:(CLLocationCoordinate2D)coordinate;
00022
00023 - (void)start;
00024 - (void)cancel;
00025
00026 @property (nonatomic, assign) id<BMReverseGeocoderDelegate> delegate;
00027
00028 @property (nonatomic, readonly) CLLocationCoordinate2D coordinate;
00029
00030 @property (nonatomic, readonly) BMEntity *entity;
00031
00032 @property (nonatomic, readonly, getter=isQuerying) BOOL querying;
00033
00034 @end
00035
00043 @protocol BMReverseGeocoderDelegate <NSObject>
00044 @required
00052 - (void)reverseGeocoder:(BMReverseGeocoder *)geocoder didFindEntity:(BMEntity *)entity;
00062 - (void)reverseGeocoder:(BMReverseGeocoder *)geocoder didFailWithError:(NSError *)error;
00063 @end