forked from mxcl/PromiseKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCLGeocoder+PromiseKit.h
37 lines (26 loc) · 1.08 KB
/
CLGeocoder+PromiseKit.h
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
#import <CoreLocation/CLGeocoder.h>
#import <PromiseKit/fwd.h>
/**
To import the `CLGecoder` category:
pod "PromiseKit/CLGeocoder"
Or you can import all categories on `CoreLocation`:
pod "PromiseKit/CoreLocation"
*/
@interface CLGeocoder (PromiseKit)
/**
Submits a reverse-geocoding request for the specified location.
@param location The location object containing the coordinate data to look up.
@return A promise that thens two parameters:
1. The first placemark that resides at the specified location.
2. The array of *all* placemarks that reside at the specified location.
*/
+ (PMKPromise *)reverseGeocode:(CLLocation *)location;
/**
Submits a forward-geocoding request using the specified address dictionary or address string.
@param addressDictionaryOrAddressString The address dictionary or address string to look up.
@return A promise that thens two parameters:
1. The first placemark that resides at the specified address.
2. The array of *all* placemarks that reside at the specified address.
*/
+ (PMKPromise *)geocode:(id)addressDictionaryOrAddressString;
@end