ArcGIS Runtime SDK for iOS: AGSLocatorTask.h Source File
ArcGIS Runtime SDK for iOS  100.9
AGSLocatorTask.h
Go to the documentation of this file.
1 /*
2  COPYRIGHT 1995-2020 ESRI
3 
4  TRADE SECRETS: ESRI PROPRIETARY AND CONFIDENTIAL
5  Unpublished material - all rights reserved under the
6  Copyright Laws of the United States and applicable international
7  laws, treaties, and conventions.
8 
9  For additional information, contact:
10  Environmental Systems Research Institute, Inc.
11  Attn: Contracts and Legal Services Department
12  380 New York Street
13  Redlands, California, 92373
14  USA
15 
16  email: contracts@esri.com
17  */
18 
19 #import <ArcGIS/AGSLoadableRemoteResourceBase.h>
20 
21 
22 
23 @class AGSLocatorInfo;
27 @class AGSSuggestResult;
28 @class AGSGeocodeResult;
29 @class AGSPoint;
30 
31 @protocol AGSCancelable;
32  //Required for Globals API doc
34 
45 
46 #pragma mark -
47 #pragma mark initializers
48 
49 
50 
56 -(instancetype)initWithURL:(NSURL*)URL;
57 
63 +(instancetype)locatorTaskWithURL:(NSURL*)URL;
64 
70 -(instancetype)initWithName:(NSString*)name;
71 
77 +(instancetype)locatorTaskWithName:(NSString*)name;
78 
79 #pragma mark -
80 #pragma mark properties
81 
86 @property (nullable, nonatomic, strong, readonly) AGSLocatorInfo *locatorInfo;
87 
88 #pragma mark -
89 #pragma mark methods
90 
97 -(id<AGSCancelable>)geocodeWithSearchText:(NSString *)searchText
98  completion:(void(^)(NSArray<AGSGeocodeResult*> * __nullable geocodeResults, NSError * __nullable error))completion;
99 
107 -(id<AGSCancelable>)geocodeWithSearchText:(NSString*)searchText
108  parameters:(AGSGeocodeParameters*)parameters
109  completion:(void(^)(NSArray<AGSGeocodeResult*> * __nullable geocodeResults, NSError * __nullable error))completion;
110 
117 -(id<AGSCancelable>)geocodeWithSuggestResult:(AGSSuggestResult*)suggestResult
118  completion:(void(^)(NSArray<AGSGeocodeResult*> * __nullable geocodeResults, NSError * __nullable error))completion;
119 
127 -(id<AGSCancelable>)geocodeWithSuggestResult:(AGSSuggestResult*)suggestResult
128  parameters:(AGSGeocodeParameters*)parameters
129  completion:(void(^)(NSArray<AGSGeocodeResult*> * __nullable geocodeResults, NSError * __nullable error))completion;
130 
137 -(id<AGSCancelable>)geocodeWithSearchValues:(NSDictionary<NSString*, NSString*> *)searchValues
138  completion:(void(^)(NSArray<AGSGeocodeResult*> * __nullable geocodeResults, NSError * __nullable error))completion;
139 
147 -(id<AGSCancelable>)geocodeWithSearchValues:(NSDictionary<NSString*, NSString*> *)searchValues
148  parameters:(AGSGeocodeParameters*)parameters
149  completion:(void(^)(NSArray<AGSGeocodeResult*> * __nullable geocodeResults, NSError * __nullable error))completion;
150 
157 -(id<AGSCancelable>)reverseGeocodeWithLocation:(AGSPoint*)location
158  completion:(void(^)(NSArray<AGSGeocodeResult*> * __nullable geocodeResults, NSError * __nullable error))completion;
159 
167 -(id<AGSCancelable>)reverseGeocodeWithLocation:(AGSPoint*)location
168  parameters:(AGSReverseGeocodeParameters*)parameters
169  completion:(void(^)(NSArray<AGSGeocodeResult*> * __nullable geocodeResults, NSError * __nullable error))completion;
170 
183 -(id<AGSCancelable>)suggestWithSearchText:(NSString*)searchText
184  completion:(void(^)(NSArray<AGSSuggestResult*> * __nullable suggestResults, NSError * __nullable error))completion;
185 
199 -(id<AGSCancelable>)suggestWithSearchText:(NSString*)searchText
200  parameters:(AGSSuggestParameters*)parameters
201  completion:(void(^)(NSArray<AGSSuggestResult*> * __nullable suggestResults, NSError * __nullable error))completion;
202 
203 @end
204 
205 
Parameters to refine gecoding results returned by AGSLocatorTask.
Definition: AGSGeocodeParameters.h:34
AGSLocatorInfo * locatorInfo
Definition: AGSLocatorTask.h:86
Input parameters for a suggest operation on AGSLocatorTask.
Definition: AGSSuggestParameters.h:32
A task to geocode and reverse-geocode addresses and places.
Definition: AGSLocatorTask.h:44
Definition: AGSLoadableRemoteResourceBase.h:28
Result of a suggest operation on AGSLocatorTask.
Definition: AGSSuggestResult.h:29
A match candidate returned from an AGSLocatorTask geocode or reverse geocode operation.
Definition: AGSGeocodeResult.h:35
Parameters to refine reverse-gecoding results returned by AGSLocatorTask.
Definition: AGSReverseGeocodeParameters.h:32
Metadata about the locator service or dataset used by AGSLocatorTask.
Definition: AGSLocatorInfo.h:32
A location defined by x and y (and optionally z) coordinates.
Definition: AGSPoint.h:57
A protocol exposed by operations that allow cancellation.
Definition: AGSCancelable.h:32