-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRMGeocoder.h
More file actions
42 lines (31 loc) · 1.05 KB
/
RMGeocoder.h
File metadata and controls
42 lines (31 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//
// RMGeocoder.h
//
// Created by Robert Mogos
//
#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
#import <MapKit/MKReverseGeocoder.h>
#import <MapKit/MKPlacemark.h>
@protocol RMGeocoderDelegate;
@interface RMGeocoder : NSObject<CLLocationManagerDelegate,MKReverseGeocoderDelegate> {
CLLocationManager *locationManager_;
id<RMGeocoderDelegate>delegate_;
BOOL hasBeenGeolocalized_;
BOOL translatePosition_;
}
@property(nonatomic,assign) id<RMGeocoderDelegate> delegate;
//inverse geocode the coordinates
- (void)retrieveAddressWithCoordinates:(CLLocationCoordinate2D)coords;
//geolocalize and inverse geocode the position
- (void)locateAndRetriever;
//geolocalize
- (void)locate;
@end
@protocol RMGeocoderDelegate <NSObject>
@optional
-(void)rmGeocoder:(RMGeocoder*)geocoder didFinishWithPlacemark:(MKPlacemark *)place
andLocation:(CLLocation *)location;
-(void)rmGeocoder:(RMGeocoder*)geocoder didFinishWithLocation:(CLLocation *)location;
-(void)rmGeocoder:(RMGeocoder*)geocoder didFinishWithError:(NSError*)error;
@end