// // Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"). // You may not use this file except in compliance with the License. // A copy of the License is located at // // http://aws.amazon.com/apache2.0 // // or in the "license" file accompanying this file. This file is distributed // on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either // express or implied. See the License for the specific language governing // permissions and limitations under the License. // #import #import #import "AWSLocationModel.h" #import "AWSLocationResources.h" NS_ASSUME_NONNULL_BEGIN //! SDK version for AWSLocation FOUNDATION_EXPORT NSString *const AWSLocationSDKVersion; /**

"Suite of geospatial services including Maps, Places, Routes, Tracking, and Geofencing"

*/ @interface AWSLocation : AWSService /** The service configuration used to instantiate this service client. @warning Once the client is instantiated, do not modify the configuration object. It may cause unspecified behaviors. */ @property (nonatomic, strong, readonly) AWSServiceConfiguration *configuration; /** Returns the singleton service client. If the singleton object does not exist, the SDK instantiates the default service client with `defaultServiceConfiguration` from `[AWSServiceManager defaultServiceManager]`. The reference to this object is maintained by the SDK, and you do not need to retain it manually. For example, set the default service configuration in `- application:didFinishLaunchingWithOptions:` *Swift* func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { let credentialProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: "YourIdentityPoolId") let configuration = AWSServiceConfiguration(region: .USEast1, credentialsProvider: credentialProvider) AWSServiceManager.default().defaultServiceConfiguration = configuration return true } *Objective-C* - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1 identityPoolId:@"YourIdentityPoolId"]; AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:credentialsProvider]; [AWSServiceManager defaultServiceManager].defaultServiceConfiguration = configuration; return YES; } Then call the following to get the default service client: *Swift* let Location = AWSLocation.default() *Objective-C* AWSLocation *Location = [AWSLocation defaultLocation]; @return The default service client. */ + (instancetype)defaultLocation; /** Creates a service client with the given service configuration and registers it for the key. For example, set the default service configuration in `- application:didFinishLaunchingWithOptions:` *Swift* func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { let credentialProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: "YourIdentityPoolId") let configuration = AWSServiceConfiguration(region: .USWest2, credentialsProvider: credentialProvider) AWSLocation.register(with: configuration!, forKey: "USWest2Location") return true } *Objective-C* - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1 identityPoolId:@"YourIdentityPoolId"]; AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSWest2 credentialsProvider:credentialsProvider]; [AWSLocation registerLocationWithConfiguration:configuration forKey:@"USWest2Location"]; return YES; } Then call the following to get the service client: *Swift* let Location = AWSLocation(forKey: "USWest2Location") *Objective-C* AWSLocation *Location = [AWSLocation LocationForKey:@"USWest2Location"]; @warning After calling this method, do not modify the configuration object. It may cause unspecified behaviors. @param configuration A service configuration object. @param key A string to identify the service client. */ + (void)registerLocationWithConfiguration:(AWSServiceConfiguration *)configuration forKey:(NSString *)key; /** Retrieves the service client associated with the key. You need to call `+ registerLocationWithConfiguration:forKey:` before invoking this method. For example, set the default service configuration in `- application:didFinishLaunchingWithOptions:` *Swift* func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { let credentialProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: "YourIdentityPoolId") let configuration = AWSServiceConfiguration(region: .USWest2, credentialsProvider: credentialProvider) AWSLocation.register(with: configuration!, forKey: "USWest2Location") return true } *Objective-C* - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1 identityPoolId:@"YourIdentityPoolId"]; AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSWest2 credentialsProvider:credentialsProvider]; [AWSLocation registerLocationWithConfiguration:configuration forKey:@"USWest2Location"]; return YES; } Then call the following to get the service client: *Swift* let Location = AWSLocation(forKey: "USWest2Location") *Objective-C* AWSLocation *Location = [AWSLocation LocationForKey:@"USWest2Location"]; @param key A string to identify the service client. @return An instance of the service client. */ + (instancetype)LocationForKey:(NSString *)key; /** Removes the service client associated with the key and release it. @warning Before calling this method, make sure no method is running on this client. @param key A string to identify the service client. */ + (void)removeLocationForKey:(NSString *)key; /**

Creates an association between a geofence collection and a tracker resource. This allows the tracker resource to communicate location data to the linked geofence collection.

You can associate up to five geofence collections to each tracker resource.

Currently not supported — Cross-account configurations, such as creating associations between a tracker resource in one account and a geofence collection in another account.

@param request A container for the necessary parameters to execute the AssociateTrackerConsumer service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationAssociateTrackerConsumerResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorConflict`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorServiceQuotaExceeded`, `AWSLocationErrorThrottling`. @see AWSLocationAssociateTrackerConsumerRequest @see AWSLocationAssociateTrackerConsumerResponse */ - (AWSTask *)associateTrackerConsumer:(AWSLocationAssociateTrackerConsumerRequest *)request; /**

Creates an association between a geofence collection and a tracker resource. This allows the tracker resource to communicate location data to the linked geofence collection.

You can associate up to five geofence collections to each tracker resource.

Currently not supported — Cross-account configurations, such as creating associations between a tracker resource in one account and a geofence collection in another account.

@param request A container for the necessary parameters to execute the AssociateTrackerConsumer service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorConflict`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorServiceQuotaExceeded`, `AWSLocationErrorThrottling`. @see AWSLocationAssociateTrackerConsumerRequest @see AWSLocationAssociateTrackerConsumerResponse */ - (void)associateTrackerConsumer:(AWSLocationAssociateTrackerConsumerRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationAssociateTrackerConsumerResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Deletes the position history of one or more devices from a tracker resource.

@param request A container for the necessary parameters to execute the BatchDeleteDevicePositionHistory service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationBatchDeleteDevicePositionHistoryResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationBatchDeleteDevicePositionHistoryRequest @see AWSLocationBatchDeleteDevicePositionHistoryResponse */ - (AWSTask *)batchDeleteDevicePositionHistory:(AWSLocationBatchDeleteDevicePositionHistoryRequest *)request; /**

Deletes the position history of one or more devices from a tracker resource.

@param request A container for the necessary parameters to execute the BatchDeleteDevicePositionHistory service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationBatchDeleteDevicePositionHistoryRequest @see AWSLocationBatchDeleteDevicePositionHistoryResponse */ - (void)batchDeleteDevicePositionHistory:(AWSLocationBatchDeleteDevicePositionHistoryRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationBatchDeleteDevicePositionHistoryResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Deletes a batch of geofences from a geofence collection.

This operation deletes the resource permanently.

@param request A container for the necessary parameters to execute the BatchDeleteGeofence service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationBatchDeleteGeofenceResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationBatchDeleteGeofenceRequest @see AWSLocationBatchDeleteGeofenceResponse */ - (AWSTask *)batchDeleteGeofence:(AWSLocationBatchDeleteGeofenceRequest *)request; /**

Deletes a batch of geofences from a geofence collection.

This operation deletes the resource permanently.

@param request A container for the necessary parameters to execute the BatchDeleteGeofence service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationBatchDeleteGeofenceRequest @see AWSLocationBatchDeleteGeofenceResponse */ - (void)batchDeleteGeofence:(AWSLocationBatchDeleteGeofenceRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationBatchDeleteGeofenceResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Evaluates device positions against the geofence geometries from a given geofence collection.

This operation always returns an empty response because geofences are asynchronously evaluated. The evaluation determines if the device has entered or exited a geofenced area, and then publishes one of the following events to Amazon EventBridge:

  • ENTER if Amazon Location determines that the tracked device has entered a geofenced area.

  • EXIT if Amazon Location determines that the tracked device has exited a geofenced area.

The last geofence that a device was observed within is tracked for 30 days after the most recent device position update.

Geofence evaluation uses the given device position. It does not account for the optional Accuracy of a DevicePositionUpdate.

The DeviceID is used as a string to represent the device. You do not need to have a Tracker associated with the DeviceID.

@param request A container for the necessary parameters to execute the BatchEvaluateGeofences service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationBatchEvaluateGeofencesResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationBatchEvaluateGeofencesRequest @see AWSLocationBatchEvaluateGeofencesResponse */ - (AWSTask *)batchEvaluateGeofences:(AWSLocationBatchEvaluateGeofencesRequest *)request; /**

Evaluates device positions against the geofence geometries from a given geofence collection.

This operation always returns an empty response because geofences are asynchronously evaluated. The evaluation determines if the device has entered or exited a geofenced area, and then publishes one of the following events to Amazon EventBridge:

  • ENTER if Amazon Location determines that the tracked device has entered a geofenced area.

  • EXIT if Amazon Location determines that the tracked device has exited a geofenced area.

The last geofence that a device was observed within is tracked for 30 days after the most recent device position update.

Geofence evaluation uses the given device position. It does not account for the optional Accuracy of a DevicePositionUpdate.

The DeviceID is used as a string to represent the device. You do not need to have a Tracker associated with the DeviceID.

@param request A container for the necessary parameters to execute the BatchEvaluateGeofences service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationBatchEvaluateGeofencesRequest @see AWSLocationBatchEvaluateGeofencesResponse */ - (void)batchEvaluateGeofences:(AWSLocationBatchEvaluateGeofencesRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationBatchEvaluateGeofencesResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists the latest device positions for requested devices.

@param request A container for the necessary parameters to execute the BatchGetDevicePosition service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationBatchGetDevicePositionResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationBatchGetDevicePositionRequest @see AWSLocationBatchGetDevicePositionResponse */ - (AWSTask *)batchGetDevicePosition:(AWSLocationBatchGetDevicePositionRequest *)request; /**

Lists the latest device positions for requested devices.

@param request A container for the necessary parameters to execute the BatchGetDevicePosition service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationBatchGetDevicePositionRequest @see AWSLocationBatchGetDevicePositionResponse */ - (void)batchGetDevicePosition:(AWSLocationBatchGetDevicePositionRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationBatchGetDevicePositionResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

A batch request for storing geofence geometries into a given geofence collection, or updates the geometry of an existing geofence if a geofence ID is included in the request.

@param request A container for the necessary parameters to execute the BatchPutGeofence service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationBatchPutGeofenceResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationBatchPutGeofenceRequest @see AWSLocationBatchPutGeofenceResponse */ - (AWSTask *)batchPutGeofence:(AWSLocationBatchPutGeofenceRequest *)request; /**

A batch request for storing geofence geometries into a given geofence collection, or updates the geometry of an existing geofence if a geofence ID is included in the request.

@param request A container for the necessary parameters to execute the BatchPutGeofence service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationBatchPutGeofenceRequest @see AWSLocationBatchPutGeofenceResponse */ - (void)batchPutGeofence:(AWSLocationBatchPutGeofenceRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationBatchPutGeofenceResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Uploads position update data for one or more devices to a tracker resource (up to 10 devices per batch). Amazon Location uses the data when it reports the last known device position and position history. Amazon Location retains location data for 30 days.

Position updates are handled based on the PositionFiltering property of the tracker. When PositionFiltering is set to TimeBased, updates are evaluated against linked geofence collections, and location data is stored at a maximum of one position per 30 second interval. If your update frequency is more often than every 30 seconds, only one update per 30 seconds is stored for each unique device ID.

When PositionFiltering is set to DistanceBased filtering, location data is stored and evaluated against linked geofence collections only if the device has moved more than 30 m (98.4 ft).

When PositionFiltering is set to AccuracyBased filtering, location data is stored and evaluated against linked geofence collections only if the device has moved more than the measured accuracy. For example, if two consecutive updates from a device have a horizontal accuracy of 5 m and 10 m, the second update is neither stored or evaluated if the device has moved less than 15 m. If PositionFiltering is set to AccuracyBased filtering, Amazon Location uses the default value { "Horizontal": 0} when accuracy is not provided on a DevicePositionUpdate.

@param request A container for the necessary parameters to execute the BatchUpdateDevicePosition service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationBatchUpdateDevicePositionResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationBatchUpdateDevicePositionRequest @see AWSLocationBatchUpdateDevicePositionResponse */ - (AWSTask *)batchUpdateDevicePosition:(AWSLocationBatchUpdateDevicePositionRequest *)request; /**

Uploads position update data for one or more devices to a tracker resource (up to 10 devices per batch). Amazon Location uses the data when it reports the last known device position and position history. Amazon Location retains location data for 30 days.

Position updates are handled based on the PositionFiltering property of the tracker. When PositionFiltering is set to TimeBased, updates are evaluated against linked geofence collections, and location data is stored at a maximum of one position per 30 second interval. If your update frequency is more often than every 30 seconds, only one update per 30 seconds is stored for each unique device ID.

When PositionFiltering is set to DistanceBased filtering, location data is stored and evaluated against linked geofence collections only if the device has moved more than 30 m (98.4 ft).

When PositionFiltering is set to AccuracyBased filtering, location data is stored and evaluated against linked geofence collections only if the device has moved more than the measured accuracy. For example, if two consecutive updates from a device have a horizontal accuracy of 5 m and 10 m, the second update is neither stored or evaluated if the device has moved less than 15 m. If PositionFiltering is set to AccuracyBased filtering, Amazon Location uses the default value { "Horizontal": 0} when accuracy is not provided on a DevicePositionUpdate.

@param request A container for the necessary parameters to execute the BatchUpdateDevicePosition service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationBatchUpdateDevicePositionRequest @see AWSLocationBatchUpdateDevicePositionResponse */ - (void)batchUpdateDevicePosition:(AWSLocationBatchUpdateDevicePositionRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationBatchUpdateDevicePositionResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Calculates a route given the following required parameters: DeparturePosition and DestinationPosition. Requires that you first create a route calculator resource.

By default, a request that doesn't specify a departure time uses the best time of day to travel with the best traffic conditions when calculating the route.

Additional options include:

  • Specifying a departure time using either DepartureTime or DepartNow. This calculates a route based on predictive traffic data at the given time.

    You can't specify both DepartureTime and DepartNow in a single request. Specifying both parameters returns a validation error.

  • Specifying a travel mode using TravelMode sets the transportation mode used to calculate the routes. This also lets you specify additional route preferences in CarModeOptions if traveling by Car, or TruckModeOptions if traveling by Truck.

    If you specify walking for the travel mode and your data provider is Esri, the start and destination must be within 40km.

@param request A container for the necessary parameters to execute the CalculateRoute service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationCalculateRouteResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationCalculateRouteRequest @see AWSLocationCalculateRouteResponse */ - (AWSTask *)calculateRoute:(AWSLocationCalculateRouteRequest *)request; /**

Calculates a route given the following required parameters: DeparturePosition and DestinationPosition. Requires that you first create a route calculator resource.

By default, a request that doesn't specify a departure time uses the best time of day to travel with the best traffic conditions when calculating the route.

Additional options include:

  • Specifying a departure time using either DepartureTime or DepartNow. This calculates a route based on predictive traffic data at the given time.

    You can't specify both DepartureTime and DepartNow in a single request. Specifying both parameters returns a validation error.

  • Specifying a travel mode using TravelMode sets the transportation mode used to calculate the routes. This also lets you specify additional route preferences in CarModeOptions if traveling by Car, or TruckModeOptions if traveling by Truck.

    If you specify walking for the travel mode and your data provider is Esri, the start and destination must be within 40km.

@param request A container for the necessary parameters to execute the CalculateRoute service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationCalculateRouteRequest @see AWSLocationCalculateRouteResponse */ - (void)calculateRoute:(AWSLocationCalculateRouteRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationCalculateRouteResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Calculates a route matrix given the following required parameters: DeparturePositions and DestinationPositions. CalculateRouteMatrix calculates routes and returns the travel time and travel distance from each departure position to each destination position in the request. For example, given departure positions A and B, and destination positions X and Y, CalculateRouteMatrix will return time and distance for routes from A to X, A to Y, B to X, and B to Y (in that order). The number of results returned (and routes calculated) will be the number of DeparturePositions times the number of DestinationPositions.

Your account is charged for each route calculated, not the number of requests.

Requires that you first create a route calculator resource.

By default, a request that doesn't specify a departure time uses the best time of day to travel with the best traffic conditions when calculating routes.

Additional options include:

  • Specifying a departure time using either DepartureTime or DepartNow. This calculates routes based on predictive traffic data at the given time.

    You can't specify both DepartureTime and DepartNow in a single request. Specifying both parameters returns a validation error.

  • Specifying a travel mode using TravelMode sets the transportation mode used to calculate the routes. This also lets you specify additional route preferences in CarModeOptions if traveling by Car, or TruckModeOptions if traveling by Truck.

@param request A container for the necessary parameters to execute the CalculateRouteMatrix service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationCalculateRouteMatrixResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationCalculateRouteMatrixRequest @see AWSLocationCalculateRouteMatrixResponse */ - (AWSTask *)calculateRouteMatrix:(AWSLocationCalculateRouteMatrixRequest *)request; /**

Calculates a route matrix given the following required parameters: DeparturePositions and DestinationPositions. CalculateRouteMatrix calculates routes and returns the travel time and travel distance from each departure position to each destination position in the request. For example, given departure positions A and B, and destination positions X and Y, CalculateRouteMatrix will return time and distance for routes from A to X, A to Y, B to X, and B to Y (in that order). The number of results returned (and routes calculated) will be the number of DeparturePositions times the number of DestinationPositions.

Your account is charged for each route calculated, not the number of requests.

Requires that you first create a route calculator resource.

By default, a request that doesn't specify a departure time uses the best time of day to travel with the best traffic conditions when calculating routes.

Additional options include:

  • Specifying a departure time using either DepartureTime or DepartNow. This calculates routes based on predictive traffic data at the given time.

    You can't specify both DepartureTime and DepartNow in a single request. Specifying both parameters returns a validation error.

  • Specifying a travel mode using TravelMode sets the transportation mode used to calculate the routes. This also lets you specify additional route preferences in CarModeOptions if traveling by Car, or TruckModeOptions if traveling by Truck.

@param request A container for the necessary parameters to execute the CalculateRouteMatrix service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationCalculateRouteMatrixRequest @see AWSLocationCalculateRouteMatrixResponse */ - (void)calculateRouteMatrix:(AWSLocationCalculateRouteMatrixRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationCalculateRouteMatrixResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Creates a geofence collection, which manages and stores geofences.

@param request A container for the necessary parameters to execute the CreateGeofenceCollection service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationCreateGeofenceCollectionResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorConflict`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorServiceQuotaExceeded`, `AWSLocationErrorThrottling`. @see AWSLocationCreateGeofenceCollectionRequest @see AWSLocationCreateGeofenceCollectionResponse */ - (AWSTask *)createGeofenceCollection:(AWSLocationCreateGeofenceCollectionRequest *)request; /**

Creates a geofence collection, which manages and stores geofences.

@param request A container for the necessary parameters to execute the CreateGeofenceCollection service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorConflict`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorServiceQuotaExceeded`, `AWSLocationErrorThrottling`. @see AWSLocationCreateGeofenceCollectionRequest @see AWSLocationCreateGeofenceCollectionResponse */ - (void)createGeofenceCollection:(AWSLocationCreateGeofenceCollectionRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationCreateGeofenceCollectionResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Creates an API key resource in your Amazon Web Services account, which lets you grant actions for Amazon Location resources to the API key bearer.

For more information, see Using API keys.

@param request A container for the necessary parameters to execute the CreateKey service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationCreateKeyResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorConflict`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorServiceQuotaExceeded`, `AWSLocationErrorThrottling`. @see AWSLocationCreateKeyRequest @see AWSLocationCreateKeyResponse */ - (AWSTask *)createKey:(AWSLocationCreateKeyRequest *)request; /**

Creates an API key resource in your Amazon Web Services account, which lets you grant actions for Amazon Location resources to the API key bearer.

For more information, see Using API keys.

@param request A container for the necessary parameters to execute the CreateKey service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorConflict`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorServiceQuotaExceeded`, `AWSLocationErrorThrottling`. @see AWSLocationCreateKeyRequest @see AWSLocationCreateKeyResponse */ - (void)createKey:(AWSLocationCreateKeyRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationCreateKeyResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Creates a map resource in your Amazon Web Services account, which provides map tiles of different styles sourced from global location data providers.

If your application is tracking or routing assets you use in your business, such as delivery vehicles or employees, you must not use Esri as your geolocation provider. See section 82 of the Amazon Web Services service terms for more details.

@param request A container for the necessary parameters to execute the CreateMap service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationCreateMapResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorConflict`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorServiceQuotaExceeded`, `AWSLocationErrorThrottling`. @see AWSLocationCreateMapRequest @see AWSLocationCreateMapResponse */ - (AWSTask *)createMap:(AWSLocationCreateMapRequest *)request; /**

Creates a map resource in your Amazon Web Services account, which provides map tiles of different styles sourced from global location data providers.

If your application is tracking or routing assets you use in your business, such as delivery vehicles or employees, you must not use Esri as your geolocation provider. See section 82 of the Amazon Web Services service terms for more details.

@param request A container for the necessary parameters to execute the CreateMap service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorConflict`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorServiceQuotaExceeded`, `AWSLocationErrorThrottling`. @see AWSLocationCreateMapRequest @see AWSLocationCreateMapResponse */ - (void)createMap:(AWSLocationCreateMapRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationCreateMapResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Creates a place index resource in your Amazon Web Services account. Use a place index resource to geocode addresses and other text queries by using the SearchPlaceIndexForText operation, and reverse geocode coordinates by using the SearchPlaceIndexForPosition operation, and enable autosuggestions by using the SearchPlaceIndexForSuggestions operation.

If your application is tracking or routing assets you use in your business, such as delivery vehicles or employees, you must not use Esri as your geolocation provider. See section 82 of the Amazon Web Services service terms for more details.

@param request A container for the necessary parameters to execute the CreatePlaceIndex service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationCreatePlaceIndexResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorConflict`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorServiceQuotaExceeded`, `AWSLocationErrorThrottling`. @see AWSLocationCreatePlaceIndexRequest @see AWSLocationCreatePlaceIndexResponse */ - (AWSTask *)createPlaceIndex:(AWSLocationCreatePlaceIndexRequest *)request; /**

Creates a place index resource in your Amazon Web Services account. Use a place index resource to geocode addresses and other text queries by using the SearchPlaceIndexForText operation, and reverse geocode coordinates by using the SearchPlaceIndexForPosition operation, and enable autosuggestions by using the SearchPlaceIndexForSuggestions operation.

If your application is tracking or routing assets you use in your business, such as delivery vehicles or employees, you must not use Esri as your geolocation provider. See section 82 of the Amazon Web Services service terms for more details.

@param request A container for the necessary parameters to execute the CreatePlaceIndex service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorConflict`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorServiceQuotaExceeded`, `AWSLocationErrorThrottling`. @see AWSLocationCreatePlaceIndexRequest @see AWSLocationCreatePlaceIndexResponse */ - (void)createPlaceIndex:(AWSLocationCreatePlaceIndexRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationCreatePlaceIndexResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Creates a route calculator resource in your Amazon Web Services account.

You can send requests to a route calculator resource to estimate travel time, distance, and get directions. A route calculator sources traffic and road network data from your chosen data provider.

If your application is tracking or routing assets you use in your business, such as delivery vehicles or employees, you must not use Esri as your geolocation provider. See section 82 of the Amazon Web Services service terms for more details.

@param request A container for the necessary parameters to execute the CreateRouteCalculator service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationCreateRouteCalculatorResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorConflict`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorServiceQuotaExceeded`, `AWSLocationErrorThrottling`. @see AWSLocationCreateRouteCalculatorRequest @see AWSLocationCreateRouteCalculatorResponse */ - (AWSTask *)createRouteCalculator:(AWSLocationCreateRouteCalculatorRequest *)request; /**

Creates a route calculator resource in your Amazon Web Services account.

You can send requests to a route calculator resource to estimate travel time, distance, and get directions. A route calculator sources traffic and road network data from your chosen data provider.

If your application is tracking or routing assets you use in your business, such as delivery vehicles or employees, you must not use Esri as your geolocation provider. See section 82 of the Amazon Web Services service terms for more details.

@param request A container for the necessary parameters to execute the CreateRouteCalculator service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorConflict`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorServiceQuotaExceeded`, `AWSLocationErrorThrottling`. @see AWSLocationCreateRouteCalculatorRequest @see AWSLocationCreateRouteCalculatorResponse */ - (void)createRouteCalculator:(AWSLocationCreateRouteCalculatorRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationCreateRouteCalculatorResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Creates a tracker resource in your Amazon Web Services account, which lets you retrieve current and historical location of devices.

@param request A container for the necessary parameters to execute the CreateTracker service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationCreateTrackerResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorConflict`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorServiceQuotaExceeded`, `AWSLocationErrorThrottling`. @see AWSLocationCreateTrackerRequest @see AWSLocationCreateTrackerResponse */ - (AWSTask *)createTracker:(AWSLocationCreateTrackerRequest *)request; /**

Creates a tracker resource in your Amazon Web Services account, which lets you retrieve current and historical location of devices.

@param request A container for the necessary parameters to execute the CreateTracker service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorConflict`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorServiceQuotaExceeded`, `AWSLocationErrorThrottling`. @see AWSLocationCreateTrackerRequest @see AWSLocationCreateTrackerResponse */ - (void)createTracker:(AWSLocationCreateTrackerRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationCreateTrackerResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Deletes a geofence collection from your Amazon Web Services account.

This operation deletes the resource permanently. If the geofence collection is the target of a tracker resource, the devices will no longer be monitored.

@param request A container for the necessary parameters to execute the DeleteGeofenceCollection service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationDeleteGeofenceCollectionResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationDeleteGeofenceCollectionRequest @see AWSLocationDeleteGeofenceCollectionResponse */ - (AWSTask *)deleteGeofenceCollection:(AWSLocationDeleteGeofenceCollectionRequest *)request; /**

Deletes a geofence collection from your Amazon Web Services account.

This operation deletes the resource permanently. If the geofence collection is the target of a tracker resource, the devices will no longer be monitored.

@param request A container for the necessary parameters to execute the DeleteGeofenceCollection service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationDeleteGeofenceCollectionRequest @see AWSLocationDeleteGeofenceCollectionResponse */ - (void)deleteGeofenceCollection:(AWSLocationDeleteGeofenceCollectionRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationDeleteGeofenceCollectionResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Deletes the specified API key. The API key must have been deactivated more than 90 days previously.

@param request A container for the necessary parameters to execute the DeleteKey service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationDeleteKeyResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationDeleteKeyRequest @see AWSLocationDeleteKeyResponse */ - (AWSTask *)deleteKey:(AWSLocationDeleteKeyRequest *)request; /**

Deletes the specified API key. The API key must have been deactivated more than 90 days previously.

@param request A container for the necessary parameters to execute the DeleteKey service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationDeleteKeyRequest @see AWSLocationDeleteKeyResponse */ - (void)deleteKey:(AWSLocationDeleteKeyRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationDeleteKeyResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Deletes a map resource from your Amazon Web Services account.

This operation deletes the resource permanently. If the map is being used in an application, the map may not render.

@param request A container for the necessary parameters to execute the DeleteMap service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationDeleteMapResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationDeleteMapRequest @see AWSLocationDeleteMapResponse */ - (AWSTask *)deleteMap:(AWSLocationDeleteMapRequest *)request; /**

Deletes a map resource from your Amazon Web Services account.

This operation deletes the resource permanently. If the map is being used in an application, the map may not render.

@param request A container for the necessary parameters to execute the DeleteMap service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationDeleteMapRequest @see AWSLocationDeleteMapResponse */ - (void)deleteMap:(AWSLocationDeleteMapRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationDeleteMapResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Deletes a place index resource from your Amazon Web Services account.

This operation deletes the resource permanently.

@param request A container for the necessary parameters to execute the DeletePlaceIndex service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationDeletePlaceIndexResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationDeletePlaceIndexRequest @see AWSLocationDeletePlaceIndexResponse */ - (AWSTask *)deletePlaceIndex:(AWSLocationDeletePlaceIndexRequest *)request; /**

Deletes a place index resource from your Amazon Web Services account.

This operation deletes the resource permanently.

@param request A container for the necessary parameters to execute the DeletePlaceIndex service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationDeletePlaceIndexRequest @see AWSLocationDeletePlaceIndexResponse */ - (void)deletePlaceIndex:(AWSLocationDeletePlaceIndexRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationDeletePlaceIndexResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Deletes a route calculator resource from your Amazon Web Services account.

This operation deletes the resource permanently.

@param request A container for the necessary parameters to execute the DeleteRouteCalculator service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationDeleteRouteCalculatorResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationDeleteRouteCalculatorRequest @see AWSLocationDeleteRouteCalculatorResponse */ - (AWSTask *)deleteRouteCalculator:(AWSLocationDeleteRouteCalculatorRequest *)request; /**

Deletes a route calculator resource from your Amazon Web Services account.

This operation deletes the resource permanently.

@param request A container for the necessary parameters to execute the DeleteRouteCalculator service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationDeleteRouteCalculatorRequest @see AWSLocationDeleteRouteCalculatorResponse */ - (void)deleteRouteCalculator:(AWSLocationDeleteRouteCalculatorRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationDeleteRouteCalculatorResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Deletes a tracker resource from your Amazon Web Services account.

This operation deletes the resource permanently. If the tracker resource is in use, you may encounter an error. Make sure that the target resource isn't a dependency for your applications.

@param request A container for the necessary parameters to execute the DeleteTracker service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationDeleteTrackerResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationDeleteTrackerRequest @see AWSLocationDeleteTrackerResponse */ - (AWSTask *)deleteTracker:(AWSLocationDeleteTrackerRequest *)request; /**

Deletes a tracker resource from your Amazon Web Services account.

This operation deletes the resource permanently. If the tracker resource is in use, you may encounter an error. Make sure that the target resource isn't a dependency for your applications.

@param request A container for the necessary parameters to execute the DeleteTracker service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationDeleteTrackerRequest @see AWSLocationDeleteTrackerResponse */ - (void)deleteTracker:(AWSLocationDeleteTrackerRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationDeleteTrackerResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Retrieves the geofence collection details.

@param request A container for the necessary parameters to execute the DescribeGeofenceCollection service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationDescribeGeofenceCollectionResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationDescribeGeofenceCollectionRequest @see AWSLocationDescribeGeofenceCollectionResponse */ - (AWSTask *)describeGeofenceCollection:(AWSLocationDescribeGeofenceCollectionRequest *)request; /**

Retrieves the geofence collection details.

@param request A container for the necessary parameters to execute the DescribeGeofenceCollection service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationDescribeGeofenceCollectionRequest @see AWSLocationDescribeGeofenceCollectionResponse */ - (void)describeGeofenceCollection:(AWSLocationDescribeGeofenceCollectionRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationDescribeGeofenceCollectionResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Retrieves the API key resource details.

@param request A container for the necessary parameters to execute the DescribeKey service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationDescribeKeyResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationDescribeKeyRequest @see AWSLocationDescribeKeyResponse */ - (AWSTask *)describeKey:(AWSLocationDescribeKeyRequest *)request; /**

Retrieves the API key resource details.

@param request A container for the necessary parameters to execute the DescribeKey service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationDescribeKeyRequest @see AWSLocationDescribeKeyResponse */ - (void)describeKey:(AWSLocationDescribeKeyRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationDescribeKeyResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Retrieves the map resource details.

@param request A container for the necessary parameters to execute the DescribeMap service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationDescribeMapResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationDescribeMapRequest @see AWSLocationDescribeMapResponse */ - (AWSTask *)describeMap:(AWSLocationDescribeMapRequest *)request; /**

Retrieves the map resource details.

@param request A container for the necessary parameters to execute the DescribeMap service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationDescribeMapRequest @see AWSLocationDescribeMapResponse */ - (void)describeMap:(AWSLocationDescribeMapRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationDescribeMapResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Retrieves the place index resource details.

@param request A container for the necessary parameters to execute the DescribePlaceIndex service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationDescribePlaceIndexResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationDescribePlaceIndexRequest @see AWSLocationDescribePlaceIndexResponse */ - (AWSTask *)describePlaceIndex:(AWSLocationDescribePlaceIndexRequest *)request; /**

Retrieves the place index resource details.

@param request A container for the necessary parameters to execute the DescribePlaceIndex service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationDescribePlaceIndexRequest @see AWSLocationDescribePlaceIndexResponse */ - (void)describePlaceIndex:(AWSLocationDescribePlaceIndexRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationDescribePlaceIndexResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Retrieves the route calculator resource details.

@param request A container for the necessary parameters to execute the DescribeRouteCalculator service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationDescribeRouteCalculatorResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationDescribeRouteCalculatorRequest @see AWSLocationDescribeRouteCalculatorResponse */ - (AWSTask *)describeRouteCalculator:(AWSLocationDescribeRouteCalculatorRequest *)request; /**

Retrieves the route calculator resource details.

@param request A container for the necessary parameters to execute the DescribeRouteCalculator service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationDescribeRouteCalculatorRequest @see AWSLocationDescribeRouteCalculatorResponse */ - (void)describeRouteCalculator:(AWSLocationDescribeRouteCalculatorRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationDescribeRouteCalculatorResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Retrieves the tracker resource details.

@param request A container for the necessary parameters to execute the DescribeTracker service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationDescribeTrackerResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationDescribeTrackerRequest @see AWSLocationDescribeTrackerResponse */ - (AWSTask *)describeTracker:(AWSLocationDescribeTrackerRequest *)request; /**

Retrieves the tracker resource details.

@param request A container for the necessary parameters to execute the DescribeTracker service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationDescribeTrackerRequest @see AWSLocationDescribeTrackerResponse */ - (void)describeTracker:(AWSLocationDescribeTrackerRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationDescribeTrackerResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Removes the association between a tracker resource and a geofence collection.

Once you unlink a tracker resource from a geofence collection, the tracker positions will no longer be automatically evaluated against geofences.

@param request A container for the necessary parameters to execute the DisassociateTrackerConsumer service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationDisassociateTrackerConsumerResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationDisassociateTrackerConsumerRequest @see AWSLocationDisassociateTrackerConsumerResponse */ - (AWSTask *)disassociateTrackerConsumer:(AWSLocationDisassociateTrackerConsumerRequest *)request; /**

Removes the association between a tracker resource and a geofence collection.

Once you unlink a tracker resource from a geofence collection, the tracker positions will no longer be automatically evaluated against geofences.

@param request A container for the necessary parameters to execute the DisassociateTrackerConsumer service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationDisassociateTrackerConsumerRequest @see AWSLocationDisassociateTrackerConsumerResponse */ - (void)disassociateTrackerConsumer:(AWSLocationDisassociateTrackerConsumerRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationDisassociateTrackerConsumerResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Retrieves a device's most recent position according to its sample time.

Device positions are deleted after 30 days.

@param request A container for the necessary parameters to execute the GetDevicePosition service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationGetDevicePositionResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationGetDevicePositionRequest @see AWSLocationGetDevicePositionResponse */ - (AWSTask *)getDevicePosition:(AWSLocationGetDevicePositionRequest *)request; /**

Retrieves a device's most recent position according to its sample time.

Device positions are deleted after 30 days.

@param request A container for the necessary parameters to execute the GetDevicePosition service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationGetDevicePositionRequest @see AWSLocationGetDevicePositionResponse */ - (void)getDevicePosition:(AWSLocationGetDevicePositionRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationGetDevicePositionResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Retrieves the device position history from a tracker resource within a specified range of time.

Device positions are deleted after 30 days.

@param request A container for the necessary parameters to execute the GetDevicePositionHistory service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationGetDevicePositionHistoryResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationGetDevicePositionHistoryRequest @see AWSLocationGetDevicePositionHistoryResponse */ - (AWSTask *)getDevicePositionHistory:(AWSLocationGetDevicePositionHistoryRequest *)request; /**

Retrieves the device position history from a tracker resource within a specified range of time.

Device positions are deleted after 30 days.

@param request A container for the necessary parameters to execute the GetDevicePositionHistory service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationGetDevicePositionHistoryRequest @see AWSLocationGetDevicePositionHistoryResponse */ - (void)getDevicePositionHistory:(AWSLocationGetDevicePositionHistoryRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationGetDevicePositionHistoryResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Retrieves the geofence details from a geofence collection.

@param request A container for the necessary parameters to execute the GetGeofence service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationGetGeofenceResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationGetGeofenceRequest @see AWSLocationGetGeofenceResponse */ - (AWSTask *)getGeofence:(AWSLocationGetGeofenceRequest *)request; /**

Retrieves the geofence details from a geofence collection.

@param request A container for the necessary parameters to execute the GetGeofence service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationGetGeofenceRequest @see AWSLocationGetGeofenceResponse */ - (void)getGeofence:(AWSLocationGetGeofenceRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationGetGeofenceResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Retrieves glyphs used to display labels on a map.

@param request A container for the necessary parameters to execute the GetMapGlyphs service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationGetMapGlyphsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationGetMapGlyphsRequest @see AWSLocationGetMapGlyphsResponse */ - (AWSTask *)getMapGlyphs:(AWSLocationGetMapGlyphsRequest *)request; /**

Retrieves glyphs used to display labels on a map.

@param request A container for the necessary parameters to execute the GetMapGlyphs service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationGetMapGlyphsRequest @see AWSLocationGetMapGlyphsResponse */ - (void)getMapGlyphs:(AWSLocationGetMapGlyphsRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationGetMapGlyphsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Retrieves the sprite sheet corresponding to a map resource. The sprite sheet is a PNG image paired with a JSON document describing the offsets of individual icons that will be displayed on a rendered map.

@param request A container for the necessary parameters to execute the GetMapSprites service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationGetMapSpritesResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationGetMapSpritesRequest @see AWSLocationGetMapSpritesResponse */ - (AWSTask *)getMapSprites:(AWSLocationGetMapSpritesRequest *)request; /**

Retrieves the sprite sheet corresponding to a map resource. The sprite sheet is a PNG image paired with a JSON document describing the offsets of individual icons that will be displayed on a rendered map.

@param request A container for the necessary parameters to execute the GetMapSprites service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationGetMapSpritesRequest @see AWSLocationGetMapSpritesResponse */ - (void)getMapSprites:(AWSLocationGetMapSpritesRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationGetMapSpritesResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Retrieves the map style descriptor from a map resource.

The style descriptor contains specifications on how features render on a map. For example, what data to display, what order to display the data in, and the style for the data. Style descriptors follow the Mapbox Style Specification.

@param request A container for the necessary parameters to execute the GetMapStyleDescriptor service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationGetMapStyleDescriptorResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationGetMapStyleDescriptorRequest @see AWSLocationGetMapStyleDescriptorResponse */ - (AWSTask *)getMapStyleDescriptor:(AWSLocationGetMapStyleDescriptorRequest *)request; /**

Retrieves the map style descriptor from a map resource.

The style descriptor contains specifications on how features render on a map. For example, what data to display, what order to display the data in, and the style for the data. Style descriptors follow the Mapbox Style Specification.

@param request A container for the necessary parameters to execute the GetMapStyleDescriptor service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationGetMapStyleDescriptorRequest @see AWSLocationGetMapStyleDescriptorResponse */ - (void)getMapStyleDescriptor:(AWSLocationGetMapStyleDescriptorRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationGetMapStyleDescriptorResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Retrieves a vector data tile from the map resource. Map tiles are used by clients to render a map. they're addressed using a grid arrangement with an X coordinate, Y coordinate, and Z (zoom) level.

The origin (0, 0) is the top left of the map. Increasing the zoom level by 1 doubles both the X and Y dimensions, so a tile containing data for the entire world at (0/0/0) will be split into 4 tiles at zoom 1 (1/0/0, 1/0/1, 1/1/0, 1/1/1).

@param request A container for the necessary parameters to execute the GetMapTile service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationGetMapTileResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationGetMapTileRequest @see AWSLocationGetMapTileResponse */ - (AWSTask *)getMapTile:(AWSLocationGetMapTileRequest *)request; /**

Retrieves a vector data tile from the map resource. Map tiles are used by clients to render a map. they're addressed using a grid arrangement with an X coordinate, Y coordinate, and Z (zoom) level.

The origin (0, 0) is the top left of the map. Increasing the zoom level by 1 doubles both the X and Y dimensions, so a tile containing data for the entire world at (0/0/0) will be split into 4 tiles at zoom 1 (1/0/0, 1/0/1, 1/1/0, 1/1/1).

@param request A container for the necessary parameters to execute the GetMapTile service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationGetMapTileRequest @see AWSLocationGetMapTileResponse */ - (void)getMapTile:(AWSLocationGetMapTileRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationGetMapTileResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Finds a place by its unique ID. A PlaceId is returned by other search operations.

A PlaceId is valid only if all of the following are the same in the original search request and the call to GetPlace.

  • Customer Amazon Web Services account

  • Amazon Web Services Region

  • Data provider specified in the place index resource

@param request A container for the necessary parameters to execute the GetPlace service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationGetPlaceResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationGetPlaceRequest @see AWSLocationGetPlaceResponse */ - (AWSTask *)getPlace:(AWSLocationGetPlaceRequest *)request; /**

Finds a place by its unique ID. A PlaceId is returned by other search operations.

A PlaceId is valid only if all of the following are the same in the original search request and the call to GetPlace.

  • Customer Amazon Web Services account

  • Amazon Web Services Region

  • Data provider specified in the place index resource

@param request A container for the necessary parameters to execute the GetPlace service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationGetPlaceRequest @see AWSLocationGetPlaceResponse */ - (void)getPlace:(AWSLocationGetPlaceRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationGetPlaceResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

A batch request to retrieve all device positions.

@param request A container for the necessary parameters to execute the ListDevicePositions service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationListDevicePositionsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationListDevicePositionsRequest @see AWSLocationListDevicePositionsResponse */ - (AWSTask *)listDevicePositions:(AWSLocationListDevicePositionsRequest *)request; /**

A batch request to retrieve all device positions.

@param request A container for the necessary parameters to execute the ListDevicePositions service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationListDevicePositionsRequest @see AWSLocationListDevicePositionsResponse */ - (void)listDevicePositions:(AWSLocationListDevicePositionsRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationListDevicePositionsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists geofence collections in your Amazon Web Services account.

@param request A container for the necessary parameters to execute the ListGeofenceCollections service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationListGeofenceCollectionsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationListGeofenceCollectionsRequest @see AWSLocationListGeofenceCollectionsResponse */ - (AWSTask *)listGeofenceCollections:(AWSLocationListGeofenceCollectionsRequest *)request; /**

Lists geofence collections in your Amazon Web Services account.

@param request A container for the necessary parameters to execute the ListGeofenceCollections service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationListGeofenceCollectionsRequest @see AWSLocationListGeofenceCollectionsResponse */ - (void)listGeofenceCollections:(AWSLocationListGeofenceCollectionsRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationListGeofenceCollectionsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists geofences stored in a given geofence collection.

@param request A container for the necessary parameters to execute the ListGeofences service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationListGeofencesResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationListGeofencesRequest @see AWSLocationListGeofencesResponse */ - (AWSTask *)listGeofences:(AWSLocationListGeofencesRequest *)request; /**

Lists geofences stored in a given geofence collection.

@param request A container for the necessary parameters to execute the ListGeofences service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationListGeofencesRequest @see AWSLocationListGeofencesResponse */ - (void)listGeofences:(AWSLocationListGeofencesRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationListGeofencesResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists API key resources in your Amazon Web Services account.

@param request A container for the necessary parameters to execute the ListKeys service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationListKeysResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationListKeysRequest @see AWSLocationListKeysResponse */ - (AWSTask *)listKeys:(AWSLocationListKeysRequest *)request; /**

Lists API key resources in your Amazon Web Services account.

@param request A container for the necessary parameters to execute the ListKeys service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationListKeysRequest @see AWSLocationListKeysResponse */ - (void)listKeys:(AWSLocationListKeysRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationListKeysResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists map resources in your Amazon Web Services account.

@param request A container for the necessary parameters to execute the ListMaps service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationListMapsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationListMapsRequest @see AWSLocationListMapsResponse */ - (AWSTask *)listMaps:(AWSLocationListMapsRequest *)request; /**

Lists map resources in your Amazon Web Services account.

@param request A container for the necessary parameters to execute the ListMaps service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationListMapsRequest @see AWSLocationListMapsResponse */ - (void)listMaps:(AWSLocationListMapsRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationListMapsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists place index resources in your Amazon Web Services account.

@param request A container for the necessary parameters to execute the ListPlaceIndexes service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationListPlaceIndexesResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationListPlaceIndexesRequest @see AWSLocationListPlaceIndexesResponse */ - (AWSTask *)listPlaceIndexes:(AWSLocationListPlaceIndexesRequest *)request; /**

Lists place index resources in your Amazon Web Services account.

@param request A container for the necessary parameters to execute the ListPlaceIndexes service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationListPlaceIndexesRequest @see AWSLocationListPlaceIndexesResponse */ - (void)listPlaceIndexes:(AWSLocationListPlaceIndexesRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationListPlaceIndexesResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists route calculator resources in your Amazon Web Services account.

@param request A container for the necessary parameters to execute the ListRouteCalculators service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationListRouteCalculatorsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationListRouteCalculatorsRequest @see AWSLocationListRouteCalculatorsResponse */ - (AWSTask *)listRouteCalculators:(AWSLocationListRouteCalculatorsRequest *)request; /**

Lists route calculator resources in your Amazon Web Services account.

@param request A container for the necessary parameters to execute the ListRouteCalculators service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationListRouteCalculatorsRequest @see AWSLocationListRouteCalculatorsResponse */ - (void)listRouteCalculators:(AWSLocationListRouteCalculatorsRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationListRouteCalculatorsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Returns a list of tags that are applied to the specified Amazon Location resource.

@param request A container for the necessary parameters to execute the ListTagsForResource service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationListTagsForResourceResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationListTagsForResourceRequest @see AWSLocationListTagsForResourceResponse */ - (AWSTask *)listTagsForResource:(AWSLocationListTagsForResourceRequest *)request; /**

Returns a list of tags that are applied to the specified Amazon Location resource.

@param request A container for the necessary parameters to execute the ListTagsForResource service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationListTagsForResourceRequest @see AWSLocationListTagsForResourceResponse */ - (void)listTagsForResource:(AWSLocationListTagsForResourceRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationListTagsForResourceResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists geofence collections currently associated to the given tracker resource.

@param request A container for the necessary parameters to execute the ListTrackerConsumers service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationListTrackerConsumersResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationListTrackerConsumersRequest @see AWSLocationListTrackerConsumersResponse */ - (AWSTask *)listTrackerConsumers:(AWSLocationListTrackerConsumersRequest *)request; /**

Lists geofence collections currently associated to the given tracker resource.

@param request A container for the necessary parameters to execute the ListTrackerConsumers service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationListTrackerConsumersRequest @see AWSLocationListTrackerConsumersResponse */ - (void)listTrackerConsumers:(AWSLocationListTrackerConsumersRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationListTrackerConsumersResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Lists tracker resources in your Amazon Web Services account.

@param request A container for the necessary parameters to execute the ListTrackers service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationListTrackersResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationListTrackersRequest @see AWSLocationListTrackersResponse */ - (AWSTask *)listTrackers:(AWSLocationListTrackersRequest *)request; /**

Lists tracker resources in your Amazon Web Services account.

@param request A container for the necessary parameters to execute the ListTrackers service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationListTrackersRequest @see AWSLocationListTrackersResponse */ - (void)listTrackers:(AWSLocationListTrackersRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationListTrackersResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Stores a geofence geometry in a given geofence collection, or updates the geometry of an existing geofence if a geofence ID is included in the request.

@param request A container for the necessary parameters to execute the PutGeofence service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationPutGeofenceResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorConflict`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationPutGeofenceRequest @see AWSLocationPutGeofenceResponse */ - (AWSTask *)putGeofence:(AWSLocationPutGeofenceRequest *)request; /**

Stores a geofence geometry in a given geofence collection, or updates the geometry of an existing geofence if a geofence ID is included in the request.

@param request A container for the necessary parameters to execute the PutGeofence service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorConflict`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationPutGeofenceRequest @see AWSLocationPutGeofenceResponse */ - (void)putGeofence:(AWSLocationPutGeofenceRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationPutGeofenceResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Reverse geocodes a given coordinate and returns a legible address. Allows you to search for Places or points of interest near a given position.

@param request A container for the necessary parameters to execute the SearchPlaceIndexForPosition service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationSearchPlaceIndexForPositionResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationSearchPlaceIndexForPositionRequest @see AWSLocationSearchPlaceIndexForPositionResponse */ - (AWSTask *)searchPlaceIndexForPosition:(AWSLocationSearchPlaceIndexForPositionRequest *)request; /**

Reverse geocodes a given coordinate and returns a legible address. Allows you to search for Places or points of interest near a given position.

@param request A container for the necessary parameters to execute the SearchPlaceIndexForPosition service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationSearchPlaceIndexForPositionRequest @see AWSLocationSearchPlaceIndexForPositionResponse */ - (void)searchPlaceIndexForPosition:(AWSLocationSearchPlaceIndexForPositionRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationSearchPlaceIndexForPositionResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Generates suggestions for addresses and points of interest based on partial or misspelled free-form text. This operation is also known as autocomplete, autosuggest, or fuzzy matching.

Optional parameters let you narrow your search results by bounding box or country, or bias your search toward a specific position on the globe.

You can search for suggested place names near a specified position by using BiasPosition, or filter results within a bounding box by using FilterBBox. These parameters are mutually exclusive; using both BiasPosition and FilterBBox in the same command returns an error.

@param request A container for the necessary parameters to execute the SearchPlaceIndexForSuggestions service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationSearchPlaceIndexForSuggestionsResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationSearchPlaceIndexForSuggestionsRequest @see AWSLocationSearchPlaceIndexForSuggestionsResponse */ - (AWSTask *)searchPlaceIndexForSuggestions:(AWSLocationSearchPlaceIndexForSuggestionsRequest *)request; /**

Generates suggestions for addresses and points of interest based on partial or misspelled free-form text. This operation is also known as autocomplete, autosuggest, or fuzzy matching.

Optional parameters let you narrow your search results by bounding box or country, or bias your search toward a specific position on the globe.

You can search for suggested place names near a specified position by using BiasPosition, or filter results within a bounding box by using FilterBBox. These parameters are mutually exclusive; using both BiasPosition and FilterBBox in the same command returns an error.

@param request A container for the necessary parameters to execute the SearchPlaceIndexForSuggestions service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationSearchPlaceIndexForSuggestionsRequest @see AWSLocationSearchPlaceIndexForSuggestionsResponse */ - (void)searchPlaceIndexForSuggestions:(AWSLocationSearchPlaceIndexForSuggestionsRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationSearchPlaceIndexForSuggestionsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Geocodes free-form text, such as an address, name, city, or region to allow you to search for Places or points of interest.

Optional parameters let you narrow your search results by bounding box or country, or bias your search toward a specific position on the globe.

You can search for places near a given position using BiasPosition, or filter results within a bounding box using FilterBBox. Providing both parameters simultaneously returns an error.

Search results are returned in order of highest to lowest relevance.

@param request A container for the necessary parameters to execute the SearchPlaceIndexForText service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationSearchPlaceIndexForTextResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationSearchPlaceIndexForTextRequest @see AWSLocationSearchPlaceIndexForTextResponse */ - (AWSTask *)searchPlaceIndexForText:(AWSLocationSearchPlaceIndexForTextRequest *)request; /**

Geocodes free-form text, such as an address, name, city, or region to allow you to search for Places or points of interest.

Optional parameters let you narrow your search results by bounding box or country, or bias your search toward a specific position on the globe.

You can search for places near a given position using BiasPosition, or filter results within a bounding box using FilterBBox. Providing both parameters simultaneously returns an error.

Search results are returned in order of highest to lowest relevance.

@param request A container for the necessary parameters to execute the SearchPlaceIndexForText service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationSearchPlaceIndexForTextRequest @see AWSLocationSearchPlaceIndexForTextResponse */ - (void)searchPlaceIndexForText:(AWSLocationSearchPlaceIndexForTextRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationSearchPlaceIndexForTextResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Assigns one or more tags (key-value pairs) to the specified Amazon Location Service resource.

Tags can help you organize and categorize your resources. You can also use them to scope user permissions, by granting a user permission to access or change only resources with certain tag values.

You can use the TagResource operation with an Amazon Location Service resource that already has tags. If you specify a new tag key for the resource, this tag is appended to the tags already associated with the resource. If you specify a tag key that's already associated with the resource, the new tag value that you specify replaces the previous value for that tag.

You can associate up to 50 tags with a resource.

@param request A container for the necessary parameters to execute the TagResource service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationTagResourceResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationTagResourceRequest @see AWSLocationTagResourceResponse */ - (AWSTask *)tagResource:(AWSLocationTagResourceRequest *)request; /**

Assigns one or more tags (key-value pairs) to the specified Amazon Location Service resource.

Tags can help you organize and categorize your resources. You can also use them to scope user permissions, by granting a user permission to access or change only resources with certain tag values.

You can use the TagResource operation with an Amazon Location Service resource that already has tags. If you specify a new tag key for the resource, this tag is appended to the tags already associated with the resource. If you specify a tag key that's already associated with the resource, the new tag value that you specify replaces the previous value for that tag.

You can associate up to 50 tags with a resource.

@param request A container for the necessary parameters to execute the TagResource service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationTagResourceRequest @see AWSLocationTagResourceResponse */ - (void)tagResource:(AWSLocationTagResourceRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationTagResourceResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Removes one or more tags from the specified Amazon Location resource.

@param request A container for the necessary parameters to execute the UntagResource service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationUntagResourceResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationUntagResourceRequest @see AWSLocationUntagResourceResponse */ - (AWSTask *)untagResource:(AWSLocationUntagResourceRequest *)request; /**

Removes one or more tags from the specified Amazon Location resource.

@param request A container for the necessary parameters to execute the UntagResource service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationUntagResourceRequest @see AWSLocationUntagResourceResponse */ - (void)untagResource:(AWSLocationUntagResourceRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationUntagResourceResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Updates the specified properties of a given geofence collection.

@param request A container for the necessary parameters to execute the UpdateGeofenceCollection service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationUpdateGeofenceCollectionResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationUpdateGeofenceCollectionRequest @see AWSLocationUpdateGeofenceCollectionResponse */ - (AWSTask *)updateGeofenceCollection:(AWSLocationUpdateGeofenceCollectionRequest *)request; /**

Updates the specified properties of a given geofence collection.

@param request A container for the necessary parameters to execute the UpdateGeofenceCollection service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationUpdateGeofenceCollectionRequest @see AWSLocationUpdateGeofenceCollectionResponse */ - (void)updateGeofenceCollection:(AWSLocationUpdateGeofenceCollectionRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationUpdateGeofenceCollectionResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Updates the specified properties of a given API key resource.

@param request A container for the necessary parameters to execute the UpdateKey service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationUpdateKeyResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationUpdateKeyRequest @see AWSLocationUpdateKeyResponse */ - (AWSTask *)updateKey:(AWSLocationUpdateKeyRequest *)request; /**

Updates the specified properties of a given API key resource.

@param request A container for the necessary parameters to execute the UpdateKey service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationUpdateKeyRequest @see AWSLocationUpdateKeyResponse */ - (void)updateKey:(AWSLocationUpdateKeyRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationUpdateKeyResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Updates the specified properties of a given map resource.

@param request A container for the necessary parameters to execute the UpdateMap service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationUpdateMapResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationUpdateMapRequest @see AWSLocationUpdateMapResponse */ - (AWSTask *)updateMap:(AWSLocationUpdateMapRequest *)request; /**

Updates the specified properties of a given map resource.

@param request A container for the necessary parameters to execute the UpdateMap service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationUpdateMapRequest @see AWSLocationUpdateMapResponse */ - (void)updateMap:(AWSLocationUpdateMapRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationUpdateMapResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Updates the specified properties of a given place index resource.

@param request A container for the necessary parameters to execute the UpdatePlaceIndex service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationUpdatePlaceIndexResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationUpdatePlaceIndexRequest @see AWSLocationUpdatePlaceIndexResponse */ - (AWSTask *)updatePlaceIndex:(AWSLocationUpdatePlaceIndexRequest *)request; /**

Updates the specified properties of a given place index resource.

@param request A container for the necessary parameters to execute the UpdatePlaceIndex service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationUpdatePlaceIndexRequest @see AWSLocationUpdatePlaceIndexResponse */ - (void)updatePlaceIndex:(AWSLocationUpdatePlaceIndexRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationUpdatePlaceIndexResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Updates the specified properties for a given route calculator resource.

@param request A container for the necessary parameters to execute the UpdateRouteCalculator service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationUpdateRouteCalculatorResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationUpdateRouteCalculatorRequest @see AWSLocationUpdateRouteCalculatorResponse */ - (AWSTask *)updateRouteCalculator:(AWSLocationUpdateRouteCalculatorRequest *)request; /**

Updates the specified properties for a given route calculator resource.

@param request A container for the necessary parameters to execute the UpdateRouteCalculator service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationUpdateRouteCalculatorRequest @see AWSLocationUpdateRouteCalculatorResponse */ - (void)updateRouteCalculator:(AWSLocationUpdateRouteCalculatorRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationUpdateRouteCalculatorResponse * _Nullable response, NSError * _Nullable error))completionHandler; /**

Updates the specified properties of a given tracker resource.

@param request A container for the necessary parameters to execute the UpdateTracker service method. @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSLocationUpdateTrackerResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationUpdateTrackerRequest @see AWSLocationUpdateTrackerResponse */ - (AWSTask *)updateTracker:(AWSLocationUpdateTrackerRequest *)request; /**

Updates the specified properties of a given tracker resource.

@param request A container for the necessary parameters to execute the UpdateTracker service method. @param completionHandler The completion handler to call when the load request is complete. `response` - A response object, or `nil` if the request failed. `error` - An error object that indicates why the request failed, or `nil` if the request was successful. On failed execution, `error` may contain an `NSError` with `AWSLocationErrorDomain` domain and the following error code: `AWSLocationErrorInternalServer`, `AWSLocationErrorResourceNotFound`, `AWSLocationErrorAccessDenied`, `AWSLocationErrorValidation`, `AWSLocationErrorThrottling`. @see AWSLocationUpdateTrackerRequest @see AWSLocationUpdateTrackerResponse */ - (void)updateTracker:(AWSLocationUpdateTrackerRequest *)request completionHandler:(void (^ _Nullable)(AWSLocationUpdateTrackerResponse * _Nullable response, NSError * _Nullable error))completionHandler; @end NS_ASSUME_NONNULL_END