-
-
Notifications
You must be signed in to change notification settings - Fork 85
Expand file tree
/
Copy pathGeocodingHandler.h
More file actions
34 lines (26 loc) · 1.03 KB
/
GeocodingHandler.h
File metadata and controls
34 lines (26 loc) · 1.03 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
//
// GeocodingHandler.h
// Pods
//
// Created by Maurits van Beusekom on 07/06/2020.
//
#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
NS_ASSUME_NONNULL_BEGIN
typedef void (^GeocodingSuccess)(NSArray<CLPlacemark *> *);
typedef void (^GeocodingFailure)(NSString* errorCode, NSString* errorDescription);
@interface GeocodingHandler : NSObject
- (void) geocodeFromAddress: (NSString *)address
locale: (NSLocale *)locale
sLat: (CGFloat)sLat
wLng: (CGFloat)sLng
nLat: (CGFloat)nLat
eLng: (CGFloat)nLng
success: (_Nonnull GeocodingSuccess)successHandler
failure: (_Nonnull GeocodingFailure)failureHandler;
- (void) geocodeToAddress: (CLLocation *)location
locale: (NSLocale *)locale
success: (_Nonnull GeocodingSuccess)successHandler
failure: (_Nonnull GeocodingFailure)failureHandler;
@end
NS_ASSUME_NONNULL_END