LocationService *************** Client ====== class LocationService.Client A low-level client representing Amazon Location Service "Suite of geospatial services including Maps, Places, Routes, Tracking, and Geofencing" import boto3 client = boto3.client('location') These are the available methods: * associate_tracker_consumer * batch_delete_device_position_history * batch_delete_geofence * batch_evaluate_geofences * batch_get_device_position * batch_put_geofence * batch_update_device_position * calculate_route * calculate_route_matrix * can_paginate * close * create_geofence_collection * create_key * create_map * create_place_index * create_route_calculator * create_tracker * delete_geofence_collection * delete_key * delete_map * delete_place_index * delete_route_calculator * delete_tracker * describe_geofence_collection * describe_key * describe_map * describe_place_index * describe_route_calculator * describe_tracker * disassociate_tracker_consumer * forecast_geofence_events * get_device_position * get_device_position_history * get_geofence * get_map_glyphs * get_map_sprites * get_map_style_descriptor * get_map_tile * get_paginator * get_place * get_waiter * list_device_positions * list_geofence_collections * list_geofences * list_keys * list_maps * list_place_indexes * list_route_calculators * list_tags_for_resource * list_tracker_consumers * list_trackers * put_geofence * search_place_index_for_position * search_place_index_for_suggestions * search_place_index_for_text * tag_resource * untag_resource * update_geofence_collection * update_key * update_map * update_place_index * update_route_calculator * update_tracker * verify_device_position Paginators ========== Paginators are available on a client instance via the "get_paginator" method. For more detailed instructions and examples on the usage of paginators, see the paginators user guide. The available paginators are: * ForecastGeofenceEvents * GetDevicePositionHistory * ListDevicePositions * ListGeofenceCollections * ListGeofences * ListKeys * ListMaps * ListPlaceIndexes * ListRouteCalculators * ListTrackerConsumers * ListTrackers LocationService / Paginator / ListTrackerConsumers ListTrackerConsumers ******************** class LocationService.Paginator.ListTrackerConsumers paginator = client.get_paginator('list_tracker_consumers') paginate(**kwargs) Creates an iterator that will paginate through responses from "LocationService.Client.list_tracker_consumers()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( TrackerName='string', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: * **TrackerName** (*string*) -- **[REQUIRED]** The tracker resource whose associated geofence collections you want to list. * **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'ConsumerArns': [ 'string', ], } **Response Structure** * *(dict) --* * **ConsumerArns** *(list) --* Contains the list of geofence collection ARNs associated to the tracker resource. * *(string) --* LocationService / Paginator / ListRouteCalculators ListRouteCalculators ******************** class LocationService.Paginator.ListRouteCalculators paginator = client.get_paginator('list_route_calculators') paginate(**kwargs) Creates an iterator that will paginate through responses from "LocationService.Client.list_route_calculators()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max- items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'Entries': [ { 'CalculatorName': 'string', 'Description': 'string', 'DataSource': 'string', 'PricingPlan': 'RequestBasedUsage'|'MobileAssetTracking'|'MobileAssetManagement', 'CreateTime': datetime(2015, 1, 1), 'UpdateTime': datetime(2015, 1, 1) }, ], } **Response Structure** * *(dict) --* * **Entries** *(list) --* Lists the route calculator resources that exist in your Amazon Web Services account * *(dict) --* A route calculator resource listed in your Amazon Web Services account. * **CalculatorName** *(string) --* The name of the route calculator resource. * **Description** *(string) --* The optional description of the route calculator resource. * **DataSource** *(string) --* The data provider of traffic and road network data. Indicates one of the available providers: * "Esri" * "Grab" * "Here" For more information about data providers, see Amazon Location Service data providers. * **PricingPlan** *(string) --* Always returns "RequestBasedUsage". * **CreateTime** *(datetime) --* The timestamp when the route calculator resource was created in ISO 8601 format: "YYYY-MM- DDThh:mm:ss.sssZ". * For example, "2020–07-2T12:15:20.000Z+01:00" * **UpdateTime** *(datetime) --* The timestamp when the route calculator resource was last updated in ISO 8601 format: "YYYY-MM- DDThh:mm:ss.sssZ". * For example, "2020–07-2T12:15:20.000Z+01:00" LocationService / Paginator / ListTrackers ListTrackers ************ class LocationService.Paginator.ListTrackers paginator = client.get_paginator('list_trackers') paginate(**kwargs) Creates an iterator that will paginate through responses from "LocationService.Client.list_trackers()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max- items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'Entries': [ { 'TrackerName': 'string', 'Description': 'string', 'PricingPlan': 'RequestBasedUsage'|'MobileAssetTracking'|'MobileAssetManagement', 'PricingPlanDataSource': 'string', 'CreateTime': datetime(2015, 1, 1), 'UpdateTime': datetime(2015, 1, 1) }, ], } **Response Structure** * *(dict) --* * **Entries** *(list) --* Contains tracker resources in your Amazon Web Services account. Details include tracker name, description and timestamps for when the tracker was created and last updated. * *(dict) --* Contains the tracker resource details. * **TrackerName** *(string) --* The name of the tracker resource. * **Description** *(string) --* The description for the tracker resource. * **PricingPlan** *(string) --* Always returns "RequestBasedUsage". * **PricingPlanDataSource** *(string) --* No longer used. Always returns an empty string. * **CreateTime** *(datetime) --* The timestamp for when the tracker resource was created in ISO 8601 format: "YYYY-MM- DDThh:mm:ss.sssZ". * **UpdateTime** *(datetime) --* The timestamp at which the device's position was determined. Uses ISO 8601 format: "YYYY-MM- DDThh:mm:ss.sssZ". LocationService / Paginator / ListKeys ListKeys ******** class LocationService.Paginator.ListKeys paginator = client.get_paginator('list_keys') paginate(**kwargs) Creates an iterator that will paginate through responses from "LocationService.Client.list_keys()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( Filter={ 'KeyStatus': 'Active'|'Expired' }, PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: * **Filter** (*dict*) -- Optionally filter the list to only "Active" or "Expired" API keys. * **KeyStatus** *(string) --* Filter on "Active" or "Expired" API keys. * **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'Entries': [ { 'KeyName': 'string', 'ExpireTime': datetime(2015, 1, 1), 'Description': 'string', 'Restrictions': { 'AllowActions': [ 'string', ], 'AllowResources': [ 'string', ], 'AllowReferers': [ 'string', ] }, 'CreateTime': datetime(2015, 1, 1), 'UpdateTime': datetime(2015, 1, 1) }, ], } **Response Structure** * *(dict) --* * **Entries** *(list) --* Contains API key resources in your Amazon Web Services account. Details include API key name, allowed referers and timestamp for when the API key will expire. * *(dict) --* An API key resource listed in your Amazon Web Services account. * **KeyName** *(string) --* The name of the API key resource. * **ExpireTime** *(datetime) --* The timestamp for when the API key resource will expire, in ISO 8601 format: "YYYY-MM- DDThh:mm:ss.sssZ". * **Description** *(string) --* The optional description for the API key resource. * **Restrictions** *(dict) --* API Restrictions on the allowed actions, resources, and referers for an API key resource. * **AllowActions** *(list) --* A list of allowed actions that an API key resource grants permissions to perform. You must have at least one action for each type of resource. For example, if you have a place resource, you must include at least one place action. The following are valid values for the actions. * **Map actions** * "geo:GetMap*" - Allows all actions needed for map rendering. * "geo-maps:GetTile" - Allows retrieving map tiles. * "geo-maps:GetStaticMap" - Allows retrieving static map images. * "geo-maps:*" - Allows all actions related to map functionalities. * **Place actions** * "geo:SearchPlaceIndexForText" - Allows geocoding. * "geo:SearchPlaceIndexForPosition" - Allows reverse geocoding. * "geo:SearchPlaceIndexForSuggestions" - Allows generating suggestions from text. * "GetPlace" - Allows finding a place by place ID. * "geo-places:Geocode" - Allows geocoding using place information. * "geo-places:ReverseGeocode" - Allows reverse geocoding from location coordinates. * "geo-places:SearchNearby" - Allows searching for places near a location. * "geo-places:SearchText" - Allows searching for places based on text input. * "geo-places:Autocomplete" - Allows auto- completion of place names based on text input. * "geo-places:Suggest" - Allows generating suggestions for places based on partial input. * "geo-places:GetPlace" - Allows finding a place by its ID. * "geo-places:*" - Allows all actions related to place services. * **Route actions** * "geo:CalculateRoute" - Allows point to point routing. * "geo:CalculateRouteMatrix" - Allows calculating a matrix of routes. * "geo-routes:CalculateRoutes" - Allows calculating multiple routes between points. * "geo-routes:CalculateRouteMatrix" - Allows calculating a matrix of routes between points. * "geo-routes:CalculateIsolines" - Allows calculating isolines for a given area. * "geo-routes:OptimizeWaypoints" - Allows optimizing the order of waypoints in a route. * "geo-routes:SnapToRoads" - Allows snapping a route to the nearest roads. * "geo-routes:*" - Allows all actions related to routing functionalities. Note: You must use these strings exactly. For example, to provide access to map rendering, the only valid action is "geo:GetMap*" as an input to the list. "["geo:GetMap*"]" is valid but "["geo:GetMapTile"]" is not. Similarly, you cannot use "["geo:SearchPlaceIndexFor*"]" - you must list each of the Place actions separately. * *(string) --* * **AllowResources** *(list) --* A list of allowed resource ARNs that a API key bearer can perform actions on. * The ARN must be the correct ARN for a map, place, or route ARN. You may include wildcards in the resource-id to match multiple resources of the same type. * The resources must be in the same "partition", "region", and "account-id" as the key that is being created. * Other than wildcards, you must include the full ARN, including the "arn", "partition", "service", "region", "account-id" and "resource-id" delimited by colons (:). * No spaces allowed, even with wildcards. For example, "arn:aws:geo:region:account- id:map/ExampleMap*". For more information about ARN format, see Amazon Resource Names (ARNs). * *(string) --* * **AllowReferers** *(list) --* An optional list of allowed HTTP referers for which requests must originate from. Requests using this API key from other domains will not be allowed. Requirements: * Contain only alphanumeric characters (A–Z, a–z, 0–9) or any symbols in this list "$\-._+!*`(),;/?:@=&" * May contain a percent (%) if followed by 2 hexadecimal digits (A-F, a-f, 0-9); this is used for URL encoding purposes. * May contain wildcard characters question mark (?) and asterisk (*). Question mark (?) will replace any single character (including hexadecimal digits). Asterisk (*) will replace any multiple characters (including multiple hexadecimal digits). * No spaces allowed. For example, "https://example.com". * *(string) --* * **CreateTime** *(datetime) --* The timestamp of when the API key was created, in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ". * **UpdateTime** *(datetime) --* The timestamp of when the API key was last updated, in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ". LocationService / Paginator / GetDevicePositionHistory GetDevicePositionHistory ************************ class LocationService.Paginator.GetDevicePositionHistory paginator = client.get_paginator('get_device_position_history') paginate(**kwargs) Creates an iterator that will paginate through responses from "LocationService.Client.get_device_position_history()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( TrackerName='string', DeviceId='string', StartTimeInclusive=datetime(2015, 1, 1), EndTimeExclusive=datetime(2015, 1, 1), PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: * **TrackerName** (*string*) -- **[REQUIRED]** The tracker resource receiving the request for the device position history. * **DeviceId** (*string*) -- **[REQUIRED]** The device whose position history you want to retrieve. * **StartTimeInclusive** (*datetime*) -- Specify the start time for the position history in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ". By default, the value will be 24 hours prior to the time that the request is made. Requirement: * The time specified for "StartTimeInclusive" must be before "EndTimeExclusive". * **EndTimeExclusive** (*datetime*) -- Specify the end time for the position history in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ". By default, the value will be the time that the request is made. Requirement: * The time specified for "EndTimeExclusive" must be after the time for "StartTimeInclusive". * **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'DevicePositions': [ { 'DeviceId': 'string', 'SampleTime': datetime(2015, 1, 1), 'ReceivedTime': datetime(2015, 1, 1), 'Position': [ 123.0, ], 'Accuracy': { 'Horizontal': 123.0 }, 'PositionProperties': { 'string': 'string' } }, ], } **Response Structure** * *(dict) --* * **DevicePositions** *(list) --* Contains the position history details for the requested device. * *(dict) --* Contains the device position details. * **DeviceId** *(string) --* The device whose position you retrieved. * **SampleTime** *(datetime) --* The timestamp at which the device's position was determined. Uses ISO 8601 format: "YYYY-MM- DDThh:mm:ss.sssZ". * **ReceivedTime** *(datetime) --* The timestamp for when the tracker resource received the device position in ISO 8601 format: "YYYY-MM- DDThh:mm:ss.sssZ". * **Position** *(list) --* The last known device position. * *(float) --* * **Accuracy** *(dict) --* The accuracy of the device position. * **Horizontal** *(float) --* Estimated maximum distance, in meters, between the measured position and the true position of a device, along the Earth's surface. * **PositionProperties** *(dict) --* The properties associated with the position. * *(string) --* * *(string) --* LocationService / Paginator / ListGeofenceCollections ListGeofenceCollections *********************** class LocationService.Paginator.ListGeofenceCollections paginator = client.get_paginator('list_geofence_collections') paginate(**kwargs) Creates an iterator that will paginate through responses from "LocationService.Client.list_geofence_collections()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max- items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'Entries': [ { 'CollectionName': 'string', 'Description': 'string', 'PricingPlan': 'RequestBasedUsage'|'MobileAssetTracking'|'MobileAssetManagement', 'PricingPlanDataSource': 'string', 'CreateTime': datetime(2015, 1, 1), 'UpdateTime': datetime(2015, 1, 1) }, ], } **Response Structure** * *(dict) --* * **Entries** *(list) --* Lists the geofence collections that exist in your Amazon Web Services account. * *(dict) --* Contains the geofence collection details. Note: The returned geometry will always match the geometry format used when the geofence was created. * **CollectionName** *(string) --* The name of the geofence collection. * **Description** *(string) --* The description for the geofence collection * **PricingPlan** *(string) --* No longer used. Always returns "RequestBasedUsage". * **PricingPlanDataSource** *(string) --* No longer used. Always returns an empty string. * **CreateTime** *(datetime) --* The timestamp for when the geofence collection was created in ISO 8601 format: "YYYY-MM- DDThh:mm:ss.sssZ" * **UpdateTime** *(datetime) --* Specifies a timestamp for when the resource was last updated in ISO 8601 format: "YYYY-MM- DDThh:mm:ss.sssZ" LocationService / Paginator / ListGeofences ListGeofences ************* class LocationService.Paginator.ListGeofences paginator = client.get_paginator('list_geofences') paginate(**kwargs) Creates an iterator that will paginate through responses from "LocationService.Client.list_geofences()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( CollectionName='string', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: * **CollectionName** (*string*) -- **[REQUIRED]** The name of the geofence collection storing the list of geofences. * **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'Entries': [ { 'GeofenceId': 'string', 'Geometry': { 'Polygon': [ [ [ 123.0, ], ], ], 'Circle': { 'Center': [ 123.0, ], 'Radius': 123.0 }, 'Geobuf': b'bytes', 'MultiPolygon': [ [ [ [ 123.0, ], ], ], ] }, 'Status': 'string', 'CreateTime': datetime(2015, 1, 1), 'UpdateTime': datetime(2015, 1, 1), 'GeofenceProperties': { 'string': 'string' } }, ], } **Response Structure** * *(dict) --* * **Entries** *(list) --* Contains a list of geofences stored in the geofence collection. * *(dict) --* Contains a list of geofences stored in a given geofence collection. Note: The returned geometry will always match the geometry format used when the geofence was created. * **GeofenceId** *(string) --* The geofence identifier. * **Geometry** *(dict) --* Contains the geofence geometry details describing the position of the geofence. Can be a circle, a polygon, or a multipolygon. * **Polygon** *(list) --* A "Polygon" is a list of up to 250 linear rings which represent the shape of a geofence. This list *must* include 1 exterior ring (representing the outer perimeter of the geofence), and can optionally include up to 249 interior rings (representing polygonal spaces within the perimeter, which are excluded from the geofence area). A linear ring is an array of 4 or more vertices, where the first and last vertex are the same (to form a closed boundary). Each vertex is a 2-dimensional point represented as an array of doubles of length 2: "[longitude, latitude]". Each linear ring is represented as an array of arrays of doubles ( "[[longitude, latitude], [longitude, latitude], ...]"). The vertices for the exterior ring must be listed in *counter-clockwise* sequence. Vertices for all interior rings must be listed in *clockwise* sequence. The list of linear rings that describe the entire "Polygon" is represented as an array of arrays of arrays of doubles ( "[[[longitude, latitude], [longitude, latitude], ...], [[longitude, latitude], [longitude, latitude], ...], ...]"). The exterior ring must be listed first, before any interior rings. Note: The following additional requirements and limitations apply to geometries defined using the "Polygon" parameter: * The entire "Polygon" must consist of no more than 1,000 vertices, including all vertices from the exterior ring and all interior rings. * Rings must not touch or cross each other. * All interior rings must be fully contained within the exterior ring. * Interior rings must not contain other interior rings. * No ring is permitted to intersect itself. * *(list) --* * *(list) --* * *(float) --* * **Circle** *(dict) --* A circle on the earth, as defined by a center point and a radius. * **Center** *(list) --* A single point geometry, specifying the center of the circle, using WGS 84 coordinates, in the form "[longitude, latitude]". * *(float) --* * **Radius** *(float) --* The radius of the circle in meters. Must be greater than zero and no larger than 100,000 (100 kilometers). * **Geobuf** *(bytes) --* Geobuf is a compact binary encoding for geographic data that provides lossless compression of GeoJSON polygons. The Geobuf must be Base64-encoded. This parameter can contain a Geobuf-encoded GeoJSON geometry object of type "Polygon" *OR* "MultiPolygon". For more information and specific configuration requirements for these object types, see Polygon and MultiPolygon. Note: The following limitations apply specifically to geometries defined using the "Geobuf" parameter, and supercede the corresponding limitations of the "Polygon" and "MultiPolygon" parameters: * A "Polygon" in "Geobuf" format can have up to 25,000 rings and up to 100,000 total vertices, including all vertices from all component rings. * A "MultiPolygon" in "Geobuf" format can contain up to 10,000 "Polygons" and up to 100,000 total vertices, including all vertices from all component "Polygons". * **MultiPolygon** *(list) --* A "MultiPolygon" is a list of up to 250 "Polygon" elements which represent the shape of a geofence. The "Polygon" components of a "MultiPolygon" geometry can define separate geographical areas that are considered part of the same geofence, perimeters of larger exterior areas with smaller interior spaces that are excluded from the geofence, or some combination of these use cases to form complex geofence boundaries. For more information and specific configuration requirements for the "Polygon" components that form a "MultiPolygon", see Polygon. Note: The following additional requirements and limitations apply to geometries defined using the "MultiPolygon" parameter: * The entire "MultiPolygon" must consist of no more than 1,000 vertices, including all vertices from all component "Polygons". * Each edge of a component "Polygon" must intersect no more than 5 edges from other "Polygons". Parallel edges that are shared but do not cross are not counted toward this limit. * The total number of intersecting edges of component "Polygons" must be no more than 100,000. Parallel edges that are shared but do not cross are not counted toward this limit. * *(list) --* * *(list) --* * *(list) --* * *(float) --* * **Status** *(string) --* Identifies the state of the geofence. A geofence will hold one of the following states: * "ACTIVE" — The geofence has been indexed by the system. * "PENDING" — The geofence is being processed by the system. * "FAILED" — The geofence failed to be indexed by the system. * "DELETED" — The geofence has been deleted from the system index. * "DELETING" — The geofence is being deleted from the system index. * **CreateTime** *(datetime) --* The timestamp for when the geofence was stored in a geofence collection in ISO 8601 format: "YYYY-MM- DDThh:mm:ss.sssZ" * **UpdateTime** *(datetime) --* The timestamp for when the geofence was last updated in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ" * **GeofenceProperties** *(dict) --* User defined properties of the geofence. A property is a key-value pair stored with the geofence and added to any geofence event triggered with that geofence. Format: ""key" : "value"" * *(string) --* * *(string) --* LocationService / Paginator / ListPlaceIndexes ListPlaceIndexes **************** class LocationService.Paginator.ListPlaceIndexes paginator = client.get_paginator('list_place_indexes') paginate(**kwargs) Creates an iterator that will paginate through responses from "LocationService.Client.list_place_indexes()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max- items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'Entries': [ { 'IndexName': 'string', 'Description': 'string', 'DataSource': 'string', 'PricingPlan': 'RequestBasedUsage'|'MobileAssetTracking'|'MobileAssetManagement', 'CreateTime': datetime(2015, 1, 1), 'UpdateTime': datetime(2015, 1, 1) }, ], } **Response Structure** * *(dict) --* * **Entries** *(list) --* Lists the place index resources that exist in your Amazon Web Services account * *(dict) --* A place index resource listed in your Amazon Web Services account. * **IndexName** *(string) --* The name of the place index resource. * **Description** *(string) --* The optional description for the place index resource. * **DataSource** *(string) --* The data provider of geospatial data. Values can be one of the following: * "Esri" * "Grab" * "Here" For more information about data providers, see Amazon Location Service data providers. * **PricingPlan** *(string) --* No longer used. Always returns "RequestBasedUsage". * **CreateTime** *(datetime) --* The timestamp for when the place index resource was created in ISO 8601 format: "YYYY-MM- DDThh:mm:ss.sssZ". * **UpdateTime** *(datetime) --* The timestamp for when the place index resource was last updated in ISO 8601 format: "YYYY-MM- DDThh:mm:ss.sssZ". LocationService / Paginator / ListDevicePositions ListDevicePositions ******************* class LocationService.Paginator.ListDevicePositions paginator = client.get_paginator('list_device_positions') paginate(**kwargs) Creates an iterator that will paginate through responses from "LocationService.Client.list_device_positions()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( TrackerName='string', FilterGeometry={ 'Polygon': [ [ [ 123.0, ], ], ] }, PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: * **TrackerName** (*string*) -- **[REQUIRED]** The tracker resource containing the requested devices. * **FilterGeometry** (*dict*) -- The geometry used to filter device positions. * **Polygon** *(list) --* The set of arrays which define the polygon. A polygon can have between 4 and 1000 vertices. * *(list) --* * *(list) --* * *(float) --* * **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'Entries': [ { 'DeviceId': 'string', 'SampleTime': datetime(2015, 1, 1), 'Position': [ 123.0, ], 'Accuracy': { 'Horizontal': 123.0 }, 'PositionProperties': { 'string': 'string' } }, ], } **Response Structure** * *(dict) --* * **Entries** *(list) --* Contains details about each device's last known position. * *(dict) --* Contains the tracker resource details. * **DeviceId** *(string) --* The ID of the device for this position. * **SampleTime** *(datetime) --* The timestamp at which the device position was determined. Uses ISO 8601 format: "YYYY-MM- DDThh:mm:ss.sssZ". * **Position** *(list) --* The last known device position. Empty if no positions currently stored. * *(float) --* * **Accuracy** *(dict) --* The accuracy of the device position. * **Horizontal** *(float) --* Estimated maximum distance, in meters, between the measured position and the true position of a device, along the Earth's surface. * **PositionProperties** *(dict) --* The properties associated with the position. * *(string) --* * *(string) --* LocationService / Paginator / ForecastGeofenceEvents ForecastGeofenceEvents ********************** class LocationService.Paginator.ForecastGeofenceEvents paginator = client.get_paginator('forecast_geofence_events') paginate(**kwargs) Creates an iterator that will paginate through responses from "LocationService.Client.forecast_geofence_events()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( CollectionName='string', DeviceState={ 'Position': [ 123.0, ], 'Speed': 123.0 }, TimeHorizonMinutes=123.0, DistanceUnit='Kilometers'|'Miles', SpeedUnit='KilometersPerHour'|'MilesPerHour', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: * **CollectionName** (*string*) -- **[REQUIRED]** The name of the geofence collection. * **DeviceState** (*dict*) -- **[REQUIRED]** Represents the device's state, including its current position and speed. When speed is omitted, this API performs a *containment check*. The *containment check* operation returns "IDLE" events for geofences where the device is currently inside of, but no other events. * **Position** *(list) --* **[REQUIRED]** The device's position. * *(float) --* * **Speed** *(float) --* The device's speed. * **TimeHorizonMinutes** (*float*) -- The forward-looking time window for forecasting, specified in minutes. The API only returns events that are predicted to occur within this time horizon. When no value is specified, this API performs a *containment check*. The *containment check* operation returns "IDLE" events for geofences where the device is currently inside of, but no other events. * **DistanceUnit** (*string*) -- The distance unit used for the "NearestDistance" property returned in a forecasted event. The measurement system must match for "DistanceUnit" and "SpeedUnit"; if "Kilometers" is specified for "DistanceUnit", then "SpeedUnit" must be "KilometersPerHour". Default Value: "Kilometers" * **SpeedUnit** (*string*) -- The speed unit for the device captured by the device state. The measurement system must match for "DistanceUnit" and "SpeedUnit"; if "Kilometers" is specified for "DistanceUnit", then "SpeedUnit" must be "KilometersPerHour". Default Value: "KilometersPerHour". * **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'ForecastedEvents': [ { 'EventId': 'string', 'GeofenceId': 'string', 'IsDeviceInGeofence': True|False, 'NearestDistance': 123.0, 'EventType': 'ENTER'|'EXIT'|'IDLE', 'ForecastedBreachTime': datetime(2015, 1, 1), 'GeofenceProperties': { 'string': 'string' } }, ], 'DistanceUnit': 'Kilometers'|'Miles', 'SpeedUnit': 'KilometersPerHour'|'MilesPerHour' } **Response Structure** * *(dict) --* * **ForecastedEvents** *(list) --* The list of forecasted events. * *(dict) --* A forecasted event represents a geofence event in relation to the requested device state, that may occur given the provided device state and time horizon. * **EventId** *(string) --* The forecasted event identifier. * **GeofenceId** *(string) --* The geofence identifier pertaining to the forecasted event. * **IsDeviceInGeofence** *(boolean) --* Indicates if the device is located within the geofence. * **NearestDistance** *(float) --* The closest distance from the device's position to the geofence. * **EventType** *(string) --* The event type, forecasting three states for which a device can be in relative to a geofence: "ENTER": If a device is outside of a geofence, but would breach the fence if the device is moving at its current speed within time horizon window. "EXIT": If a device is inside of a geofence, but would breach the fence if the device is moving at its current speed within time horizon window. "IDLE": If a device is inside of a geofence, and the device is not moving. * **ForecastedBreachTime** *(datetime) --* The forecasted time the device will breach the geofence in ISO 8601 format: "YYYY-MM- DDThh:mm:ss.sssZ" * **GeofenceProperties** *(dict) --* The geofence properties. * *(string) --* * *(string) --* * **DistanceUnit** *(string) --* The distance unit for the forecasted events. * **SpeedUnit** *(string) --* The speed unit for the forecasted events. LocationService / Paginator / ListMaps ListMaps ******** class LocationService.Paginator.ListMaps paginator = client.get_paginator('list_maps') paginate(**kwargs) Creates an iterator that will paginate through responses from "LocationService.Client.list_maps()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max- items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'Entries': [ { 'MapName': 'string', 'Description': 'string', 'DataSource': 'string', 'PricingPlan': 'RequestBasedUsage'|'MobileAssetTracking'|'MobileAssetManagement', 'CreateTime': datetime(2015, 1, 1), 'UpdateTime': datetime(2015, 1, 1) }, ], } **Response Structure** * *(dict) --* * **Entries** *(list) --* Contains a list of maps in your Amazon Web Services account * *(dict) --* Contains details of an existing map resource in your Amazon Web Services account. * **MapName** *(string) --* The name of the associated map resource. * **Description** *(string) --* The description for the map resource. * **DataSource** *(string) --* Specifies the data provider for the associated map tiles. * **PricingPlan** *(string) --* No longer used. Always returns "RequestBasedUsage". * **CreateTime** *(datetime) --* The timestamp for when the map resource was created in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ". * **UpdateTime** *(datetime) --* The timestamp for when the map resource was last updated in ISO 8601 format: "YYYY-MM- DDThh:mm:ss.sssZ". LocationService / Client / get_geofence get_geofence ************ LocationService.Client.get_geofence(**kwargs) Retrieves the geofence details from a geofence collection. Note: The returned geometry will always match the geometry format used when the geofence was created. See also: AWS API Documentation **Request Syntax** response = client.get_geofence( CollectionName='string', GeofenceId='string' ) Parameters: * **CollectionName** (*string*) -- **[REQUIRED]** The geofence collection storing the target geofence. * **GeofenceId** (*string*) -- **[REQUIRED]** The geofence you're retrieving details for. Return type: dict Returns: **Response Syntax** { 'GeofenceId': 'string', 'Geometry': { 'Polygon': [ [ [ 123.0, ], ], ], 'Circle': { 'Center': [ 123.0, ], 'Radius': 123.0 }, 'Geobuf': b'bytes', 'MultiPolygon': [ [ [ [ 123.0, ], ], ], ] }, 'Status': 'string', 'CreateTime': datetime(2015, 1, 1), 'UpdateTime': datetime(2015, 1, 1), 'GeofenceProperties': { 'string': 'string' } } **Response Structure** * *(dict) --* * **GeofenceId** *(string) --* The geofence identifier. * **Geometry** *(dict) --* Contains the geofence geometry details describing the position of the geofence. Can be a circle, a polygon, or a multipolygon. * **Polygon** *(list) --* A "Polygon" is a list of up to 250 linear rings which represent the shape of a geofence. This list *must* include 1 exterior ring (representing the outer perimeter of the geofence), and can optionally include up to 249 interior rings (representing polygonal spaces within the perimeter, which are excluded from the geofence area). A linear ring is an array of 4 or more vertices, where the first and last vertex are the same (to form a closed boundary). Each vertex is a 2-dimensional point represented as an array of doubles of length 2: "[longitude, latitude]". Each linear ring is represented as an array of arrays of doubles ( "[[longitude, latitude], [longitude, latitude], ...]"). The vertices for the exterior ring must be listed in *counter-clockwise* sequence. Vertices for all interior rings must be listed in *clockwise* sequence. The list of linear rings that describe the entire "Polygon" is represented as an array of arrays of arrays of doubles ( "[[[longitude, latitude], [longitude, latitude], ...], [[longitude, latitude], [longitude, latitude], ...], ...]"). The exterior ring must be listed first, before any interior rings. Note: The following additional requirements and limitations apply to geometries defined using the "Polygon" parameter: * The entire "Polygon" must consist of no more than 1,000 vertices, including all vertices from the exterior ring and all interior rings. * Rings must not touch or cross each other. * All interior rings must be fully contained within the exterior ring. * Interior rings must not contain other interior rings. * No ring is permitted to intersect itself. * *(list) --* * *(list) --* * *(float) --* * **Circle** *(dict) --* A circle on the earth, as defined by a center point and a radius. * **Center** *(list) --* A single point geometry, specifying the center of the circle, using WGS 84 coordinates, in the form "[longitude, latitude]". * *(float) --* * **Radius** *(float) --* The radius of the circle in meters. Must be greater than zero and no larger than 100,000 (100 kilometers). * **Geobuf** *(bytes) --* Geobuf is a compact binary encoding for geographic data that provides lossless compression of GeoJSON polygons. The Geobuf must be Base64-encoded. This parameter can contain a Geobuf-encoded GeoJSON geometry object of type "Polygon" *OR* "MultiPolygon". For more information and specific configuration requirements for these object types, see Polygon and MultiPolygon. Note: The following limitations apply specifically to geometries defined using the "Geobuf" parameter, and supercede the corresponding limitations of the "Polygon" and "MultiPolygon" parameters: * A "Polygon" in "Geobuf" format can have up to 25,000 rings and up to 100,000 total vertices, including all vertices from all component rings. * A "MultiPolygon" in "Geobuf" format can contain up to 10,000 "Polygons" and up to 100,000 total vertices, including all vertices from all component "Polygons". * **MultiPolygon** *(list) --* A "MultiPolygon" is a list of up to 250 "Polygon" elements which represent the shape of a geofence. The "Polygon" components of a "MultiPolygon" geometry can define separate geographical areas that are considered part of the same geofence, perimeters of larger exterior areas with smaller interior spaces that are excluded from the geofence, or some combination of these use cases to form complex geofence boundaries. For more information and specific configuration requirements for the "Polygon" components that form a "MultiPolygon", see Polygon. Note: The following additional requirements and limitations apply to geometries defined using the "MultiPolygon" parameter: * The entire "MultiPolygon" must consist of no more than 1,000 vertices, including all vertices from all component "Polygons". * Each edge of a component "Polygon" must intersect no more than 5 edges from other "Polygons". Parallel edges that are shared but do not cross are not counted toward this limit. * The total number of intersecting edges of component "Polygons" must be no more than 100,000. Parallel edges that are shared but do not cross are not counted toward this limit. * *(list) --* * *(list) --* * *(list) --* * *(float) --* * **Status** *(string) --* Identifies the state of the geofence. A geofence will hold one of the following states: * "ACTIVE" — The geofence has been indexed by the system. * "PENDING" — The geofence is being processed by the system. * "FAILED" — The geofence failed to be indexed by the system. * "DELETED" — The geofence has been deleted from the system index. * "DELETING" — The geofence is being deleted from the system index. * **CreateTime** *(datetime) --* The timestamp for when the geofence collection was created in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ" * **UpdateTime** *(datetime) --* The timestamp for when the geofence collection was last updated in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ" * **GeofenceProperties** *(dict) --* User defined properties of the geofence. A property is a key-value pair stored with the geofence and added to any geofence event triggered with that geofence. Format: ""key" : "value"" * *(string) --* * *(string) --* **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / get_map_style_descriptor get_map_style_descriptor ************************ LocationService.Client.get_map_style_descriptor(**kwargs) 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. See also: AWS API Documentation **Request Syntax** response = client.get_map_style_descriptor( MapName='string', Key='string' ) Parameters: * **MapName** (*string*) -- **[REQUIRED]** The map resource to retrieve the style descriptor from. * **Key** (*string*) -- The optional API key to authorize the request. Return type: dict Returns: **Response Syntax** { 'Blob': StreamingBody(), 'ContentType': 'string', 'CacheControl': 'string' } **Response Structure** * *(dict) --* * **Blob** ("StreamingBody") -- Contains the body of the style descriptor. * **ContentType** *(string) --* The style descriptor's content type. For example, "application/json". * **CacheControl** *(string) --* The HTTP Cache-Control directive for the value. **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / associate_tracker_consumer associate_tracker_consumer ************************** LocationService.Client.associate_tracker_consumer(**kwargs) 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. Note: Currently not supported — Cross-account configurations, such as creating associations between a tracker resource in one account and a geofence collection in another account. See also: AWS API Documentation **Request Syntax** response = client.associate_tracker_consumer( TrackerName='string', ConsumerArn='string' ) Parameters: * **TrackerName** (*string*) -- **[REQUIRED]** The name of the tracker resource to be associated with a geofence collection. * **ConsumerArn** (*string*) -- **[REQUIRED]** The Amazon Resource Name (ARN) for the geofence collection to be associated to tracker resource. Used when you need to specify a resource across all Amazon Web Services. * Format example: "arn:aws:geo:region:account-id:geofence- collection/ExampleGeofenceCollectionConsumer" Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.ConflictException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ServiceQuotaExceededException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / get_paginator get_paginator ************* LocationService.Client.get_paginator(operation_name) Create a paginator for an operation. Parameters: **operation_name** (*string*) -- The operation name. This is the same name as the method name on the client. For example, if the method name is "create_foo", and you'd normally invoke the operation as "client.create_foo(**kwargs)", if the "create_foo" operation can be paginated, you can use the call "client.get_paginator("create_foo")". Raises: **OperationNotPageableError** -- Raised if the operation is not pageable. You can use the "client.can_paginate" method to check if an operation is pageable. Return type: "botocore.paginate.Paginator" Returns: A paginator object. LocationService / Client / create_geofence_collection create_geofence_collection ************************** LocationService.Client.create_geofence_collection(**kwargs) Creates a geofence collection, which manages and stores geofences. See also: AWS API Documentation **Request Syntax** response = client.create_geofence_collection( CollectionName='string', PricingPlan='RequestBasedUsage'|'MobileAssetTracking'|'MobileAssetManagement', PricingPlanDataSource='string', Description='string', Tags={ 'string': 'string' }, KmsKeyId='string' ) Parameters: * **CollectionName** (*string*) -- **[REQUIRED]** A custom name for the geofence collection. Requirements: * Contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), periods (.), and underscores (_). * Must be a unique geofence collection name. * No spaces allowed. For example, "ExampleGeofenceCollection". * **PricingPlan** (*string*) -- No longer used. If included, the only allowed value is "RequestBasedUsage". * **PricingPlanDataSource** (*string*) -- This parameter is no longer used. * **Description** (*string*) -- An optional description for the geofence collection. * **Tags** (*dict*) -- Applies one or more tags to the geofence collection. A tag is a key-value pair helps manage, identify, search, and filter your resources by labelling them. Format: ""key" : "value"" Restrictions: * Maximum 50 tags per resource * Each resource tag must be unique with a maximum of one value. * Maximum key length: 128 Unicode characters in UTF-8 * Maximum value length: 256 Unicode characters in UTF-8 * Can use alphanumeric characters (A–Z, a–z, 0–9), and the following characters: + - = . _ : / @. * Cannot use "aws:" as a prefix for a key. * *(string) --* * *(string) --* * **KmsKeyId** (*string*) -- A key identifier for an Amazon Web Services KMS customer managed key. Enter a key ID, key ARN, alias name, or alias ARN. Return type: dict Returns: **Response Syntax** { 'CollectionName': 'string', 'CollectionArn': 'string', 'CreateTime': datetime(2015, 1, 1) } **Response Structure** * *(dict) --* * **CollectionName** *(string) --* The name for the geofence collection. * **CollectionArn** *(string) --* The Amazon Resource Name (ARN) for the geofence collection resource. Used when you need to specify a resource across all Amazon Web Services. * Format example: "arn:aws:geo:region:account-id:geofence- collection/ExampleGeofenceCollection" * **CreateTime** *(datetime) --* The timestamp for when the geofence collection was created in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ" **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ConflictException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ServiceQuotaExceededException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / create_map create_map ********** LocationService.Client.create_map(**kwargs) Creates a map resource in your Amazon Web Services account, which provides map tiles of different styles sourced from global location data providers. Note: 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. See also: AWS API Documentation **Request Syntax** response = client.create_map( MapName='string', Configuration={ 'Style': 'string', 'PoliticalView': 'string', 'CustomLayers': [ 'string', ] }, PricingPlan='RequestBasedUsage'|'MobileAssetTracking'|'MobileAssetManagement', Description='string', Tags={ 'string': 'string' } ) Parameters: * **MapName** (*string*) -- **[REQUIRED]** The name for the map resource. Requirements: * Must contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), periods (.), and underscores (_). * Must be a unique map resource name. * No spaces allowed. For example, "ExampleMap". * **Configuration** (*dict*) -- **[REQUIRED]** Specifies the "MapConfiguration", including the map style, for the map resource that you create. The map style defines the look of maps and the data provider for your map resource. * **Style** *(string) --* **[REQUIRED]** Specifies the map style selected from an available data provider. Valid Esri map styles: * "VectorEsriDarkGrayCanvas" – The Esri Dark Gray Canvas map style. A vector basemap with a dark gray, neutral background with minimal colors, labels, and features that's designed to draw attention to your thematic content. * "RasterEsriImagery" – The Esri Imagery map style. A raster basemap that provides one meter or better satellite and aerial imagery in many parts of the world and lower resolution satellite imagery worldwide. * "VectorEsriLightGrayCanvas" – The Esri Light Gray Canvas map style, which provides a detailed vector basemap with a light gray, neutral background style with minimal colors, labels, and features that's designed to draw attention to your thematic content. * "VectorEsriTopographic" – The Esri Light map style, which provides a detailed vector basemap with a classic Esri map style. * "VectorEsriStreets" – The Esri Street Map style, which provides a detailed vector basemap for the world symbolized with a classic Esri street map style. The vector tile layer is similar in content and style to the World Street Map raster map. * "VectorEsriNavigation" – The Esri Navigation map style, which provides a detailed basemap for the world symbolized with a custom navigation map style that's designed for use during the day in mobile devices. Valid HERE Technologies map styles: * "VectorHereContrast" – The HERE Contrast (Berlin) map style is a high contrast detailed base map of the world that blends 3D and 2D rendering. Note: The "VectorHereContrast" style has been renamed from "VectorHereBerlin". "VectorHereBerlin" has been deprecated, but will continue to work in applications that use it. * "VectorHereExplore" – A default HERE map style containing a neutral, global map and its features including roads, buildings, landmarks, and water features. It also now includes a fully designed map of Japan. * "VectorHereExploreTruck" – A global map containing truck restrictions and attributes (e.g. width / height / HAZMAT) symbolized with highlighted segments and icons on top of HERE Explore to support use cases within transport and logistics. * "RasterHereExploreSatellite" – A global map containing high resolution satellite imagery. * "HybridHereExploreSatellite" – A global map displaying the road network, street names, and city labels over satellite imagery. This style will automatically retrieve both raster and vector tiles, and your charges will be based on total tiles retrieved. Note: Hybrid styles use both vector and raster tiles when rendering the map that you see. This means that more tiles are retrieved than when using either vector or raster tiles alone. Your charges will include all tiles retrieved. Valid GrabMaps map styles: * "VectorGrabStandardLight" – The Grab Standard Light map style provides a basemap with detailed land use coloring, area names, roads, landmarks, and points of interest covering Southeast Asia. * "VectorGrabStandardDark" – The Grab Standard Dark map style provides a dark variation of the standard basemap covering Southeast Asia. Note: Grab provides maps only for countries in Southeast Asia, and is only available in the Asia Pacific (Singapore) Region ( "ap-southeast-1"). For more information, see GrabMaps countries and area covered. Valid Open Data map styles: * "VectorOpenDataStandardLight" – The Open Data Standard Light map style provides a detailed basemap for the world suitable for website and mobile application use. The map includes highways major roads, minor roads, railways, water features, cities, parks, landmarks, building footprints, and administrative boundaries. * "VectorOpenDataStandardDark" – Open Data Standard Dark is a dark-themed map style that provides a detailed basemap for the world suitable for website and mobile application use. The map includes highways major roads, minor roads, railways, water features, cities, parks, landmarks, building footprints, and administrative boundaries. * "VectorOpenDataVisualizationLight" – The Open Data Visualization Light map style is a light-themed style with muted colors and fewer features that aids in understanding overlaid data. * "VectorOpenDataVisualizationDark" – The Open Data Visualization Dark map style is a dark-themed style with muted colors and fewer features that aids in understanding overlaid data. * **PoliticalView** *(string) --* Specifies the political view for the style. Leave unset to not use a political view, or, for styles that support specific political views, you can choose a view, such as "IND" for the Indian view. Default is unset. Note: Not all map resources or styles support political view styles. See Political views for more information. * **CustomLayers** *(list) --* Specifies the custom layers for the style. Leave unset to not enable any custom layer, or, for styles that support custom layers, you can enable layer(s), such as POI layer for the VectorEsriNavigation style. Default is "unset". Note: Not all map resources or styles support custom layers. See Custom Layers for more information. * *(string) --* * **PricingPlan** (*string*) -- No longer used. If included, the only allowed value is "RequestBasedUsage". * **Description** (*string*) -- An optional description for the map resource. * **Tags** (*dict*) -- Applies one or more tags to the map resource. A tag is a key- value pair helps manage, identify, search, and filter your resources by labelling them. Format: ""key" : "value"" Restrictions: * Maximum 50 tags per resource * Each resource tag must be unique with a maximum of one value. * Maximum key length: 128 Unicode characters in UTF-8 * Maximum value length: 256 Unicode characters in UTF-8 * Can use alphanumeric characters (A–Z, a–z, 0–9), and the following characters: + - = . _ : / @. * Cannot use "aws:" as a prefix for a key. * *(string) --* * *(string) --* Return type: dict Returns: **Response Syntax** { 'MapName': 'string', 'MapArn': 'string', 'CreateTime': datetime(2015, 1, 1) } **Response Structure** * *(dict) --* * **MapName** *(string) --* The name of the map resource. * **MapArn** *(string) --* The Amazon Resource Name (ARN) for the map resource. Used to specify a resource across all Amazon Web Services. * Format example: "arn:aws:geo:region:account- id:map/ExampleMap" * **CreateTime** *(datetime) --* The timestamp for when the map resource was created in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ". **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ConflictException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ServiceQuotaExceededException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / calculate_route_matrix calculate_route_matrix ********************** LocationService.Client.calculate_route_matrix(**kwargs) 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". Note: 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. Note: 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". See also: AWS API Documentation **Request Syntax** response = client.calculate_route_matrix( CalculatorName='string', DeparturePositions=[ [ 123.0, ], ], DestinationPositions=[ [ 123.0, ], ], TravelMode='Car'|'Truck'|'Walking'|'Bicycle'|'Motorcycle', DepartureTime=datetime(2015, 1, 1), DepartNow=True|False, DistanceUnit='Kilometers'|'Miles', CarModeOptions={ 'AvoidFerries': True|False, 'AvoidTolls': True|False }, TruckModeOptions={ 'AvoidFerries': True|False, 'AvoidTolls': True|False, 'Dimensions': { 'Length': 123.0, 'Height': 123.0, 'Width': 123.0, 'Unit': 'Meters'|'Feet' }, 'Weight': { 'Total': 123.0, 'Unit': 'Kilograms'|'Pounds' } }, Key='string' ) Parameters: * **CalculatorName** (*string*) -- **[REQUIRED]** The name of the route calculator resource that you want to use to calculate the route matrix. * **DeparturePositions** (*list*) -- **[REQUIRED]** The list of departure (origin) positions for the route matrix. An array of points, each of which is itself a 2-value array defined in WGS 84 format: "[longitude, latitude]". For example, "[-123.115, 49.285]". Warning: Depending on the data provider selected in the route calculator resource there may be additional restrictions on the inputs you can choose. See Position restrictions in the *Amazon Location Service Developer Guide*. Note: For route calculators that use Esri as the data provider, if you specify a departure that's not located on a road, Amazon Location moves the position to the nearest road. The snapped value is available in the result in "SnappedDeparturePositions". Valid Values: "[-180 to 180,-90 to 90]" * *(list) --* * *(float) --* * **DestinationPositions** (*list*) -- **[REQUIRED]** The list of destination positions for the route matrix. An array of points, each of which is itself a 2-value array defined in WGS 84 format: "[longitude, latitude]". For example, "[-122.339, 47.615]" Warning: Depending on the data provider selected in the route calculator resource there may be additional restrictions on the inputs you can choose. See Position restrictions in the *Amazon Location Service Developer Guide*. Note: For route calculators that use Esri as the data provider, if you specify a destination that's not located on a road, Amazon Location moves the position to the nearest road. The snapped value is available in the result in "SnappedDestinationPositions". Valid Values: "[-180 to 180,-90 to 90]" * *(list) --* * *(float) --* * **TravelMode** (*string*) -- Specifies the mode of transport when calculating a route. Used in estimating the speed of travel and road compatibility. The "TravelMode" you specify also determines how you specify route preferences: * If traveling by "Car" use the "CarModeOptions" parameter. * If traveling by "Truck" use the "TruckModeOptions" parameter. Note: "Bicycle" or "Motorcycle" are only valid when using "Grab" as a data provider, and only within Southeast Asia."Truck" is not available for Grab.For more information about using Grab as a data provider, see GrabMaps in the *Amazon Location Service Developer Guide*. Default Value: "Car" * **DepartureTime** (*datetime*) -- Specifies the desired time of departure. Uses the given time to calculate the route matrix. You can't set both "DepartureTime" and "DepartNow". If neither is set, the best time of day to travel with the best traffic conditions is used to calculate the route matrix. Note: Setting a departure time in the past returns a "400 ValidationException" error. * In ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ". For example, "2020–07-2T12:15:20.000Z+01:00" * **DepartNow** (*boolean*) -- Sets the time of departure as the current time. Uses the current time to calculate the route matrix. You can't set both "DepartureTime" and "DepartNow". If neither is set, the best time of day to travel with the best traffic conditions is used to calculate the route matrix. Default Value: "false" Valid Values: "false" | "true" * **DistanceUnit** (*string*) -- Set the unit system to specify the distance. Default Value: "Kilometers" * **CarModeOptions** (*dict*) -- Specifies route preferences when traveling by "Car", such as avoiding routes that use ferries or tolls. Requirements: "TravelMode" must be specified as "Car". * **AvoidFerries** *(boolean) --* Avoids ferries when calculating routes. Default Value: "false" Valid Values: "false" | "true" * **AvoidTolls** *(boolean) --* Avoids tolls when calculating routes. Default Value: "false" Valid Values: "false" | "true" * **TruckModeOptions** (*dict*) -- Specifies route preferences when traveling by "Truck", such as avoiding routes that use ferries or tolls, and truck specifications to consider when choosing an optimal road. Requirements: "TravelMode" must be specified as "Truck". * **AvoidFerries** *(boolean) --* Avoids ferries when calculating routes. Default Value: "false" Valid Values: "false" | "true" * **AvoidTolls** *(boolean) --* Avoids tolls when calculating routes. Default Value: "false" Valid Values: "false" | "true" * **Dimensions** *(dict) --* Specifies the truck's dimension specifications including length, height, width, and unit of measurement. Used to avoid roads that can't support the truck's dimensions. * **Length** *(float) --* The length of the truck. * For example, "15.5". Note: For routes calculated with a HERE resource, this value must be between 0 and 300 meters. * **Height** *(float) --* The height of the truck. * For example, "4.5". Note: For routes calculated with a HERE resource, this value must be between 0 and 50 meters. * **Width** *(float) --* The width of the truck. * For example, "4.5". Note: For routes calculated with a HERE resource, this value must be between 0 and 50 meters. * **Unit** *(string) --* Specifies the unit of measurement for the truck dimensions. Default Value: "Meters" * **Weight** *(dict) --* Specifies the truck's weight specifications including total weight and unit of measurement. Used to avoid roads that can't support the truck's weight. * **Total** *(float) --* The total weight of the truck. * For example, "3500". * **Unit** *(string) --* The unit of measurement to use for the truck weight. Default Value: "Kilograms" * **Key** (*string*) -- The optional API key to authorize the request. Return type: dict Returns: **Response Syntax** { 'RouteMatrix': [ [ { 'Distance': 123.0, 'DurationSeconds': 123.0, 'Error': { 'Code': 'RouteNotFound'|'RouteTooLong'|'PositionsNotFound'|'DestinationPositionNotFound'|'DeparturePositionNotFound'|'OtherValidationError', 'Message': 'string' } }, ], ], 'SnappedDeparturePositions': [ [ 123.0, ], ], 'SnappedDestinationPositions': [ [ 123.0, ], ], 'Summary': { 'DataSource': 'string', 'RouteCount': 123, 'ErrorCount': 123, 'DistanceUnit': 'Kilometers'|'Miles' } } **Response Structure** * *(dict) --* Returns the result of the route matrix calculation. * **RouteMatrix** *(list) --* The calculated route matrix containing the results for all pairs of "DeparturePositions" to "DestinationPositions". Each row corresponds to one entry in "DeparturePositions". Each entry in the row corresponds to the route from that entry in "DeparturePositions" to an entry in "DestinationPositions". * *(list) --* * *(dict) --* The result for the calculated route of one "DeparturePosition" "DestinationPosition" pair. * **Distance** *(float) --* The total distance of travel for the route. * **DurationSeconds** *(float) --* The expected duration of travel for the route. * **Error** *(dict) --* An error corresponding to the calculation of a route between the "DeparturePosition" and "DestinationPosition". * **Code** *(string) --* The type of error which occurred for the route calculation. * **Message** *(string) --* A message about the error that occurred for the route calculation. * **SnappedDeparturePositions** *(list) --* For routes calculated using an Esri route calculator resource, departure positions are snapped to the closest road. For Esri route calculator resources, this returns the list of departure/origin positions used for calculation of the "RouteMatrix". * *(list) --* * *(float) --* * **SnappedDestinationPositions** *(list) --* The list of destination positions for the route matrix used for calculation of the "RouteMatrix". * *(list) --* * *(float) --* * **Summary** *(dict) --* Contains information about the route matrix, "DataSource", "DistanceUnit", "RouteCount" and "ErrorCount". * **DataSource** *(string) --* The data provider of traffic and road network data used to calculate the routes. Indicates one of the available providers: * "Esri" * "Grab" * "Here" For more information about data providers, see Amazon Location Service data providers. * **RouteCount** *(integer) --* The count of cells in the route matrix. Equal to the number of "DeparturePositions" multiplied by the number of "DestinationPositions". * **ErrorCount** *(integer) --* The count of error results in the route matrix. If this number is 0, all routes were calculated successfully. * **DistanceUnit** *(string) --* The unit of measurement for route distances. **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / disassociate_tracker_consumer disassociate_tracker_consumer ***************************** LocationService.Client.disassociate_tracker_consumer(**kwargs) Removes the association between a tracker resource and a geofence collection. Note: Once you unlink a tracker resource from a geofence collection, the tracker positions will no longer be automatically evaluated against geofences. See also: AWS API Documentation **Request Syntax** response = client.disassociate_tracker_consumer( TrackerName='string', ConsumerArn='string' ) Parameters: * **TrackerName** (*string*) -- **[REQUIRED]** The name of the tracker resource to be dissociated from the consumer. * **ConsumerArn** (*string*) -- **[REQUIRED]** The Amazon Resource Name (ARN) for the geofence collection to be disassociated from the tracker resource. Used when you need to specify a resource across all Amazon Web Services. * Format example: "arn:aws:geo:region:account-id:geofence- collection/ExampleGeofenceCollectionConsumer" Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / can_paginate can_paginate ************ LocationService.Client.can_paginate(operation_name) Check if an operation can be paginated. Parameters: **operation_name** (*string*) -- The operation name. This is the same name as the method name on the client. For example, if the method name is "create_foo", and you'd normally invoke the operation as "client.create_foo(**kwargs)", if the "create_foo" operation can be paginated, you can use the call "client.get_paginator("create_foo")". Returns: "True" if the operation can be paginated, "False" otherwise. LocationService / Client / get_device_position get_device_position ******************* LocationService.Client.get_device_position(**kwargs) Retrieves a device's most recent position according to its sample time. Note: Device positions are deleted after 30 days. See also: AWS API Documentation **Request Syntax** response = client.get_device_position( TrackerName='string', DeviceId='string' ) Parameters: * **TrackerName** (*string*) -- **[REQUIRED]** The tracker resource receiving the position update. * **DeviceId** (*string*) -- **[REQUIRED]** The device whose position you want to retrieve. Return type: dict Returns: **Response Syntax** { 'DeviceId': 'string', 'SampleTime': datetime(2015, 1, 1), 'ReceivedTime': datetime(2015, 1, 1), 'Position': [ 123.0, ], 'Accuracy': { 'Horizontal': 123.0 }, 'PositionProperties': { 'string': 'string' } } **Response Structure** * *(dict) --* * **DeviceId** *(string) --* The device whose position you retrieved. * **SampleTime** *(datetime) --* The timestamp at which the device's position was determined. Uses ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ". * **ReceivedTime** *(datetime) --* The timestamp for when the tracker resource received the device position. Uses ISO 8601 format: "YYYY-MM- DDThh:mm:ss.sssZ". * **Position** *(list) --* The last known device position. * *(float) --* * **Accuracy** *(dict) --* The accuracy of the device position. * **Horizontal** *(float) --* Estimated maximum distance, in meters, between the measured position and the true position of a device, along the Earth's surface. * **PositionProperties** *(dict) --* The properties associated with the position. * *(string) --* * *(string) --* **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / describe_tracker describe_tracker **************** LocationService.Client.describe_tracker(**kwargs) Retrieves the tracker resource details. See also: AWS API Documentation **Request Syntax** response = client.describe_tracker( TrackerName='string' ) Parameters: **TrackerName** (*string*) -- **[REQUIRED]** The name of the tracker resource. Return type: dict Returns: **Response Syntax** { 'TrackerName': 'string', 'TrackerArn': 'string', 'Description': 'string', 'PricingPlan': 'RequestBasedUsage'|'MobileAssetTracking'|'MobileAssetManagement', 'PricingPlanDataSource': 'string', 'Tags': { 'string': 'string' }, 'CreateTime': datetime(2015, 1, 1), 'UpdateTime': datetime(2015, 1, 1), 'KmsKeyId': 'string', 'PositionFiltering': 'TimeBased'|'DistanceBased'|'AccuracyBased', 'EventBridgeEnabled': True|False, 'KmsKeyEnableGeospatialQueries': True|False } **Response Structure** * *(dict) --* * **TrackerName** *(string) --* The name of the tracker resource. * **TrackerArn** *(string) --* The Amazon Resource Name (ARN) for the tracker resource. Used when you need to specify a resource across all Amazon Web Services. * Format example: "arn:aws:geo:region:account- id:tracker/ExampleTracker" * **Description** *(string) --* The optional description for the tracker resource. * **PricingPlan** *(string) --* Always returns "RequestBasedUsage". * **PricingPlanDataSource** *(string) --* No longer used. Always returns an empty string. * **Tags** *(dict) --* The tags associated with the tracker resource. * *(string) --* * *(string) --* * **CreateTime** *(datetime) --* The timestamp for when the tracker resource was created in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ". * **UpdateTime** *(datetime) --* The timestamp for when the tracker resource was last updated in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ". * **KmsKeyId** *(string) --* A key identifier for an Amazon Web Services KMS customer managed key assigned to the Amazon Location resource. * **PositionFiltering** *(string) --* The position filtering method of the tracker resource. * **EventBridgeEnabled** *(boolean) --* Whether "UPDATE" events from this tracker in EventBridge are enabled. If set to "true" these events will be sent to EventBridge. * **KmsKeyEnableGeospatialQueries** *(boolean) --* Enables "GeospatialQueries" for a tracker that uses a Amazon Web Services KMS customer managed key. This parameter is only used if you are using a KMS customer managed key. Note: If you wish to encrypt your data using your own KMS customer managed key, then the Bounding Polygon Queries feature will be disabled by default. This is because by using this feature, a representation of your device positions will not be encrypted using the your KMS managed key. The exact device position, however; is still encrypted using your managed key.You can choose to opt-in to the Bounding Polygon Quseries feature. This is done by setting the "KmsKeyEnableGeospatialQueries" parameter to true when creating or updating a Tracker. **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / put_geofence put_geofence ************ LocationService.Client.put_geofence(**kwargs) 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. See also: AWS API Documentation **Request Syntax** response = client.put_geofence( CollectionName='string', GeofenceId='string', Geometry={ 'Polygon': [ [ [ 123.0, ], ], ], 'Circle': { 'Center': [ 123.0, ], 'Radius': 123.0 }, 'Geobuf': b'bytes', 'MultiPolygon': [ [ [ [ 123.0, ], ], ], ] }, GeofenceProperties={ 'string': 'string' } ) Parameters: * **CollectionName** (*string*) -- **[REQUIRED]** The geofence collection to store the geofence in. * **GeofenceId** (*string*) -- **[REQUIRED]** An identifier for the geofence. For example, "ExampleGeofence-1". * **Geometry** (*dict*) -- **[REQUIRED]** Contains the details to specify the position of the geofence. Can be a circle, a polygon, or a multipolygon. "Polygon" and "MultiPolygon" geometries can be defined using their respective parameters, or encoded in Geobuf format using the "Geobuf" parameter. Including multiple geometry types in the same request will return a validation error. Note: The geofence "Polygon" and "MultiPolygon" formats support a maximum of 1,000 total vertices. The "Geobuf" format supports a maximum of 100,000 vertices. * **Polygon** *(list) --* A "Polygon" is a list of up to 250 linear rings which represent the shape of a geofence. This list *must* include 1 exterior ring (representing the outer perimeter of the geofence), and can optionally include up to 249 interior rings (representing polygonal spaces within the perimeter, which are excluded from the geofence area). A linear ring is an array of 4 or more vertices, where the first and last vertex are the same (to form a closed boundary). Each vertex is a 2-dimensional point represented as an array of doubles of length 2: "[longitude, latitude]". Each linear ring is represented as an array of arrays of doubles ( "[[longitude, latitude], [longitude, latitude], ...]"). The vertices for the exterior ring must be listed in *counter-clockwise* sequence. Vertices for all interior rings must be listed in *clockwise* sequence. The list of linear rings that describe the entire "Polygon" is represented as an array of arrays of arrays of doubles ( "[[[longitude, latitude], [longitude, latitude], ...], [[longitude, latitude], [longitude, latitude], ...], ...]"). The exterior ring must be listed first, before any interior rings. Note: The following additional requirements and limitations apply to geometries defined using the "Polygon" parameter: * The entire "Polygon" must consist of no more than 1,000 vertices, including all vertices from the exterior ring and all interior rings. * Rings must not touch or cross each other. * All interior rings must be fully contained within the exterior ring. * Interior rings must not contain other interior rings. * No ring is permitted to intersect itself. * *(list) --* * *(list) --* * *(float) --* * **Circle** *(dict) --* A circle on the earth, as defined by a center point and a radius. * **Center** *(list) --* **[REQUIRED]** A single point geometry, specifying the center of the circle, using WGS 84 coordinates, in the form "[longitude, latitude]". * *(float) --* * **Radius** *(float) --* **[REQUIRED]** The radius of the circle in meters. Must be greater than zero and no larger than 100,000 (100 kilometers). * **Geobuf** *(bytes) --* Geobuf is a compact binary encoding for geographic data that provides lossless compression of GeoJSON polygons. The Geobuf must be Base64-encoded. This parameter can contain a Geobuf-encoded GeoJSON geometry object of type "Polygon" *OR* "MultiPolygon". For more information and specific configuration requirements for these object types, see Polygon and MultiPolygon. Note: The following limitations apply specifically to geometries defined using the "Geobuf" parameter, and supercede the corresponding limitations of the "Polygon" and "MultiPolygon" parameters: * A "Polygon" in "Geobuf" format can have up to 25,000 rings and up to 100,000 total vertices, including all vertices from all component rings. * A "MultiPolygon" in "Geobuf" format can contain up to 10,000 "Polygons" and up to 100,000 total vertices, including all vertices from all component "Polygons". * **MultiPolygon** *(list) --* A "MultiPolygon" is a list of up to 250 "Polygon" elements which represent the shape of a geofence. The "Polygon" components of a "MultiPolygon" geometry can define separate geographical areas that are considered part of the same geofence, perimeters of larger exterior areas with smaller interior spaces that are excluded from the geofence, or some combination of these use cases to form complex geofence boundaries. For more information and specific configuration requirements for the "Polygon" components that form a "MultiPolygon", see Polygon. Note: The following additional requirements and limitations apply to geometries defined using the "MultiPolygon" parameter: * The entire "MultiPolygon" must consist of no more than 1,000 vertices, including all vertices from all component "Polygons". * Each edge of a component "Polygon" must intersect no more than 5 edges from other "Polygons". Parallel edges that are shared but do not cross are not counted toward this limit. * The total number of intersecting edges of component "Polygons" must be no more than 100,000. Parallel edges that are shared but do not cross are not counted toward this limit. * *(list) --* * *(list) --* * *(list) --* * *(float) --* * **GeofenceProperties** (*dict*) -- Associates one of more properties with the geofence. A property is a key-value pair stored with the geofence and added to any geofence event triggered with that geofence. Format: ""key" : "value"" * *(string) --* * *(string) --* Return type: dict Returns: **Response Syntax** { 'GeofenceId': 'string', 'CreateTime': datetime(2015, 1, 1), 'UpdateTime': datetime(2015, 1, 1) } **Response Structure** * *(dict) --* * **GeofenceId** *(string) --* The geofence identifier entered in the request. * **CreateTime** *(datetime) --* The timestamp for when the geofence was created in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ" * **UpdateTime** *(datetime) --* The timestamp for when the geofence was last updated in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ" **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.ConflictException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / forecast_geofence_events forecast_geofence_events ************************ LocationService.Client.forecast_geofence_events(**kwargs) This action forecasts future geofence events that are likely to occur within a specified time horizon if a device continues moving at its current speed. Each forecasted event is associated with a geofence from a provided geofence collection. A forecast event can have one of the following states: "ENTER": The device position is outside the referenced geofence, but the device may cross into the geofence during the forecasting time horizon if it maintains its current speed. "EXIT": The device position is inside the referenced geofence, but the device may leave the geofence during the forecasted time horizon if the device maintains it's current speed. "IDLE":The device is inside the geofence, and it will remain inside the geofence through the end of the time horizon if the device maintains it's current speed. Note: Heading direction is not considered in the current version. The API takes a conservative approach and includes events that can occur for any heading. See also: AWS API Documentation **Request Syntax** response = client.forecast_geofence_events( CollectionName='string', DeviceState={ 'Position': [ 123.0, ], 'Speed': 123.0 }, TimeHorizonMinutes=123.0, DistanceUnit='Kilometers'|'Miles', SpeedUnit='KilometersPerHour'|'MilesPerHour', NextToken='string', MaxResults=123 ) Parameters: * **CollectionName** (*string*) -- **[REQUIRED]** The name of the geofence collection. * **DeviceState** (*dict*) -- **[REQUIRED]** Represents the device's state, including its current position and speed. When speed is omitted, this API performs a *containment check*. The *containment check* operation returns "IDLE" events for geofences where the device is currently inside of, but no other events. * **Position** *(list) --* **[REQUIRED]** The device's position. * *(float) --* * **Speed** *(float) --* The device's speed. * **TimeHorizonMinutes** (*float*) -- The forward-looking time window for forecasting, specified in minutes. The API only returns events that are predicted to occur within this time horizon. When no value is specified, this API performs a *containment check*. The *containment check* operation returns "IDLE" events for geofences where the device is currently inside of, but no other events. * **DistanceUnit** (*string*) -- The distance unit used for the "NearestDistance" property returned in a forecasted event. The measurement system must match for "DistanceUnit" and "SpeedUnit"; if "Kilometers" is specified for "DistanceUnit", then "SpeedUnit" must be "KilometersPerHour". Default Value: "Kilometers" * **SpeedUnit** (*string*) -- The speed unit for the device captured by the device state. The measurement system must match for "DistanceUnit" and "SpeedUnit"; if "Kilometers" is specified for "DistanceUnit", then "SpeedUnit" must be "KilometersPerHour". Default Value: "KilometersPerHour". * **NextToken** (*string*) -- The pagination token specifying which page of results to return in the response. If no token is provided, the default page is the first page. Default value: "null" * **MaxResults** (*integer*) -- An optional limit for the number of resources returned in a single call. Default value: "20" Return type: dict Returns: **Response Syntax** { 'ForecastedEvents': [ { 'EventId': 'string', 'GeofenceId': 'string', 'IsDeviceInGeofence': True|False, 'NearestDistance': 123.0, 'EventType': 'ENTER'|'EXIT'|'IDLE', 'ForecastedBreachTime': datetime(2015, 1, 1), 'GeofenceProperties': { 'string': 'string' } }, ], 'NextToken': 'string', 'DistanceUnit': 'Kilometers'|'Miles', 'SpeedUnit': 'KilometersPerHour'|'MilesPerHour' } **Response Structure** * *(dict) --* * **ForecastedEvents** *(list) --* The list of forecasted events. * *(dict) --* A forecasted event represents a geofence event in relation to the requested device state, that may occur given the provided device state and time horizon. * **EventId** *(string) --* The forecasted event identifier. * **GeofenceId** *(string) --* The geofence identifier pertaining to the forecasted event. * **IsDeviceInGeofence** *(boolean) --* Indicates if the device is located within the geofence. * **NearestDistance** *(float) --* The closest distance from the device's position to the geofence. * **EventType** *(string) --* The event type, forecasting three states for which a device can be in relative to a geofence: "ENTER": If a device is outside of a geofence, but would breach the fence if the device is moving at its current speed within time horizon window. "EXIT": If a device is inside of a geofence, but would breach the fence if the device is moving at its current speed within time horizon window. "IDLE": If a device is inside of a geofence, and the device is not moving. * **ForecastedBreachTime** *(datetime) --* The forecasted time the device will breach the geofence in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ" * **GeofenceProperties** *(dict) --* The geofence properties. * *(string) --* * *(string) --* * **NextToken** *(string) --* The pagination token specifying which page of results to return in the response. If no token is provided, the default page is the first page. * **DistanceUnit** *(string) --* The distance unit for the forecasted events. * **SpeedUnit** *(string) --* The speed unit for the forecasted events. **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / list_tags_for_resource list_tags_for_resource ********************** LocationService.Client.list_tags_for_resource(**kwargs) Returns a list of tags that are applied to the specified Amazon Location resource. See also: AWS API Documentation **Request Syntax** response = client.list_tags_for_resource( ResourceArn='string' ) Parameters: **ResourceArn** (*string*) -- **[REQUIRED]** The Amazon Resource Name (ARN) of the resource whose tags you want to retrieve. * Format example: "arn:aws:geo:region:account- id:resourcetype/ExampleResource" Return type: dict Returns: **Response Syntax** { 'Tags': { 'string': 'string' } } **Response Structure** * *(dict) --* * **Tags** *(dict) --* Tags that have been applied to the specified resource. Tags are mapped from the tag key to the tag value: ""TagKey" : "TagValue"". * Format example: "{"tag1" : "value1", "tag2" : "value2"}" * *(string) --* * *(string) --* **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / batch_update_device_position batch_update_device_position **************************** LocationService.Client.batch_update_device_position(**kwargs) 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. Note: 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". See also: AWS API Documentation **Request Syntax** response = client.batch_update_device_position( TrackerName='string', Updates=[ { 'DeviceId': 'string', 'SampleTime': datetime(2015, 1, 1), 'Position': [ 123.0, ], 'Accuracy': { 'Horizontal': 123.0 }, 'PositionProperties': { 'string': 'string' } }, ] ) Parameters: * **TrackerName** (*string*) -- **[REQUIRED]** The name of the tracker resource to update. * **Updates** (*list*) -- **[REQUIRED]** Contains the position update details for each device, up to 10 devices. * *(dict) --* Contains the position update details for a device. * **DeviceId** *(string) --* **[REQUIRED]** The device associated to the position update. * **SampleTime** *(datetime) --* **[REQUIRED]** The timestamp at which the device's position was determined. Uses ISO 8601 format: "YYYY-MM- DDThh:mm:ss.sssZ" * **Position** *(list) --* **[REQUIRED]** The latest device position defined in WGS 84 format: "[X or longitude, Y or latitude]". * *(float) --* * **Accuracy** *(dict) --* The accuracy of the device position. * **Horizontal** *(float) --* **[REQUIRED]** Estimated maximum distance, in meters, between the measured position and the true position of a device, along the Earth's surface. * **PositionProperties** *(dict) --* Associates one of more properties with the position update. A property is a key-value pair stored with the position update and added to any geofence event the update may trigger. Format: ""key" : "value"" * *(string) --* * *(string) --* Return type: dict Returns: **Response Syntax** { 'Errors': [ { 'DeviceId': 'string', 'SampleTime': datetime(2015, 1, 1), 'Error': { 'Code': 'AccessDeniedError'|'ConflictError'|'InternalServerError'|'ResourceNotFoundError'|'ThrottlingError'|'ValidationError', 'Message': 'string' } }, ] } **Response Structure** * *(dict) --* * **Errors** *(list) --* Contains error details for each device that failed to update its position. * *(dict) --* Contains error details for each device that failed to update its position. * **DeviceId** *(string) --* The device associated with the failed location update. * **SampleTime** *(datetime) --* The timestamp at which the device position was determined. Uses ISO 8601 format: "YYYY-MM- DDThh:mm:ss.sssZ". * **Error** *(dict) --* Contains details related to the error code such as the error code and error message. * **Code** *(string) --* The error code associated with the batch request error. * **Message** *(string) --* A message with the reason for the batch request error. **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / list_trackers list_trackers ************* LocationService.Client.list_trackers(**kwargs) Lists tracker resources in your Amazon Web Services account. See also: AWS API Documentation **Request Syntax** response = client.list_trackers( MaxResults=123, NextToken='string' ) Parameters: * **MaxResults** (*integer*) -- An optional limit for the number of resources returned in a single call. Default value: "100" * **NextToken** (*string*) -- The pagination token specifying which page of results to return in the response. If no token is provided, the default page is the first page. Default value: "null" Return type: dict Returns: **Response Syntax** { 'Entries': [ { 'TrackerName': 'string', 'Description': 'string', 'PricingPlan': 'RequestBasedUsage'|'MobileAssetTracking'|'MobileAssetManagement', 'PricingPlanDataSource': 'string', 'CreateTime': datetime(2015, 1, 1), 'UpdateTime': datetime(2015, 1, 1) }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **Entries** *(list) --* Contains tracker resources in your Amazon Web Services account. Details include tracker name, description and timestamps for when the tracker was created and last updated. * *(dict) --* Contains the tracker resource details. * **TrackerName** *(string) --* The name of the tracker resource. * **Description** *(string) --* The description for the tracker resource. * **PricingPlan** *(string) --* Always returns "RequestBasedUsage". * **PricingPlanDataSource** *(string) --* No longer used. Always returns an empty string. * **CreateTime** *(datetime) --* The timestamp for when the tracker resource was created in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ". * **UpdateTime** *(datetime) --* The timestamp at which the device's position was determined. Uses ISO 8601 format: "YYYY-MM- DDThh:mm:ss.sssZ". * **NextToken** *(string) --* A pagination token indicating there are additional pages available. You can use the token in a following request to fetch the next set of results. **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / batch_evaluate_geofences batch_evaluate_geofences ************************ LocationService.Client.batch_evaluate_geofences(**kwargs) 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. Note: The last geofence that a device was observed within is tracked for 30 days after the most recent device position update. Note: Geofence evaluation uses the given device position. It does not account for the optional "Accuracy" of a "DevicePositionUpdate". Note: The "DeviceID" is used as a string to represent the device. You do not need to have a "Tracker" associated with the "DeviceID". See also: AWS API Documentation **Request Syntax** response = client.batch_evaluate_geofences( CollectionName='string', DevicePositionUpdates=[ { 'DeviceId': 'string', 'SampleTime': datetime(2015, 1, 1), 'Position': [ 123.0, ], 'Accuracy': { 'Horizontal': 123.0 }, 'PositionProperties': { 'string': 'string' } }, ] ) Parameters: * **CollectionName** (*string*) -- **[REQUIRED]** The geofence collection used in evaluating the position of devices against its geofences. * **DevicePositionUpdates** (*list*) -- **[REQUIRED]** Contains device details for each device to be evaluated against the given geofence collection. * *(dict) --* Contains the position update details for a device. * **DeviceId** *(string) --* **[REQUIRED]** The device associated to the position update. * **SampleTime** *(datetime) --* **[REQUIRED]** The timestamp at which the device's position was determined. Uses ISO 8601 format: "YYYY-MM- DDThh:mm:ss.sssZ" * **Position** *(list) --* **[REQUIRED]** The latest device position defined in WGS 84 format: "[X or longitude, Y or latitude]". * *(float) --* * **Accuracy** *(dict) --* The accuracy of the device position. * **Horizontal** *(float) --* **[REQUIRED]** Estimated maximum distance, in meters, between the measured position and the true position of a device, along the Earth's surface. * **PositionProperties** *(dict) --* Associates one of more properties with the position update. A property is a key-value pair stored with the position update and added to any geofence event the update may trigger. Format: ""key" : "value"" * *(string) --* * *(string) --* Return type: dict Returns: **Response Syntax** { 'Errors': [ { 'DeviceId': 'string', 'SampleTime': datetime(2015, 1, 1), 'Error': { 'Code': 'AccessDeniedError'|'ConflictError'|'InternalServerError'|'ResourceNotFoundError'|'ThrottlingError'|'ValidationError', 'Message': 'string' } }, ] } **Response Structure** * *(dict) --* * **Errors** *(list) --* Contains error details for each device that failed to evaluate its position against the given geofence collection. * *(dict) --* Contains error details for each device that failed to evaluate its position against the geofences in a given geofence collection. * **DeviceId** *(string) --* The device associated with the position evaluation error. * **SampleTime** *(datetime) --* Specifies a timestamp for when the error occurred in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ" * **Error** *(dict) --* Contains details associated to the batch error. * **Code** *(string) --* The error code associated with the batch request error. * **Message** *(string) --* A message with the reason for the batch request error. **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / untag_resource untag_resource ************** LocationService.Client.untag_resource(**kwargs) Removes one or more tags from the specified Amazon Location resource. See also: AWS API Documentation **Request Syntax** response = client.untag_resource( ResourceArn='string', TagKeys=[ 'string', ] ) Parameters: * **ResourceArn** (*string*) -- **[REQUIRED]** The Amazon Resource Name (ARN) of the resource from which you want to remove tags. * Format example: "arn:aws:geo:region:account- id:resourcetype/ExampleResource" * **TagKeys** (*list*) -- **[REQUIRED]** The list of tag keys to remove from the specified resource. * *(string) --* Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / create_key create_key ********** LocationService.Client.create_key(**kwargs) 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. Note: For more information, see Using API keys. See also: AWS API Documentation **Request Syntax** response = client.create_key( KeyName='string', Restrictions={ 'AllowActions': [ 'string', ], 'AllowResources': [ 'string', ], 'AllowReferers': [ 'string', ] }, Description='string', ExpireTime=datetime(2015, 1, 1), NoExpiry=True|False, Tags={ 'string': 'string' } ) Parameters: * **KeyName** (*string*) -- **[REQUIRED]** A custom name for the API key resource. Requirements: * Contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), periods (.), and underscores (_). * Must be a unique API key name. * No spaces allowed. For example, "ExampleAPIKey". * **Restrictions** (*dict*) -- **[REQUIRED]** The API key restrictions for the API key resource. * **AllowActions** *(list) --* **[REQUIRED]** A list of allowed actions that an API key resource grants permissions to perform. You must have at least one action for each type of resource. For example, if you have a place resource, you must include at least one place action. The following are valid values for the actions. * **Map actions** * "geo:GetMap*" - Allows all actions needed for map rendering. * "geo-maps:GetTile" - Allows retrieving map tiles. * "geo-maps:GetStaticMap" - Allows retrieving static map images. * "geo-maps:*" - Allows all actions related to map functionalities. * **Place actions** * "geo:SearchPlaceIndexForText" - Allows geocoding. * "geo:SearchPlaceIndexForPosition" - Allows reverse geocoding. * "geo:SearchPlaceIndexForSuggestions" - Allows generating suggestions from text. * "GetPlace" - Allows finding a place by place ID. * "geo-places:Geocode" - Allows geocoding using place information. * "geo-places:ReverseGeocode" - Allows reverse geocoding from location coordinates. * "geo-places:SearchNearby" - Allows searching for places near a location. * "geo-places:SearchText" - Allows searching for places based on text input. * "geo-places:Autocomplete" - Allows auto-completion of place names based on text input. * "geo-places:Suggest" - Allows generating suggestions for places based on partial input. * "geo-places:GetPlace" - Allows finding a place by its ID. * "geo-places:*" - Allows all actions related to place services. * **Route actions** * "geo:CalculateRoute" - Allows point to point routing. * "geo:CalculateRouteMatrix" - Allows calculating a matrix of routes. * "geo-routes:CalculateRoutes" - Allows calculating multiple routes between points. * "geo-routes:CalculateRouteMatrix" - Allows calculating a matrix of routes between points. * "geo-routes:CalculateIsolines" - Allows calculating isolines for a given area. * "geo-routes:OptimizeWaypoints" - Allows optimizing the order of waypoints in a route. * "geo-routes:SnapToRoads" - Allows snapping a route to the nearest roads. * "geo-routes:*" - Allows all actions related to routing functionalities. Note: You must use these strings exactly. For example, to provide access to map rendering, the only valid action is "geo:GetMap*" as an input to the list. "["geo:GetMap*"]" is valid but "["geo:GetMapTile"]" is not. Similarly, you cannot use "["geo:SearchPlaceIndexFor*"]" - you must list each of the Place actions separately. * *(string) --* * **AllowResources** *(list) --* **[REQUIRED]** A list of allowed resource ARNs that a API key bearer can perform actions on. * The ARN must be the correct ARN for a map, place, or route ARN. You may include wildcards in the resource-id to match multiple resources of the same type. * The resources must be in the same "partition", "region", and "account-id" as the key that is being created. * Other than wildcards, you must include the full ARN, including the "arn", "partition", "service", "region", "account-id" and "resource-id" delimited by colons (:). * No spaces allowed, even with wildcards. For example, "arn:aws:geo:region:account-id:map/ExampleMap*". For more information about ARN format, see Amazon Resource Names (ARNs). * *(string) --* * **AllowReferers** *(list) --* An optional list of allowed HTTP referers for which requests must originate from. Requests using this API key from other domains will not be allowed. Requirements: * Contain only alphanumeric characters (A–Z, a–z, 0–9) or any symbols in this list "$\-._+!*`(),;/?:@=&" * May contain a percent (%) if followed by 2 hexadecimal digits (A-F, a-f, 0-9); this is used for URL encoding purposes. * May contain wildcard characters question mark (?) and asterisk (*). Question mark (?) will replace any single character (including hexadecimal digits). Asterisk (*) will replace any multiple characters (including multiple hexadecimal digits). * No spaces allowed. For example, "https://example.com". * *(string) --* * **Description** (*string*) -- An optional description for the API key resource. * **ExpireTime** (*datetime*) -- The optional timestamp for when the API key resource will expire in ISO 8601 format: "YYYY-MM- DDThh:mm:ss.sssZ". One of "NoExpiry" or "ExpireTime" must be set. * **NoExpiry** (*boolean*) -- Optionally set to "true" to set no expiration time for the API key. One of "NoExpiry" or "ExpireTime" must be set. * **Tags** (*dict*) -- Applies one or more tags to the map resource. A tag is a key- value pair that helps manage, identify, search, and filter your resources by labelling them. Format: ""key" : "value"" Restrictions: * Maximum 50 tags per resource * Each resource tag must be unique with a maximum of one value. * Maximum key length: 128 Unicode characters in UTF-8 * Maximum value length: 256 Unicode characters in UTF-8 * Can use alphanumeric characters (A–Z, a–z, 0–9), and the following characters: + - = . _ : / @. * Cannot use "aws:" as a prefix for a key. * *(string) --* * *(string) --* Return type: dict Returns: **Response Syntax** { 'Key': 'string', 'KeyArn': 'string', 'KeyName': 'string', 'CreateTime': datetime(2015, 1, 1) } **Response Structure** * *(dict) --* * **Key** *(string) --* The key value/string of an API key. This value is used when making API calls to authorize the call. For example, see GetMapGlyphs. * **KeyArn** *(string) --* The Amazon Resource Name (ARN) for the API key resource. Used when you need to specify a resource across all Amazon Web Services. * Format example: "arn:aws:geo:region:account- id:key/ExampleKey" * **KeyName** *(string) --* The name of the API key resource. * **CreateTime** *(datetime) --* The timestamp for when the API key resource was created in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ". **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ConflictException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ServiceQuotaExceededException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / list_tracker_consumers list_tracker_consumers ********************** LocationService.Client.list_tracker_consumers(**kwargs) Lists geofence collections currently associated to the given tracker resource. See also: AWS API Documentation **Request Syntax** response = client.list_tracker_consumers( TrackerName='string', MaxResults=123, NextToken='string' ) Parameters: * **TrackerName** (*string*) -- **[REQUIRED]** The tracker resource whose associated geofence collections you want to list. * **MaxResults** (*integer*) -- An optional limit for the number of resources returned in a single call. Default value: "100" * **NextToken** (*string*) -- The pagination token specifying which page of results to return in the response. If no token is provided, the default page is the first page. Default value: "null" Return type: dict Returns: **Response Syntax** { 'ConsumerArns': [ 'string', ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **ConsumerArns** *(list) --* Contains the list of geofence collection ARNs associated to the tracker resource. * *(string) --* * **NextToken** *(string) --* A pagination token indicating there are additional pages available. You can use the token in a following request to fetch the next set of results. **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / update_geofence_collection update_geofence_collection ************************** LocationService.Client.update_geofence_collection(**kwargs) Updates the specified properties of a given geofence collection. See also: AWS API Documentation **Request Syntax** response = client.update_geofence_collection( CollectionName='string', PricingPlan='RequestBasedUsage'|'MobileAssetTracking'|'MobileAssetManagement', PricingPlanDataSource='string', Description='string' ) Parameters: * **CollectionName** (*string*) -- **[REQUIRED]** The name of the geofence collection to update. * **PricingPlan** (*string*) -- No longer used. If included, the only allowed value is "RequestBasedUsage". * **PricingPlanDataSource** (*string*) -- This parameter is no longer used. * **Description** (*string*) -- Updates the description for the geofence collection. Return type: dict Returns: **Response Syntax** { 'CollectionName': 'string', 'CollectionArn': 'string', 'UpdateTime': datetime(2015, 1, 1) } **Response Structure** * *(dict) --* * **CollectionName** *(string) --* The name of the updated geofence collection. * **CollectionArn** *(string) --* The Amazon Resource Name (ARN) of the updated geofence collection. Used to specify a resource across Amazon Web Services. * Format example: "arn:aws:geo:region:account-id:geofence- collection/ExampleGeofenceCollection" * **UpdateTime** *(datetime) --* The time when the geofence collection was last updated in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ" **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / batch_delete_geofence batch_delete_geofence ********************* LocationService.Client.batch_delete_geofence(**kwargs) Deletes a batch of geofences from a geofence collection. Note: This operation deletes the resource permanently. See also: AWS API Documentation **Request Syntax** response = client.batch_delete_geofence( CollectionName='string', GeofenceIds=[ 'string', ] ) Parameters: * **CollectionName** (*string*) -- **[REQUIRED]** The geofence collection storing the geofences to be deleted. * **GeofenceIds** (*list*) -- **[REQUIRED]** The batch of geofences to be deleted. * *(string) --* Return type: dict Returns: **Response Syntax** { 'Errors': [ { 'GeofenceId': 'string', 'Error': { 'Code': 'AccessDeniedError'|'ConflictError'|'InternalServerError'|'ResourceNotFoundError'|'ThrottlingError'|'ValidationError', 'Message': 'string' } }, ] } **Response Structure** * *(dict) --* * **Errors** *(list) --* Contains error details for each geofence that failed to delete. * *(dict) --* Contains error details for each geofence that failed to delete from the geofence collection. * **GeofenceId** *(string) --* The geofence associated with the error message. * **Error** *(dict) --* Contains details associated to the batch error. * **Code** *(string) --* The error code associated with the batch request error. * **Message** *(string) --* A message with the reason for the batch request error. **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / get_waiter get_waiter ********** LocationService.Client.get_waiter(waiter_name) Returns an object that can wait for some condition. Parameters: **waiter_name** (*str*) -- The name of the waiter to get. See the waiters section of the service docs for a list of available waiters. Returns: The specified waiter object. Return type: "botocore.waiter.Waiter" LocationService / Client / list_maps list_maps ********* LocationService.Client.list_maps(**kwargs) Lists map resources in your Amazon Web Services account. See also: AWS API Documentation **Request Syntax** response = client.list_maps( MaxResults=123, NextToken='string' ) Parameters: * **MaxResults** (*integer*) -- An optional limit for the number of resources returned in a single call. Default value: "100" * **NextToken** (*string*) -- The pagination token specifying which page of results to return in the response. If no token is provided, the default page is the first page. Default value: "null" Return type: dict Returns: **Response Syntax** { 'Entries': [ { 'MapName': 'string', 'Description': 'string', 'DataSource': 'string', 'PricingPlan': 'RequestBasedUsage'|'MobileAssetTracking'|'MobileAssetManagement', 'CreateTime': datetime(2015, 1, 1), 'UpdateTime': datetime(2015, 1, 1) }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **Entries** *(list) --* Contains a list of maps in your Amazon Web Services account * *(dict) --* Contains details of an existing map resource in your Amazon Web Services account. * **MapName** *(string) --* The name of the associated map resource. * **Description** *(string) --* The description for the map resource. * **DataSource** *(string) --* Specifies the data provider for the associated map tiles. * **PricingPlan** *(string) --* No longer used. Always returns "RequestBasedUsage". * **CreateTime** *(datetime) --* The timestamp for when the map resource was created in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ". * **UpdateTime** *(datetime) --* The timestamp for when the map resource was last updated in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ". * **NextToken** *(string) --* A pagination token indicating there are additional pages available. You can use the token in a following request to fetch the next set of results. **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / list_geofence_collections list_geofence_collections ************************* LocationService.Client.list_geofence_collections(**kwargs) Lists geofence collections in your Amazon Web Services account. See also: AWS API Documentation **Request Syntax** response = client.list_geofence_collections( MaxResults=123, NextToken='string' ) Parameters: * **MaxResults** (*integer*) -- An optional limit for the number of resources returned in a single call. Default value: "100" * **NextToken** (*string*) -- The pagination token specifying which page of results to return in the response. If no token is provided, the default page is the first page. Default value: "null" Return type: dict Returns: **Response Syntax** { 'Entries': [ { 'CollectionName': 'string', 'Description': 'string', 'PricingPlan': 'RequestBasedUsage'|'MobileAssetTracking'|'MobileAssetManagement', 'PricingPlanDataSource': 'string', 'CreateTime': datetime(2015, 1, 1), 'UpdateTime': datetime(2015, 1, 1) }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **Entries** *(list) --* Lists the geofence collections that exist in your Amazon Web Services account. * *(dict) --* Contains the geofence collection details. Note: The returned geometry will always match the geometry format used when the geofence was created. * **CollectionName** *(string) --* The name of the geofence collection. * **Description** *(string) --* The description for the geofence collection * **PricingPlan** *(string) --* No longer used. Always returns "RequestBasedUsage". * **PricingPlanDataSource** *(string) --* No longer used. Always returns an empty string. * **CreateTime** *(datetime) --* The timestamp for when the geofence collection was created in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ" * **UpdateTime** *(datetime) --* Specifies a timestamp for when the resource was last updated in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ" * **NextToken** *(string) --* A pagination token indicating there are additional pages available. You can use the token in a following request to fetch the next set of results. **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / get_map_glyphs get_map_glyphs ************** LocationService.Client.get_map_glyphs(**kwargs) Retrieves glyphs used to display labels on a map. See also: AWS API Documentation **Request Syntax** response = client.get_map_glyphs( MapName='string', FontStack='string', FontUnicodeRange='string', Key='string' ) Parameters: * **MapName** (*string*) -- **[REQUIRED]** The map resource associated with the glyph file. * **FontStack** (*string*) -- **[REQUIRED]** A comma-separated list of fonts to load glyphs from in order of preference. For example, "Noto Sans Regular, Arial Unicode". Valid font stacks for Esri styles: * VectorEsriDarkGrayCanvas – "Ubuntu Medium Italic" | "Ubuntu Medium" | "Ubuntu Italic" | "Ubuntu Regular" | "Ubuntu Bold" * VectorEsriLightGrayCanvas – "Ubuntu Italic" | "Ubuntu Regular" | "Ubuntu Light" | "Ubuntu Bold" * VectorEsriTopographic – "Noto Sans Italic" | "Noto Sans Regular" | "Noto Sans Bold" | "Noto Serif Regular" | "Roboto Condensed Light Italic" * VectorEsriStreets – "Arial Regular" | "Arial Italic" | "Arial Bold" * VectorEsriNavigation – "Arial Regular" | "Arial Italic" | "Arial Bold" Valid font stacks for HERE Technologies styles: * VectorHereContrast – "Fira GO Regular" | "Fira GO Bold" * VectorHereExplore, VectorHereExploreTruck, HybridHereExploreSatellite – "Fira GO Italic" | "Fira GO Map" | "Fira GO Map Bold" | "Noto Sans CJK JP Bold" | "Noto Sans CJK JP Light" | "Noto Sans CJK JP Regular" Valid font stacks for GrabMaps styles: * VectorGrabStandardLight, VectorGrabStandardDark – "Noto Sans Regular" | "Noto Sans Medium" | "Noto Sans Bold" Valid font stacks for Open Data styles: * VectorOpenDataStandardLight, VectorOpenDataStandardDark, VectorOpenDataVisualizationLight, VectorOpenDataVisualizationDark – "Amazon Ember Regular,Noto Sans Regular" | "Amazon Ember Bold,Noto Sans Bold" | "Amazon Ember Medium,Noto Sans Medium" | "Amazon Ember Regular Italic,Noto Sans Italic" | "Amazon Ember Condensed RC Regular,Noto Sans Regular" | "Amazon Ember Condensed RC Bold,Noto Sans Bold" | "Amazon Ember Regular,Noto Sans Regular,Noto Sans Arabic Regular" | "Amazon Ember Condensed RC Bold,Noto Sans Bold,Noto Sans Arabic Condensed Bold" | "Amazon Ember Bold,Noto Sans Bold,Noto Sans Arabic Bold" | "Amazon Ember Regular Italic,Noto Sans Italic,Noto Sans Arabic Regular" | "Amazon Ember Condensed RC Regular,Noto Sans Regular,Noto Sans Arabic Condensed Regular" | "Amazon Ember Medium,Noto Sans Medium,Noto Sans Arabic Medium" Note: The fonts used by the Open Data map styles are combined fonts that use "Amazon Ember" for most glyphs but "Noto Sans" for glyphs unsupported by "Amazon Ember". * **FontUnicodeRange** (*string*) -- **[REQUIRED]** A Unicode range of characters to download glyphs for. Each response will contain 256 characters. For example, 0–255 includes all characters from range "U+0000" to "00FF". Must be aligned to multiples of 256. * **Key** (*string*) -- The optional API key to authorize the request. Return type: dict Returns: **Response Syntax** { 'Blob': StreamingBody(), 'ContentType': 'string', 'CacheControl': 'string' } **Response Structure** * *(dict) --* * **Blob** ("StreamingBody") -- The glyph, as binary blob. * **ContentType** *(string) --* The map glyph content type. For example, "application/octet- stream". * **CacheControl** *(string) --* The HTTP Cache-Control directive for the value. **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / calculate_route calculate_route *************** LocationService.Client.calculate_route(**kwargs) 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. Note: 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". Note: If you specify "walking" for the travel mode and your data provider is Esri, the start and destination must be within 40km. See also: AWS API Documentation **Request Syntax** response = client.calculate_route( CalculatorName='string', DeparturePosition=[ 123.0, ], DestinationPosition=[ 123.0, ], WaypointPositions=[ [ 123.0, ], ], TravelMode='Car'|'Truck'|'Walking'|'Bicycle'|'Motorcycle', DepartureTime=datetime(2015, 1, 1), DepartNow=True|False, DistanceUnit='Kilometers'|'Miles', IncludeLegGeometry=True|False, CarModeOptions={ 'AvoidFerries': True|False, 'AvoidTolls': True|False }, TruckModeOptions={ 'AvoidFerries': True|False, 'AvoidTolls': True|False, 'Dimensions': { 'Length': 123.0, 'Height': 123.0, 'Width': 123.0, 'Unit': 'Meters'|'Feet' }, 'Weight': { 'Total': 123.0, 'Unit': 'Kilograms'|'Pounds' } }, ArrivalTime=datetime(2015, 1, 1), OptimizeFor='FastestRoute'|'ShortestRoute', Key='string' ) Parameters: * **CalculatorName** (*string*) -- **[REQUIRED]** The name of the route calculator resource that you want to use to calculate the route. * **DeparturePosition** (*list*) -- **[REQUIRED]** The start position for the route. Defined in World Geodetic System (WGS 84) format: "[longitude, latitude]". * For example, "[-123.115, 49.285]" Note: If you specify a departure that's not located on a road, Amazon Location moves the position to the nearest road. If Esri is the provider for your route calculator, specifying a route that is longer than 400 km returns a "400 RoutesValidationException" error. Valid Values: "[-180 to 180,-90 to 90]" * *(float) --* * **DestinationPosition** (*list*) -- **[REQUIRED]** The finish position for the route. Defined in World Geodetic System (WGS 84) format: "[longitude, latitude]". * For example, "[-122.339, 47.615]" Note: If you specify a destination that's not located on a road, Amazon Location moves the position to the nearest road. Valid Values: "[-180 to 180,-90 to 90]" * *(float) --* * **WaypointPositions** (*list*) -- Specifies an ordered list of up to 23 intermediate positions to include along a route between the departure position and destination position. * For example, from the "DeparturePosition" "[-123.115, 49.285]", the route follows the order that the waypoint positions are given "[[-122.757, 49.0021],[-122.349, 47.620]]" Note: If you specify a waypoint position that's not located on a road, Amazon Location moves the position to the nearest road.Specifying more than 23 waypoints returns a "400 ValidationException" error.If Esri is the provider for your route calculator, specifying a route that is longer than 400 km returns a "400 RoutesValidationException" error. Valid Values: "[-180 to 180,-90 to 90]" * *(list) --* * *(float) --* * **TravelMode** (*string*) -- Specifies the mode of transport when calculating a route. Used in estimating the speed of travel and road compatibility. You can choose "Car", "Truck", "Walking", "Bicycle" or "Motorcycle" as options for the "TravelMode". Note: "Bicycle" and "Motorcycle" are only valid when using Grab as a data provider, and only within Southeast Asia."Truck" is not available for Grab.For more details on the using Grab for routing, including areas of coverage, see GrabMaps in the *Amazon Location Service Developer Guide*. The "TravelMode" you specify also determines how you specify route preferences: * If traveling by "Car" use the "CarModeOptions" parameter. * If traveling by "Truck" use the "TruckModeOptions" parameter. Default Value: "Car" * **DepartureTime** (*datetime*) -- Specifies the desired time of departure. Uses the given time to calculate the route. Otherwise, the best time of day to travel with the best traffic conditions is used to calculate the route. * In ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ". For example, "2020–07-2T12:15:20.000Z+01:00" * **DepartNow** (*boolean*) -- Sets the time of departure as the current time. Uses the current time to calculate a route. Otherwise, the best time of day to travel with the best traffic conditions is used to calculate the route. Default Value: "false" Valid Values: "false" | "true" * **DistanceUnit** (*string*) -- Set the unit system to specify the distance. Default Value: "Kilometers" * **IncludeLegGeometry** (*boolean*) -- Set to include the geometry details in the result for each path between a pair of positions. Default Value: "false" Valid Values: "false" | "true" * **CarModeOptions** (*dict*) -- Specifies route preferences when traveling by "Car", such as avoiding routes that use ferries or tolls. Requirements: "TravelMode" must be specified as "Car". * **AvoidFerries** *(boolean) --* Avoids ferries when calculating routes. Default Value: "false" Valid Values: "false" | "true" * **AvoidTolls** *(boolean) --* Avoids tolls when calculating routes. Default Value: "false" Valid Values: "false" | "true" * **TruckModeOptions** (*dict*) -- Specifies route preferences when traveling by "Truck", such as avoiding routes that use ferries or tolls, and truck specifications to consider when choosing an optimal road. Requirements: "TravelMode" must be specified as "Truck". * **AvoidFerries** *(boolean) --* Avoids ferries when calculating routes. Default Value: "false" Valid Values: "false" | "true" * **AvoidTolls** *(boolean) --* Avoids tolls when calculating routes. Default Value: "false" Valid Values: "false" | "true" * **Dimensions** *(dict) --* Specifies the truck's dimension specifications including length, height, width, and unit of measurement. Used to avoid roads that can't support the truck's dimensions. * **Length** *(float) --* The length of the truck. * For example, "15.5". Note: For routes calculated with a HERE resource, this value must be between 0 and 300 meters. * **Height** *(float) --* The height of the truck. * For example, "4.5". Note: For routes calculated with a HERE resource, this value must be between 0 and 50 meters. * **Width** *(float) --* The width of the truck. * For example, "4.5". Note: For routes calculated with a HERE resource, this value must be between 0 and 50 meters. * **Unit** *(string) --* Specifies the unit of measurement for the truck dimensions. Default Value: "Meters" * **Weight** *(dict) --* Specifies the truck's weight specifications including total weight and unit of measurement. Used to avoid roads that can't support the truck's weight. * **Total** *(float) --* The total weight of the truck. * For example, "3500". * **Unit** *(string) --* The unit of measurement to use for the truck weight. Default Value: "Kilograms" * **ArrivalTime** (*datetime*) -- Specifies the desired time of arrival. Uses the given time to calculate the route. Otherwise, the best time of day to travel with the best traffic conditions is used to calculate the route. Note: ArrivalTime is not supported Esri. * **OptimizeFor** (*string*) -- Specifies the distance to optimize for when calculating a route. * **Key** (*string*) -- The optional API key to authorize the request. Return type: dict Returns: **Response Syntax** { 'Legs': [ { 'StartPosition': [ 123.0, ], 'EndPosition': [ 123.0, ], 'Distance': 123.0, 'DurationSeconds': 123.0, 'Geometry': { 'LineString': [ [ 123.0, ], ] }, 'Steps': [ { 'StartPosition': [ 123.0, ], 'EndPosition': [ 123.0, ], 'Distance': 123.0, 'DurationSeconds': 123.0, 'GeometryOffset': 123 }, ] }, ], 'Summary': { 'RouteBBox': [ 123.0, ], 'DataSource': 'string', 'Distance': 123.0, 'DurationSeconds': 123.0, 'DistanceUnit': 'Kilometers'|'Miles' } } **Response Structure** * *(dict) --* Returns the result of the route calculation. Metadata includes legs and route summary. * **Legs** *(list) --* Contains details about each path between a pair of positions included along a route such as: "StartPosition", "EndPosition", "Distance", "DurationSeconds", "Geometry", and "Steps". The number of legs returned corresponds to one fewer than the total number of positions in the request. For example, a route with a departure position and destination position returns one leg with the positions snapped to a nearby road: * The "StartPosition" is the departure position. * The "EndPosition" is the destination position. A route with a waypoint between the departure and destination position returns two legs with the positions snapped to a nearby road: * Leg 1: The "StartPosition" is the departure position . The "EndPosition" is the waypoint positon. * Leg 2: The "StartPosition" is the waypoint position. The "EndPosition" is the destination position. * *(dict) --* Contains the calculated route's details for each path between a pair of positions. The number of legs returned corresponds to one fewer than the total number of positions in the request. For example, a route with a departure position and destination position returns one leg with the positions snapped to a nearby road: * The "StartPosition" is the departure position. * The "EndPosition" is the destination position. A route with a waypoint between the departure and destination position returns two legs with the positions snapped to a nearby road: * Leg 1: The "StartPosition" is the departure position . The "EndPosition" is the waypoint positon. * Leg 2: The "StartPosition" is the waypoint position. The "EndPosition" is the destination position. * **StartPosition** *(list) --* The starting position of the leg. Follows the format "[longitude,latitude]". Note: If the "StartPosition" isn't located on a road, it's snapped to a nearby road. * *(float) --* * **EndPosition** *(list) --* The terminating position of the leg. Follows the format "[longitude,latitude]". Note: If the "EndPosition" isn't located on a road, it's snapped to a nearby road. * *(float) --* * **Distance** *(float) --* The distance between the leg's "StartPosition" and "EndPosition" along a calculated route. * The default measurement is "Kilometers" unless the request specifies a "DistanceUnit" of "Miles". * **DurationSeconds** *(float) --* The estimated travel time between the leg's "StartPosition" and "EndPosition". The travel mode and departure time that you specify in the request determines the calculated time. * **Geometry** *(dict) --* Contains the calculated route's path as a linestring geometry. * **LineString** *(list) --* An ordered list of positions used to plot a route on a map. The first position is closest to the start position for the leg, and the last position is the closest to the end position for the leg. * For example, "[[-123.117, 49.284],[-123.115, 49.285],[-123.115, 49.285]]" * *(list) --* * *(float) --* * **Steps** *(list) --* Contains a list of steps, which represent subsections of a leg. Each step provides instructions for how to move to the next step in the leg such as the step's start position, end position, travel distance, travel duration, and geometry offset. * *(dict) --* Represents an element of a leg within a route. A step contains instructions for how to move to the next step in the leg. * **StartPosition** *(list) --* The starting position of a step. If the position is the first step in the leg, this position is the same as the start position of the leg. * *(float) --* * **EndPosition** *(list) --* The end position of a step. If the position the last step in the leg, this position is the same as the end position of the leg. * *(float) --* * **Distance** *(float) --* The travel distance between the step's "StartPosition" and "EndPosition". * **DurationSeconds** *(float) --* The estimated travel time, in seconds, from the step's "StartPosition" to the "EndPosition". . The travel mode and departure time that you specify in the request determines the calculated time. * **GeometryOffset** *(integer) --* Represents the start position, or index, in a sequence of steps within the leg's line string geometry. For example, the index of the first step in a leg geometry is "0". Included in the response for queries that set "IncludeLegGeometry" to "True". * **Summary** *(dict) --* Contains information about the whole route, such as: "RouteBBox", "DataSource", "Distance", "DistanceUnit", and "DurationSeconds". * **RouteBBox** *(list) --* Specifies a geographical box surrounding a route. Used to zoom into a route when displaying it in a map. For example, "[min x, min y, max x, max y]". The first 2 "bbox" parameters describe the lower southwest corner: * The first "bbox" position is the X coordinate or longitude of the lower southwest corner. * The second "bbox" position is the Y coordinate or latitude of the lower southwest corner. The next 2 "bbox" parameters describe the upper northeast corner: * The third "bbox" position is the X coordinate, or longitude of the upper northeast corner. * The fourth "bbox" position is the Y coordinate, or latitude of the upper northeast corner. * *(float) --* * **DataSource** *(string) --* The data provider of traffic and road network data used to calculate the route. Indicates one of the available providers: * "Esri" * "Grab" * "Here" For more information about data providers, see Amazon Location Service data providers. * **Distance** *(float) --* The total distance covered by the route. The sum of the distance travelled between every stop on the route. Note: If Esri is the data source for the route calculator, the route distance can’t be greater than 400 km. If the route exceeds 400 km, the response is a "400 RoutesValidationException" error. * **DurationSeconds** *(float) --* The total travel time for the route measured in seconds. The sum of the travel time between every stop on the route. * **DistanceUnit** *(string) --* The unit of measurement for route distances. **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / describe_route_calculator describe_route_calculator ************************* LocationService.Client.describe_route_calculator(**kwargs) Retrieves the route calculator resource details. See also: AWS API Documentation **Request Syntax** response = client.describe_route_calculator( CalculatorName='string' ) Parameters: **CalculatorName** (*string*) -- **[REQUIRED]** The name of the route calculator resource. Return type: dict Returns: **Response Syntax** { 'CalculatorName': 'string', 'CalculatorArn': 'string', 'PricingPlan': 'RequestBasedUsage'|'MobileAssetTracking'|'MobileAssetManagement', 'Description': 'string', 'CreateTime': datetime(2015, 1, 1), 'UpdateTime': datetime(2015, 1, 1), 'DataSource': 'string', 'Tags': { 'string': 'string' } } **Response Structure** * *(dict) --* * **CalculatorName** *(string) --* The name of the route calculator resource being described. * **CalculatorArn** *(string) --* The Amazon Resource Name (ARN) for the Route calculator resource. Use the ARN when you specify a resource across Amazon Web Services. * Format example: "arn:aws:geo:region:account-id:route- calculator/ExampleCalculator" * **PricingPlan** *(string) --* Always returns "RequestBasedUsage". * **Description** *(string) --* The optional description of the route calculator resource. * **CreateTime** *(datetime) --* The timestamp when the route calculator resource was created in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ". * For example, "2020–07-2T12:15:20.000Z+01:00" * **UpdateTime** *(datetime) --* The timestamp when the route calculator resource was last updated in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ". * For example, "2020–07-2T12:15:20.000Z+01:00" * **DataSource** *(string) --* The data provider of traffic and road network data. Indicates one of the available providers: * "Esri" * "Grab" * "Here" For more information about data providers, see Amazon Location Service data providers. * **Tags** *(dict) --* Tags associated with route calculator resource. * *(string) --* * *(string) --* **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / batch_put_geofence batch_put_geofence ****************** LocationService.Client.batch_put_geofence(**kwargs) 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. See also: AWS API Documentation **Request Syntax** response = client.batch_put_geofence( CollectionName='string', Entries=[ { 'GeofenceId': 'string', 'Geometry': { 'Polygon': [ [ [ 123.0, ], ], ], 'Circle': { 'Center': [ 123.0, ], 'Radius': 123.0 }, 'Geobuf': b'bytes', 'MultiPolygon': [ [ [ [ 123.0, ], ], ], ] }, 'GeofenceProperties': { 'string': 'string' } }, ] ) Parameters: * **CollectionName** (*string*) -- **[REQUIRED]** The geofence collection storing the geofences. * **Entries** (*list*) -- **[REQUIRED]** The batch of geofences to be stored in a geofence collection. * *(dict) --* Contains geofence geometry details. * **GeofenceId** *(string) --* **[REQUIRED]** The identifier for the geofence to be stored in a given geofence collection. * **Geometry** *(dict) --* **[REQUIRED]** Contains the details to specify the position of the geofence. Can be a circle, a polygon, or a multipolygon. "Polygon" and "MultiPolygon" geometries can be defined using their respective parameters, or encoded in Geobuf format using the "Geobuf" parameter. Including multiple geometry types in the same request will return a validation error. Note: The geofence "Polygon" and "MultiPolygon" formats support a maximum of 1,000 total vertices. The "Geobuf" format supports a maximum of 100,000 vertices. * **Polygon** *(list) --* A "Polygon" is a list of up to 250 linear rings which represent the shape of a geofence. This list *must* include 1 exterior ring (representing the outer perimeter of the geofence), and can optionally include up to 249 interior rings (representing polygonal spaces within the perimeter, which are excluded from the geofence area). A linear ring is an array of 4 or more vertices, where the first and last vertex are the same (to form a closed boundary). Each vertex is a 2-dimensional point represented as an array of doubles of length 2: "[longitude, latitude]". Each linear ring is represented as an array of arrays of doubles ( "[[longitude, latitude], [longitude, latitude], ...]"). The vertices for the exterior ring must be listed in *counter-clockwise* sequence. Vertices for all interior rings must be listed in *clockwise* sequence. The list of linear rings that describe the entire "Polygon" is represented as an array of arrays of arrays of doubles ( "[[[longitude, latitude], [longitude, latitude], ...], [[longitude, latitude], [longitude, latitude], ...], ...]"). The exterior ring must be listed first, before any interior rings. Note: The following additional requirements and limitations apply to geometries defined using the "Polygon" parameter: * The entire "Polygon" must consist of no more than 1,000 vertices, including all vertices from the exterior ring and all interior rings. * Rings must not touch or cross each other. * All interior rings must be fully contained within the exterior ring. * Interior rings must not contain other interior rings. * No ring is permitted to intersect itself. * *(list) --* * *(list) --* * *(float) --* * **Circle** *(dict) --* A circle on the earth, as defined by a center point and a radius. * **Center** *(list) --* **[REQUIRED]** A single point geometry, specifying the center of the circle, using WGS 84 coordinates, in the form "[longitude, latitude]". * *(float) --* * **Radius** *(float) --* **[REQUIRED]** The radius of the circle in meters. Must be greater than zero and no larger than 100,000 (100 kilometers). * **Geobuf** *(bytes) --* Geobuf is a compact binary encoding for geographic data that provides lossless compression of GeoJSON polygons. The Geobuf must be Base64-encoded. This parameter can contain a Geobuf-encoded GeoJSON geometry object of type "Polygon" *OR* "MultiPolygon". For more information and specific configuration requirements for these object types, see Polygon and MultiPolygon. Note: The following limitations apply specifically to geometries defined using the "Geobuf" parameter, and supercede the corresponding limitations of the "Polygon" and "MultiPolygon" parameters: * A "Polygon" in "Geobuf" format can have up to 25,000 rings and up to 100,000 total vertices, including all vertices from all component rings. * A "MultiPolygon" in "Geobuf" format can contain up to 10,000 "Polygons" and up to 100,000 total vertices, including all vertices from all component "Polygons". * **MultiPolygon** *(list) --* A "MultiPolygon" is a list of up to 250 "Polygon" elements which represent the shape of a geofence. The "Polygon" components of a "MultiPolygon" geometry can define separate geographical areas that are considered part of the same geofence, perimeters of larger exterior areas with smaller interior spaces that are excluded from the geofence, or some combination of these use cases to form complex geofence boundaries. For more information and specific configuration requirements for the "Polygon" components that form a "MultiPolygon", see Polygon. Note: The following additional requirements and limitations apply to geometries defined using the "MultiPolygon" parameter: * The entire "MultiPolygon" must consist of no more than 1,000 vertices, including all vertices from all component "Polygons". * Each edge of a component "Polygon" must intersect no more than 5 edges from other "Polygons". Parallel edges that are shared but do not cross are not counted toward this limit. * The total number of intersecting edges of component "Polygons" must be no more than 100,000. Parallel edges that are shared but do not cross are not counted toward this limit. * *(list) --* * *(list) --* * *(list) --* * *(float) --* * **GeofenceProperties** *(dict) --* Associates one of more properties with the geofence. A property is a key-value pair stored with the geofence and added to any geofence event triggered with that geofence. Format: ""key" : "value"" * *(string) --* * *(string) --* Return type: dict Returns: **Response Syntax** { 'Successes': [ { 'GeofenceId': 'string', 'CreateTime': datetime(2015, 1, 1), 'UpdateTime': datetime(2015, 1, 1) }, ], 'Errors': [ { 'GeofenceId': 'string', 'Error': { 'Code': 'AccessDeniedError'|'ConflictError'|'InternalServerError'|'ResourceNotFoundError'|'ThrottlingError'|'ValidationError', 'Message': 'string' } }, ] } **Response Structure** * *(dict) --* * **Successes** *(list) --* Contains each geofence that was successfully stored in a geofence collection. * *(dict) --* Contains a summary of each geofence that was successfully stored in a given geofence collection. * **GeofenceId** *(string) --* The geofence successfully stored in a geofence collection. * **CreateTime** *(datetime) --* The timestamp for when the geofence was stored in a geofence collection in ISO 8601 format: "YYYY-MM- DDThh:mm:ss.sssZ" * **UpdateTime** *(datetime) --* The timestamp for when the geofence was last updated in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ" * **Errors** *(list) --* Contains additional error details for each geofence that failed to be stored in a geofence collection. * *(dict) --* Contains error details for each geofence that failed to be stored in a given geofence collection. * **GeofenceId** *(string) --* The geofence associated with the error message. * **Error** *(dict) --* Contains details associated to the batch error. * **Code** *(string) --* The error code associated with the batch request error. * **Message** *(string) --* A message with the reason for the batch request error. **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / describe_key describe_key ************ LocationService.Client.describe_key(**kwargs) Retrieves the API key resource details. See also: AWS API Documentation **Request Syntax** response = client.describe_key( KeyName='string' ) Parameters: **KeyName** (*string*) -- **[REQUIRED]** The name of the API key resource. Return type: dict Returns: **Response Syntax** { 'Key': 'string', 'KeyArn': 'string', 'KeyName': 'string', 'Restrictions': { 'AllowActions': [ 'string', ], 'AllowResources': [ 'string', ], 'AllowReferers': [ 'string', ] }, 'CreateTime': datetime(2015, 1, 1), 'ExpireTime': datetime(2015, 1, 1), 'UpdateTime': datetime(2015, 1, 1), 'Description': 'string', 'Tags': { 'string': 'string' } } **Response Structure** * *(dict) --* * **Key** *(string) --* The key value/string of an API key. * **KeyArn** *(string) --* The Amazon Resource Name (ARN) for the API key resource. Used when you need to specify a resource across all Amazon Web Services. * Format example: "arn:aws:geo:region:account- id:key/ExampleKey" * **KeyName** *(string) --* The name of the API key resource. * **Restrictions** *(dict) --* API Restrictions on the allowed actions, resources, and referers for an API key resource. * **AllowActions** *(list) --* A list of allowed actions that an API key resource grants permissions to perform. You must have at least one action for each type of resource. For example, if you have a place resource, you must include at least one place action. The following are valid values for the actions. * **Map actions** * "geo:GetMap*" - Allows all actions needed for map rendering. * "geo-maps:GetTile" - Allows retrieving map tiles. * "geo-maps:GetStaticMap" - Allows retrieving static map images. * "geo-maps:*" - Allows all actions related to map functionalities. * **Place actions** * "geo:SearchPlaceIndexForText" - Allows geocoding. * "geo:SearchPlaceIndexForPosition" - Allows reverse geocoding. * "geo:SearchPlaceIndexForSuggestions" - Allows generating suggestions from text. * "GetPlace" - Allows finding a place by place ID. * "geo-places:Geocode" - Allows geocoding using place information. * "geo-places:ReverseGeocode" - Allows reverse geocoding from location coordinates. * "geo-places:SearchNearby" - Allows searching for places near a location. * "geo-places:SearchText" - Allows searching for places based on text input. * "geo-places:Autocomplete" - Allows auto-completion of place names based on text input. * "geo-places:Suggest" - Allows generating suggestions for places based on partial input. * "geo-places:GetPlace" - Allows finding a place by its ID. * "geo-places:*" - Allows all actions related to place services. * **Route actions** * "geo:CalculateRoute" - Allows point to point routing. * "geo:CalculateRouteMatrix" - Allows calculating a matrix of routes. * "geo-routes:CalculateRoutes" - Allows calculating multiple routes between points. * "geo-routes:CalculateRouteMatrix" - Allows calculating a matrix of routes between points. * "geo-routes:CalculateIsolines" - Allows calculating isolines for a given area. * "geo-routes:OptimizeWaypoints" - Allows optimizing the order of waypoints in a route. * "geo-routes:SnapToRoads" - Allows snapping a route to the nearest roads. * "geo-routes:*" - Allows all actions related to routing functionalities. Note: You must use these strings exactly. For example, to provide access to map rendering, the only valid action is "geo:GetMap*" as an input to the list. "["geo:GetMap*"]" is valid but "["geo:GetMapTile"]" is not. Similarly, you cannot use "["geo:SearchPlaceIndexFor*"]" - you must list each of the Place actions separately. * *(string) --* * **AllowResources** *(list) --* A list of allowed resource ARNs that a API key bearer can perform actions on. * The ARN must be the correct ARN for a map, place, or route ARN. You may include wildcards in the resource-id to match multiple resources of the same type. * The resources must be in the same "partition", "region", and "account-id" as the key that is being created. * Other than wildcards, you must include the full ARN, including the "arn", "partition", "service", "region", "account-id" and "resource-id" delimited by colons (:). * No spaces allowed, even with wildcards. For example, "arn:aws:geo:region:account-id:map/ExampleMap*". For more information about ARN format, see Amazon Resource Names (ARNs). * *(string) --* * **AllowReferers** *(list) --* An optional list of allowed HTTP referers for which requests must originate from. Requests using this API key from other domains will not be allowed. Requirements: * Contain only alphanumeric characters (A–Z, a–z, 0–9) or any symbols in this list "$\-._+!*`(),;/?:@=&" * May contain a percent (%) if followed by 2 hexadecimal digits (A-F, a-f, 0-9); this is used for URL encoding purposes. * May contain wildcard characters question mark (?) and asterisk (*). Question mark (?) will replace any single character (including hexadecimal digits). Asterisk (*) will replace any multiple characters (including multiple hexadecimal digits). * No spaces allowed. For example, "https://example.com". * *(string) --* * **CreateTime** *(datetime) --* The timestamp for when the API key resource was created in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ". * **ExpireTime** *(datetime) --* The timestamp for when the API key resource will expire in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ". * **UpdateTime** *(datetime) --* The timestamp for when the API key resource was last updated in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ". * **Description** *(string) --* The optional description for the API key resource. * **Tags** *(dict) --* Tags associated with the API key resource. * *(string) --* * *(string) --* **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / get_map_sprites get_map_sprites *************** LocationService.Client.get_map_sprites(**kwargs) 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. See also: AWS API Documentation **Request Syntax** response = client.get_map_sprites( MapName='string', FileName='string', Key='string' ) Parameters: * **MapName** (*string*) -- **[REQUIRED]** The map resource associated with the sprite file. * **FileName** (*string*) -- **[REQUIRED]** The name of the sprite file. Use the following file names for the sprite sheet: * "sprites.png" * "sprites@2x.png" for high pixel density displays For the JSON document containing image offsets. Use the following file names: * "sprites.json" * "sprites@2x.json" for high pixel density displays * **Key** (*string*) -- The optional API key to authorize the request. Return type: dict Returns: **Response Syntax** { 'Blob': StreamingBody(), 'ContentType': 'string', 'CacheControl': 'string' } **Response Structure** * *(dict) --* * **Blob** ("StreamingBody") -- Contains the body of the sprite sheet or JSON offset file. * **ContentType** *(string) --* The content type of the sprite sheet and offsets. For example, the sprite sheet content type is "image/png", and the sprite offset JSON document is "application/json". * **CacheControl** *(string) --* The HTTP Cache-Control directive for the value. **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / list_device_positions list_device_positions ********************* LocationService.Client.list_device_positions(**kwargs) A batch request to retrieve all device positions. See also: AWS API Documentation **Request Syntax** response = client.list_device_positions( TrackerName='string', MaxResults=123, NextToken='string', FilterGeometry={ 'Polygon': [ [ [ 123.0, ], ], ] } ) Parameters: * **TrackerName** (*string*) -- **[REQUIRED]** The tracker resource containing the requested devices. * **MaxResults** (*integer*) -- An optional limit for the number of entries returned in a single call. Default value: "100" * **NextToken** (*string*) -- The pagination token specifying which page of results to return in the response. If no token is provided, the default page is the first page. Default value: "null" * **FilterGeometry** (*dict*) -- The geometry used to filter device positions. * **Polygon** *(list) --* The set of arrays which define the polygon. A polygon can have between 4 and 1000 vertices. * *(list) --* * *(list) --* * *(float) --* Return type: dict Returns: **Response Syntax** { 'Entries': [ { 'DeviceId': 'string', 'SampleTime': datetime(2015, 1, 1), 'Position': [ 123.0, ], 'Accuracy': { 'Horizontal': 123.0 }, 'PositionProperties': { 'string': 'string' } }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **Entries** *(list) --* Contains details about each device's last known position. * *(dict) --* Contains the tracker resource details. * **DeviceId** *(string) --* The ID of the device for this position. * **SampleTime** *(datetime) --* The timestamp at which the device position was determined. Uses ISO 8601 format: "YYYY-MM- DDThh:mm:ss.sssZ". * **Position** *(list) --* The last known device position. Empty if no positions currently stored. * *(float) --* * **Accuracy** *(dict) --* The accuracy of the device position. * **Horizontal** *(float) --* Estimated maximum distance, in meters, between the measured position and the true position of a device, along the Earth's surface. * **PositionProperties** *(dict) --* The properties associated with the position. * *(string) --* * *(string) --* * **NextToken** *(string) --* A pagination token indicating there are additional pages available. You can use the token in a following request to fetch the next set of results. **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / list_route_calculators list_route_calculators ********************** LocationService.Client.list_route_calculators(**kwargs) Lists route calculator resources in your Amazon Web Services account. See also: AWS API Documentation **Request Syntax** response = client.list_route_calculators( MaxResults=123, NextToken='string' ) Parameters: * **MaxResults** (*integer*) -- An optional maximum number of results returned in a single call. Default Value: "100" * **NextToken** (*string*) -- The pagination token specifying which page of results to return in the response. If no token is provided, the default page is the first page. Default Value: "null" Return type: dict Returns: **Response Syntax** { 'Entries': [ { 'CalculatorName': 'string', 'Description': 'string', 'DataSource': 'string', 'PricingPlan': 'RequestBasedUsage'|'MobileAssetTracking'|'MobileAssetManagement', 'CreateTime': datetime(2015, 1, 1), 'UpdateTime': datetime(2015, 1, 1) }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **Entries** *(list) --* Lists the route calculator resources that exist in your Amazon Web Services account * *(dict) --* A route calculator resource listed in your Amazon Web Services account. * **CalculatorName** *(string) --* The name of the route calculator resource. * **Description** *(string) --* The optional description of the route calculator resource. * **DataSource** *(string) --* The data provider of traffic and road network data. Indicates one of the available providers: * "Esri" * "Grab" * "Here" For more information about data providers, see Amazon Location Service data providers. * **PricingPlan** *(string) --* Always returns "RequestBasedUsage". * **CreateTime** *(datetime) --* The timestamp when the route calculator resource was created in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ". * For example, "2020–07-2T12:15:20.000Z+01:00" * **UpdateTime** *(datetime) --* The timestamp when the route calculator resource was last updated in ISO 8601 format: "YYYY-MM- DDThh:mm:ss.sssZ". * For example, "2020–07-2T12:15:20.000Z+01:00" * **NextToken** *(string) --* A pagination token indicating there are additional pages available. You can use the token in a subsequent request to fetch the next set of results. **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / list_geofences list_geofences ************** LocationService.Client.list_geofences(**kwargs) Lists geofences stored in a given geofence collection. See also: AWS API Documentation **Request Syntax** response = client.list_geofences( CollectionName='string', NextToken='string', MaxResults=123 ) Parameters: * **CollectionName** (*string*) -- **[REQUIRED]** The name of the geofence collection storing the list of geofences. * **NextToken** (*string*) -- The pagination token specifying which page of results to return in the response. If no token is provided, the default page is the first page. Default value: "null" * **MaxResults** (*integer*) -- An optional limit for the number of geofences returned in a single call. Default value: "100" Return type: dict Returns: **Response Syntax** { 'Entries': [ { 'GeofenceId': 'string', 'Geometry': { 'Polygon': [ [ [ 123.0, ], ], ], 'Circle': { 'Center': [ 123.0, ], 'Radius': 123.0 }, 'Geobuf': b'bytes', 'MultiPolygon': [ [ [ [ 123.0, ], ], ], ] }, 'Status': 'string', 'CreateTime': datetime(2015, 1, 1), 'UpdateTime': datetime(2015, 1, 1), 'GeofenceProperties': { 'string': 'string' } }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **Entries** *(list) --* Contains a list of geofences stored in the geofence collection. * *(dict) --* Contains a list of geofences stored in a given geofence collection. Note: The returned geometry will always match the geometry format used when the geofence was created. * **GeofenceId** *(string) --* The geofence identifier. * **Geometry** *(dict) --* Contains the geofence geometry details describing the position of the geofence. Can be a circle, a polygon, or a multipolygon. * **Polygon** *(list) --* A "Polygon" is a list of up to 250 linear rings which represent the shape of a geofence. This list *must* include 1 exterior ring (representing the outer perimeter of the geofence), and can optionally include up to 249 interior rings (representing polygonal spaces within the perimeter, which are excluded from the geofence area). A linear ring is an array of 4 or more vertices, where the first and last vertex are the same (to form a closed boundary). Each vertex is a 2-dimensional point represented as an array of doubles of length 2: "[longitude, latitude]". Each linear ring is represented as an array of arrays of doubles ( "[[longitude, latitude], [longitude, latitude], ...]"). The vertices for the exterior ring must be listed in *counter-clockwise* sequence. Vertices for all interior rings must be listed in *clockwise* sequence. The list of linear rings that describe the entire "Polygon" is represented as an array of arrays of arrays of doubles ( "[[[longitude, latitude], [longitude, latitude], ...], [[longitude, latitude], [longitude, latitude], ...], ...]"). The exterior ring must be listed first, before any interior rings. Note: The following additional requirements and limitations apply to geometries defined using the "Polygon" parameter: * The entire "Polygon" must consist of no more than 1,000 vertices, including all vertices from the exterior ring and all interior rings. * Rings must not touch or cross each other. * All interior rings must be fully contained within the exterior ring. * Interior rings must not contain other interior rings. * No ring is permitted to intersect itself. * *(list) --* * *(list) --* * *(float) --* * **Circle** *(dict) --* A circle on the earth, as defined by a center point and a radius. * **Center** *(list) --* A single point geometry, specifying the center of the circle, using WGS 84 coordinates, in the form "[longitude, latitude]". * *(float) --* * **Radius** *(float) --* The radius of the circle in meters. Must be greater than zero and no larger than 100,000 (100 kilometers). * **Geobuf** *(bytes) --* Geobuf is a compact binary encoding for geographic data that provides lossless compression of GeoJSON polygons. The Geobuf must be Base64-encoded. This parameter can contain a Geobuf-encoded GeoJSON geometry object of type "Polygon" *OR* "MultiPolygon". For more information and specific configuration requirements for these object types, see Polygon and MultiPolygon. Note: The following limitations apply specifically to geometries defined using the "Geobuf" parameter, and supercede the corresponding limitations of the "Polygon" and "MultiPolygon" parameters: * A "Polygon" in "Geobuf" format can have up to 25,000 rings and up to 100,000 total vertices, including all vertices from all component rings. * A "MultiPolygon" in "Geobuf" format can contain up to 10,000 "Polygons" and up to 100,000 total vertices, including all vertices from all component "Polygons". * **MultiPolygon** *(list) --* A "MultiPolygon" is a list of up to 250 "Polygon" elements which represent the shape of a geofence. The "Polygon" components of a "MultiPolygon" geometry can define separate geographical areas that are considered part of the same geofence, perimeters of larger exterior areas with smaller interior spaces that are excluded from the geofence, or some combination of these use cases to form complex geofence boundaries. For more information and specific configuration requirements for the "Polygon" components that form a "MultiPolygon", see Polygon. Note: The following additional requirements and limitations apply to geometries defined using the "MultiPolygon" parameter: * The entire "MultiPolygon" must consist of no more than 1,000 vertices, including all vertices from all component "Polygons". * Each edge of a component "Polygon" must intersect no more than 5 edges from other "Polygons". Parallel edges that are shared but do not cross are not counted toward this limit. * The total number of intersecting edges of component "Polygons" must be no more than 100,000. Parallel edges that are shared but do not cross are not counted toward this limit. * *(list) --* * *(list) --* * *(list) --* * *(float) --* * **Status** *(string) --* Identifies the state of the geofence. A geofence will hold one of the following states: * "ACTIVE" — The geofence has been indexed by the system. * "PENDING" — The geofence is being processed by the system. * "FAILED" — The geofence failed to be indexed by the system. * "DELETED" — The geofence has been deleted from the system index. * "DELETING" — The geofence is being deleted from the system index. * **CreateTime** *(datetime) --* The timestamp for when the geofence was stored in a geofence collection in ISO 8601 format: "YYYY-MM- DDThh:mm:ss.sssZ" * **UpdateTime** *(datetime) --* The timestamp for when the geofence was last updated in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ" * **GeofenceProperties** *(dict) --* User defined properties of the geofence. A property is a key-value pair stored with the geofence and added to any geofence event triggered with that geofence. Format: ""key" : "value"" * *(string) --* * *(string) --* * **NextToken** *(string) --* A pagination token indicating there are additional pages available. You can use the token in a following request to fetch the next set of results. **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / get_map_tile get_map_tile ************ LocationService.Client.get_map_tile(**kwargs) 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). See also: AWS API Documentation **Request Syntax** response = client.get_map_tile( MapName='string', Z='string', X='string', Y='string', Key='string' ) Parameters: * **MapName** (*string*) -- **[REQUIRED]** The map resource to retrieve the map tiles from. * **Z** (*string*) -- **[REQUIRED]** The zoom value for the map tile. * **X** (*string*) -- **[REQUIRED]** The X axis value for the map tile. * **Y** (*string*) -- **[REQUIRED]** The Y axis value for the map tile. * **Key** (*string*) -- The optional API key to authorize the request. Return type: dict Returns: **Response Syntax** { 'Blob': StreamingBody(), 'ContentType': 'string', 'CacheControl': 'string' } **Response Structure** * *(dict) --* * **Blob** ("StreamingBody") -- Contains Mapbox Vector Tile (MVT) data. * **ContentType** *(string) --* The map tile's content type. For example, "application/vnd .mapbox-vector-tile". * **CacheControl** *(string) --* The HTTP Cache-Control directive for the value. **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / delete_map delete_map ********** LocationService.Client.delete_map(**kwargs) Deletes a map resource from your Amazon Web Services account. Note: This operation deletes the resource permanently. If the map is being used in an application, the map may not render. See also: AWS API Documentation **Request Syntax** response = client.delete_map( MapName='string' ) Parameters: **MapName** (*string*) -- **[REQUIRED]** The name of the map resource to be deleted. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / list_keys list_keys ********* LocationService.Client.list_keys(**kwargs) Lists API key resources in your Amazon Web Services account. See also: AWS API Documentation **Request Syntax** response = client.list_keys( MaxResults=123, NextToken='string', Filter={ 'KeyStatus': 'Active'|'Expired' } ) Parameters: * **MaxResults** (*integer*) -- An optional limit for the number of resources returned in a single call. Default value: "100" * **NextToken** (*string*) -- The pagination token specifying which page of results to return in the response. If no token is provided, the default page is the first page. Default value: "null" * **Filter** (*dict*) -- Optionally filter the list to only "Active" or "Expired" API keys. * **KeyStatus** *(string) --* Filter on "Active" or "Expired" API keys. Return type: dict Returns: **Response Syntax** { 'Entries': [ { 'KeyName': 'string', 'ExpireTime': datetime(2015, 1, 1), 'Description': 'string', 'Restrictions': { 'AllowActions': [ 'string', ], 'AllowResources': [ 'string', ], 'AllowReferers': [ 'string', ] }, 'CreateTime': datetime(2015, 1, 1), 'UpdateTime': datetime(2015, 1, 1) }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **Entries** *(list) --* Contains API key resources in your Amazon Web Services account. Details include API key name, allowed referers and timestamp for when the API key will expire. * *(dict) --* An API key resource listed in your Amazon Web Services account. * **KeyName** *(string) --* The name of the API key resource. * **ExpireTime** *(datetime) --* The timestamp for when the API key resource will expire, in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ". * **Description** *(string) --* The optional description for the API key resource. * **Restrictions** *(dict) --* API Restrictions on the allowed actions, resources, and referers for an API key resource. * **AllowActions** *(list) --* A list of allowed actions that an API key resource grants permissions to perform. You must have at least one action for each type of resource. For example, if you have a place resource, you must include at least one place action. The following are valid values for the actions. * **Map actions** * "geo:GetMap*" - Allows all actions needed for map rendering. * "geo-maps:GetTile" - Allows retrieving map tiles. * "geo-maps:GetStaticMap" - Allows retrieving static map images. * "geo-maps:*" - Allows all actions related to map functionalities. * **Place actions** * "geo:SearchPlaceIndexForText" - Allows geocoding. * "geo:SearchPlaceIndexForPosition" - Allows reverse geocoding. * "geo:SearchPlaceIndexForSuggestions" - Allows generating suggestions from text. * "GetPlace" - Allows finding a place by place ID. * "geo-places:Geocode" - Allows geocoding using place information. * "geo-places:ReverseGeocode" - Allows reverse geocoding from location coordinates. * "geo-places:SearchNearby" - Allows searching for places near a location. * "geo-places:SearchText" - Allows searching for places based on text input. * "geo-places:Autocomplete" - Allows auto-completion of place names based on text input. * "geo-places:Suggest" - Allows generating suggestions for places based on partial input. * "geo-places:GetPlace" - Allows finding a place by its ID. * "geo-places:*" - Allows all actions related to place services. * **Route actions** * "geo:CalculateRoute" - Allows point to point routing. * "geo:CalculateRouteMatrix" - Allows calculating a matrix of routes. * "geo-routes:CalculateRoutes" - Allows calculating multiple routes between points. * "geo-routes:CalculateRouteMatrix" - Allows calculating a matrix of routes between points. * "geo-routes:CalculateIsolines" - Allows calculating isolines for a given area. * "geo-routes:OptimizeWaypoints" - Allows optimizing the order of waypoints in a route. * "geo-routes:SnapToRoads" - Allows snapping a route to the nearest roads. * "geo-routes:*" - Allows all actions related to routing functionalities. Note: You must use these strings exactly. For example, to provide access to map rendering, the only valid action is "geo:GetMap*" as an input to the list. "["geo:GetMap*"]" is valid but "["geo:GetMapTile"]" is not. Similarly, you cannot use "["geo:SearchPlaceIndexFor*"]" - you must list each of the Place actions separately. * *(string) --* * **AllowResources** *(list) --* A list of allowed resource ARNs that a API key bearer can perform actions on. * The ARN must be the correct ARN for a map, place, or route ARN. You may include wildcards in the resource-id to match multiple resources of the same type. * The resources must be in the same "partition", "region", and "account-id" as the key that is being created. * Other than wildcards, you must include the full ARN, including the "arn", "partition", "service", "region", "account-id" and "resource-id" delimited by colons (:). * No spaces allowed, even with wildcards. For example, "arn:aws:geo:region:account-id:map/ExampleMap*". For more information about ARN format, see Amazon Resource Names (ARNs). * *(string) --* * **AllowReferers** *(list) --* An optional list of allowed HTTP referers for which requests must originate from. Requests using this API key from other domains will not be allowed. Requirements: * Contain only alphanumeric characters (A–Z, a–z, 0–9) or any symbols in this list "$\-._+!*`(),;/?:@=&" * May contain a percent (%) if followed by 2 hexadecimal digits (A-F, a-f, 0-9); this is used for URL encoding purposes. * May contain wildcard characters question mark (?) and asterisk (*). Question mark (?) will replace any single character (including hexadecimal digits). Asterisk (*) will replace any multiple characters (including multiple hexadecimal digits). * No spaces allowed. For example, "https://example.com". * *(string) --* * **CreateTime** *(datetime) --* The timestamp of when the API key was created, in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ". * **UpdateTime** *(datetime) --* The timestamp of when the API key was last updated, in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ". * **NextToken** *(string) --* A pagination token indicating there are additional pages available. You can use the token in a following request to fetch the next set of results. **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / update_key update_key ********** LocationService.Client.update_key(**kwargs) Updates the specified properties of a given API key resource. See also: AWS API Documentation **Request Syntax** response = client.update_key( KeyName='string', Description='string', ExpireTime=datetime(2015, 1, 1), NoExpiry=True|False, ForceUpdate=True|False, Restrictions={ 'AllowActions': [ 'string', ], 'AllowResources': [ 'string', ], 'AllowReferers': [ 'string', ] } ) Parameters: * **KeyName** (*string*) -- **[REQUIRED]** The name of the API key resource to update. * **Description** (*string*) -- Updates the description for the API key resource. * **ExpireTime** (*datetime*) -- Updates the timestamp for when the API key resource will expire in ISO 8601 format: "YYYY-MM- DDThh:mm:ss.sssZ". * **NoExpiry** (*boolean*) -- Whether the API key should expire. Set to "true" to set the API key to have no expiration time. * **ForceUpdate** (*boolean*) -- The boolean flag to be included for updating "ExpireTime" or "Restrictions" details. Must be set to "true" to update an API key resource that has been used in the past 7 days. "False" if force update is not preferred Default value: "False" * **Restrictions** (*dict*) -- Updates the API key restrictions for the API key resource. * **AllowActions** *(list) --* **[REQUIRED]** A list of allowed actions that an API key resource grants permissions to perform. You must have at least one action for each type of resource. For example, if you have a place resource, you must include at least one place action. The following are valid values for the actions. * **Map actions** * "geo:GetMap*" - Allows all actions needed for map rendering. * "geo-maps:GetTile" - Allows retrieving map tiles. * "geo-maps:GetStaticMap" - Allows retrieving static map images. * "geo-maps:*" - Allows all actions related to map functionalities. * **Place actions** * "geo:SearchPlaceIndexForText" - Allows geocoding. * "geo:SearchPlaceIndexForPosition" - Allows reverse geocoding. * "geo:SearchPlaceIndexForSuggestions" - Allows generating suggestions from text. * "GetPlace" - Allows finding a place by place ID. * "geo-places:Geocode" - Allows geocoding using place information. * "geo-places:ReverseGeocode" - Allows reverse geocoding from location coordinates. * "geo-places:SearchNearby" - Allows searching for places near a location. * "geo-places:SearchText" - Allows searching for places based on text input. * "geo-places:Autocomplete" - Allows auto-completion of place names based on text input. * "geo-places:Suggest" - Allows generating suggestions for places based on partial input. * "geo-places:GetPlace" - Allows finding a place by its ID. * "geo-places:*" - Allows all actions related to place services. * **Route actions** * "geo:CalculateRoute" - Allows point to point routing. * "geo:CalculateRouteMatrix" - Allows calculating a matrix of routes. * "geo-routes:CalculateRoutes" - Allows calculating multiple routes between points. * "geo-routes:CalculateRouteMatrix" - Allows calculating a matrix of routes between points. * "geo-routes:CalculateIsolines" - Allows calculating isolines for a given area. * "geo-routes:OptimizeWaypoints" - Allows optimizing the order of waypoints in a route. * "geo-routes:SnapToRoads" - Allows snapping a route to the nearest roads. * "geo-routes:*" - Allows all actions related to routing functionalities. Note: You must use these strings exactly. For example, to provide access to map rendering, the only valid action is "geo:GetMap*" as an input to the list. "["geo:GetMap*"]" is valid but "["geo:GetMapTile"]" is not. Similarly, you cannot use "["geo:SearchPlaceIndexFor*"]" - you must list each of the Place actions separately. * *(string) --* * **AllowResources** *(list) --* **[REQUIRED]** A list of allowed resource ARNs that a API key bearer can perform actions on. * The ARN must be the correct ARN for a map, place, or route ARN. You may include wildcards in the resource-id to match multiple resources of the same type. * The resources must be in the same "partition", "region", and "account-id" as the key that is being created. * Other than wildcards, you must include the full ARN, including the "arn", "partition", "service", "region", "account-id" and "resource-id" delimited by colons (:). * No spaces allowed, even with wildcards. For example, "arn:aws:geo:region:account-id:map/ExampleMap*". For more information about ARN format, see Amazon Resource Names (ARNs). * *(string) --* * **AllowReferers** *(list) --* An optional list of allowed HTTP referers for which requests must originate from. Requests using this API key from other domains will not be allowed. Requirements: * Contain only alphanumeric characters (A–Z, a–z, 0–9) or any symbols in this list "$\-._+!*`(),;/?:@=&" * May contain a percent (%) if followed by 2 hexadecimal digits (A-F, a-f, 0-9); this is used for URL encoding purposes. * May contain wildcard characters question mark (?) and asterisk (*). Question mark (?) will replace any single character (including hexadecimal digits). Asterisk (*) will replace any multiple characters (including multiple hexadecimal digits). * No spaces allowed. For example, "https://example.com". * *(string) --* Return type: dict Returns: **Response Syntax** { 'KeyArn': 'string', 'KeyName': 'string', 'UpdateTime': datetime(2015, 1, 1) } **Response Structure** * *(dict) --* * **KeyArn** *(string) --* The Amazon Resource Name (ARN) for the API key resource. Used when you need to specify a resource across all Amazon Web Services. * Format example: "arn:aws:geo:region:account- id:key/ExampleKey" * **KeyName** *(string) --* The name of the API key resource. * **UpdateTime** *(datetime) --* The timestamp for when the API key resource was last updated in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ". **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / get_place get_place ********* LocationService.Client.get_place(**kwargs) Finds a place by its unique ID. A "PlaceId" is returned by other search operations. Note: 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 Note: If your Place index resource is configured with Grab as your geolocation provider and Storage as Intended use, the GetPlace operation is unavailable. For more information, see AWS service terms. See also: AWS API Documentation **Request Syntax** response = client.get_place( IndexName='string', PlaceId='string', Language='string', Key='string' ) Parameters: * **IndexName** (*string*) -- **[REQUIRED]** The name of the place index resource that you want to use for the search. * **PlaceId** (*string*) -- **[REQUIRED]** The identifier of the place to find. * **Language** (*string*) -- The preferred language used to return results. The value must be a valid BCP 47 language tag, for example, "en" for English. This setting affects the languages used in the results, but not the results themselves. If no language is specified, or not supported for a particular result, the partner automatically chooses a language for the result. For an example, we'll use the Greek language. You search for a location around Athens, Greece, with the "language" parameter set to "en". The "city" in the results will most likely be returned as "Athens". If you set the "language" parameter to "el", for Greek, then the "city" in the results will more likely be returned as "Αθήνα". If the data provider does not have a value for Greek, the result will be in a language that the provider does support. * **Key** (*string*) -- The optional API key to authorize the request. Return type: dict Returns: **Response Syntax** { 'Place': { 'Label': 'string', 'Geometry': { 'Point': [ 123.0, ] }, 'AddressNumber': 'string', 'Street': 'string', 'Neighborhood': 'string', 'Municipality': 'string', 'SubRegion': 'string', 'Region': 'string', 'Country': 'string', 'PostalCode': 'string', 'Interpolated': True|False, 'TimeZone': { 'Name': 'string', 'Offset': 123 }, 'UnitType': 'string', 'UnitNumber': 'string', 'Categories': [ 'string', ], 'SupplementalCategories': [ 'string', ], 'SubMunicipality': 'string' } } **Response Structure** * *(dict) --* * **Place** *(dict) --* Details about the result, such as its address and position. * **Label** *(string) --* The full name and address of the point of interest such as a city, region, or country. For example, "123 Any Street, Any Town, USA". * **Geometry** *(dict) --* Places uses a point geometry to specify a location or a Place. * **Point** *(list) --* A single point geometry specifies a location for a Place using WGS 84 coordinates: * *x* — Specifies the x coordinate or longitude. * *y* — Specifies the y coordinate or latitude. * *(float) --* * **AddressNumber** *(string) --* The numerical portion of an address, such as a building number. * **Street** *(string) --* The name for a street or a road to identify a location. For example, "Main Street". * **Neighborhood** *(string) --* The name of a community district. For example, "Downtown". * **Municipality** *(string) --* A name for a local area, such as a city or town name. For example, "Toronto". * **SubRegion** *(string) --* A county, or an area that's part of a larger region. For example, "Metro Vancouver". * **Region** *(string) --* A name for an area or geographical division, such as a province or state name. For example, "British Columbia". * **Country** *(string) --* A country/region specified using ISO 3166 3-digit country/region code. For example, "CAN". * **PostalCode** *(string) --* A group of numbers and letters in a country-specific format, which accompanies the address for the purpose of identifying a location. * **Interpolated** *(boolean) --* "True" if the result is interpolated from other known places. "False" if the Place is a known place. Not returned when the partner does not provide the information. For example, returns "False" for an address location that is found in the partner data, but returns "True" if an address does not exist in the partner data and its location is calculated by interpolating between other known addresses. * **TimeZone** *(dict) --* The time zone in which the "Place" is located. Returned only when using HERE or Grab as the selected partner. * **Name** *(string) --* The name of the time zone, following the IANA time zone standard. For example, "America/Los_Angeles". * **Offset** *(integer) --* The time zone's offset, in seconds, from UTC. * **UnitType** *(string) --* For addresses with a "UnitNumber", the type of unit. For example, "Apartment". Note: Returned only for a place index that uses Esri as a data provider. * **UnitNumber** *(string) --* For addresses with multiple units, the unit identifier. Can include numbers and letters, for example "3B" or "Unit 123". Note: Returned only for a place index that uses Esri or Grab as a data provider. Is not returned for "SearchPlaceIndexForPosition". * **Categories** *(list) --* The Amazon Location categories that describe this Place. For more information about using categories, including a list of Amazon Location categories, see Categories and filtering, in the *Amazon Location Service developer guide*. * *(string) --* * **SupplementalCategories** *(list) --* Categories from the data provider that describe the Place that are not mapped to any Amazon Location categories. * *(string) --* * **SubMunicipality** *(string) --* An area that's part of a larger municipality. For example, "Blissville" is a submunicipality in the Queen County in New York. Note: This property supported by Esri and OpenData. The Esri property is "district", and the OpenData property is "borough". **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / update_place_index update_place_index ****************** LocationService.Client.update_place_index(**kwargs) Updates the specified properties of a given place index resource. See also: AWS API Documentation **Request Syntax** response = client.update_place_index( IndexName='string', PricingPlan='RequestBasedUsage'|'MobileAssetTracking'|'MobileAssetManagement', Description='string', DataSourceConfiguration={ 'IntendedUse': 'SingleUse'|'Storage' } ) Parameters: * **IndexName** (*string*) -- **[REQUIRED]** The name of the place index resource to update. * **PricingPlan** (*string*) -- No longer used. If included, the only allowed value is "RequestBasedUsage". * **Description** (*string*) -- Updates the description for the place index resource. * **DataSourceConfiguration** (*dict*) -- Updates the data storage option for the place index resource. * **IntendedUse** *(string) --* Specifies how the results of an operation will be stored by the caller. Valid values include: * "SingleUse" specifies that the results won't be stored. * "Storage" specifies that the result can be cached or stored in a database. Default value: "SingleUse" Return type: dict Returns: **Response Syntax** { 'IndexName': 'string', 'IndexArn': 'string', 'UpdateTime': datetime(2015, 1, 1) } **Response Structure** * *(dict) --* * **IndexName** *(string) --* The name of the updated place index resource. * **IndexArn** *(string) --* The Amazon Resource Name (ARN) of the upated place index resource. Used to specify a resource across Amazon Web Services. * Format example: "arn:aws:geo:region:account-id:place- index/ExamplePlaceIndex" * **UpdateTime** *(datetime) --* The timestamp for when the place index resource was last updated in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ". **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / update_tracker update_tracker ************** LocationService.Client.update_tracker(**kwargs) Updates the specified properties of a given tracker resource. See also: AWS API Documentation **Request Syntax** response = client.update_tracker( TrackerName='string', PricingPlan='RequestBasedUsage'|'MobileAssetTracking'|'MobileAssetManagement', PricingPlanDataSource='string', Description='string', PositionFiltering='TimeBased'|'DistanceBased'|'AccuracyBased', EventBridgeEnabled=True|False, KmsKeyEnableGeospatialQueries=True|False ) Parameters: * **TrackerName** (*string*) -- **[REQUIRED]** The name of the tracker resource to update. * **PricingPlan** (*string*) -- No longer used. If included, the only allowed value is "RequestBasedUsage". * **PricingPlanDataSource** (*string*) -- This parameter is no longer used. * **Description** (*string*) -- Updates the description for the tracker resource. * **PositionFiltering** (*string*) -- Updates the position filtering for the tracker resource. Valid values: * "TimeBased" - Location updates are evaluated against linked geofence collections, but not every location update is stored. If your update frequency is more often than 30 seconds, only one update per 30 seconds is stored for each unique device ID. * "DistanceBased" - If the device has moved less than 30 m (98.4 ft), location updates are ignored. Location updates within this distance are neither evaluated against linked geofence collections, nor stored. This helps control costs by reducing the number of geofence evaluations and historical device positions to paginate through. Distance- based filtering can also reduce the effects of GPS noise when displaying device trajectories on a map. * "AccuracyBased" - If the device has moved less than the measured accuracy, location updates are ignored. For example, if two consecutive updates from a device have a horizontal accuracy of 5 m and 10 m, the second update is ignored if the device has moved less than 15 m. Ignored location updates are neither evaluated against linked geofence collections, nor stored. This helps educe the effects of GPS noise when displaying device trajectories on a map, and can help control costs by reducing the number of geofence evaluations. * **EventBridgeEnabled** (*boolean*) -- Whether to enable position "UPDATE" events from this tracker to be sent to EventBridge. Note: You do not need enable this feature to get "ENTER" and "EXIT" events for geofences with this tracker. Those events are always sent to EventBridge. * **KmsKeyEnableGeospatialQueries** (*boolean*) -- Enables "GeospatialQueries" for a tracker that uses a Amazon Web Services KMS customer managed key. This parameter is only used if you are using a KMS customer managed key. Return type: dict Returns: **Response Syntax** { 'TrackerName': 'string', 'TrackerArn': 'string', 'UpdateTime': datetime(2015, 1, 1) } **Response Structure** * *(dict) --* * **TrackerName** *(string) --* The name of the updated tracker resource. * **TrackerArn** *(string) --* The Amazon Resource Name (ARN) of the updated tracker resource. Used to specify a resource across AWS. * Format example: "arn:aws:geo:region:account- id:tracker/ExampleTracker" * **UpdateTime** *(datetime) --* The timestamp for when the tracker resource was last updated in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ". **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / close close ***** LocationService.Client.close() Closes underlying endpoint connections. LocationService / Client / search_place_index_for_text search_place_index_for_text *************************** LocationService.Client.search_place_index_for_text(**kwargs) 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. Note: 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. See also: AWS API Documentation **Request Syntax** response = client.search_place_index_for_text( IndexName='string', Text='string', BiasPosition=[ 123.0, ], FilterBBox=[ 123.0, ], FilterCountries=[ 'string', ], MaxResults=123, Language='string', FilterCategories=[ 'string', ], Key='string' ) Parameters: * **IndexName** (*string*) -- **[REQUIRED]** The name of the place index resource you want to use for the search. * **Text** (*string*) -- **[REQUIRED]** The address, name, city, or region to be used in the search in free-form text format. For example, "123 Any Street". * **BiasPosition** (*list*) -- An optional parameter that indicates a preference for places that are closer to a specified position. If provided, this parameter must contain a pair of numbers. The first number represents the X coordinate, or longitude; the second number represents the Y coordinate, or latitude. For example, "[-123.1174, 49.2847]" represents the position with longitude "-123.1174" and latitude "49.2847". Note: "BiasPosition" and "FilterBBox" are mutually exclusive. Specifying both options results in an error. * *(float) --* * **FilterBBox** (*list*) -- An optional parameter that limits the search results by returning only places that are within the provided bounding box. If provided, this parameter must contain a total of four consecutive numbers in two pairs. The first pair of numbers represents the X and Y coordinates (longitude and latitude, respectively) of the southwest corner of the bounding box; the second pair of numbers represents the X and Y coordinates (longitude and latitude, respectively) of the northeast corner of the bounding box. For example, "[-12.7935, -37.4835, -12.0684, -36.9542]" represents a bounding box where the southwest corner has longitude "-12.7935" and latitude "-37.4835", and the northeast corner has longitude "-12.0684" and latitude "-36.9542". Note: "FilterBBox" and "BiasPosition" are mutually exclusive. Specifying both options results in an error. * *(float) --* * **FilterCountries** (*list*) -- An optional parameter that limits the search results by returning only places that are in a specified list of countries. * Valid values include ISO 3166 3-digit country codes. For example, Australia uses three upper-case characters: "AUS". * *(string) --* * **MaxResults** (*integer*) -- An optional parameter. The maximum number of results returned per request. The default: "50" * **Language** (*string*) -- The preferred language used to return results. The value must be a valid BCP 47 language tag, for example, "en" for English. This setting affects the languages used in the results, but not the results themselves. If no language is specified, or not supported for a particular result, the partner automatically chooses a language for the result. For an example, we'll use the Greek language. You search for "Athens, Greece", with the "language" parameter set to "en". The result found will most likely be returned as "Athens". If you set the "language" parameter to "el", for Greek, then the result found will more likely be returned as "Αθήνα". If the data provider does not have a value for Greek, the result will be in a language that the provider does support. * **FilterCategories** (*list*) -- A list of one or more Amazon Location categories to filter the returned places. If you include more than one category, the results will include results that match *any* of the categories listed. For more information about using categories, including a list of Amazon Location categories, see Categories and filtering, in the *Amazon Location Service developer guide*. * *(string) --* * **Key** (*string*) -- The optional API key to authorize the request. Return type: dict Returns: **Response Syntax** { 'Summary': { 'Text': 'string', 'BiasPosition': [ 123.0, ], 'FilterBBox': [ 123.0, ], 'FilterCountries': [ 'string', ], 'MaxResults': 123, 'ResultBBox': [ 123.0, ], 'DataSource': 'string', 'Language': 'string', 'FilterCategories': [ 'string', ] }, 'Results': [ { 'Place': { 'Label': 'string', 'Geometry': { 'Point': [ 123.0, ] }, 'AddressNumber': 'string', 'Street': 'string', 'Neighborhood': 'string', 'Municipality': 'string', 'SubRegion': 'string', 'Region': 'string', 'Country': 'string', 'PostalCode': 'string', 'Interpolated': True|False, 'TimeZone': { 'Name': 'string', 'Offset': 123 }, 'UnitType': 'string', 'UnitNumber': 'string', 'Categories': [ 'string', ], 'SupplementalCategories': [ 'string', ], 'SubMunicipality': 'string' }, 'Distance': 123.0, 'Relevance': 123.0, 'PlaceId': 'string' }, ] } **Response Structure** * *(dict) --* * **Summary** *(dict) --* Contains a summary of the request. Echoes the input values for "BiasPosition", "FilterBBox", "FilterCountries", "Language", "MaxResults", and "Text". Also includes the "DataSource" of the place index and the bounding box, "ResultBBox", which surrounds the search results. * **Text** *(string) --* The search text specified in the request. * **BiasPosition** *(list) --* Contains the coordinates for the optional bias position specified in the request. This parameter contains a pair of numbers. The first number represents the X coordinate, or longitude; the second number represents the Y coordinate, or latitude. For example, "[-123.1174, 49.2847]" represents the position with longitude "-123.1174" and latitude "49.2847". * *(float) --* * **FilterBBox** *(list) --* Contains the coordinates for the optional bounding box specified in the request. * *(float) --* * **FilterCountries** *(list) --* Contains the optional country filter specified in the request. * *(string) --* * **MaxResults** *(integer) --* Contains the optional result count limit specified in the request. * **ResultBBox** *(list) --* The bounding box that fully contains all search results. Note: If you specified the optional "FilterBBox" parameter in the request, "ResultBBox" is contained within "FilterBBox". * *(float) --* * **DataSource** *(string) --* The geospatial data provider attached to the place index resource specified in the request. Values can be one of the following: * Esri * Grab * Here For more information about data providers, see Amazon Location Service data providers. * **Language** *(string) --* The preferred language used to return results. Matches the language in the request. The value is a valid BCP 47 language tag, for example, "en" for English. * **FilterCategories** *(list) --* The optional category filter specified in the request. * *(string) --* * **Results** *(list) --* A list of Places matching the input text. Each result contains additional information about the specific point of interest. Not all response properties are included with all responses. Some properties may only be returned by specific data partners. * *(dict) --* Contains a search result from a text search query that is run on a place index resource. * **Place** *(dict) --* Details about the search result, such as its address and position. * **Label** *(string) --* The full name and address of the point of interest such as a city, region, or country. For example, "123 Any Street, Any Town, USA". * **Geometry** *(dict) --* Places uses a point geometry to specify a location or a Place. * **Point** *(list) --* A single point geometry specifies a location for a Place using WGS 84 coordinates: * *x* — Specifies the x coordinate or longitude. * *y* — Specifies the y coordinate or latitude. * *(float) --* * **AddressNumber** *(string) --* The numerical portion of an address, such as a building number. * **Street** *(string) --* The name for a street or a road to identify a location. For example, "Main Street". * **Neighborhood** *(string) --* The name of a community district. For example, "Downtown". * **Municipality** *(string) --* A name for a local area, such as a city or town name. For example, "Toronto". * **SubRegion** *(string) --* A county, or an area that's part of a larger region. For example, "Metro Vancouver". * **Region** *(string) --* A name for an area or geographical division, such as a province or state name. For example, "British Columbia". * **Country** *(string) --* A country/region specified using ISO 3166 3-digit country/region code. For example, "CAN". * **PostalCode** *(string) --* A group of numbers and letters in a country-specific format, which accompanies the address for the purpose of identifying a location. * **Interpolated** *(boolean) --* "True" if the result is interpolated from other known places. "False" if the Place is a known place. Not returned when the partner does not provide the information. For example, returns "False" for an address location that is found in the partner data, but returns "True" if an address does not exist in the partner data and its location is calculated by interpolating between other known addresses. * **TimeZone** *(dict) --* The time zone in which the "Place" is located. Returned only when using HERE or Grab as the selected partner. * **Name** *(string) --* The name of the time zone, following the IANA time zone standard. For example, "America/Los_Angeles". * **Offset** *(integer) --* The time zone's offset, in seconds, from UTC. * **UnitType** *(string) --* For addresses with a "UnitNumber", the type of unit. For example, "Apartment". Note: Returned only for a place index that uses Esri as a data provider. * **UnitNumber** *(string) --* For addresses with multiple units, the unit identifier. Can include numbers and letters, for example "3B" or "Unit 123". Note: Returned only for a place index that uses Esri or Grab as a data provider. Is not returned for "SearchPlaceIndexForPosition". * **Categories** *(list) --* The Amazon Location categories that describe this Place. For more information about using categories, including a list of Amazon Location categories, see Categories and filtering, in the *Amazon Location Service developer guide*. * *(string) --* * **SupplementalCategories** *(list) --* Categories from the data provider that describe the Place that are not mapped to any Amazon Location categories. * *(string) --* * **SubMunicipality** *(string) --* An area that's part of a larger municipality. For example, "Blissville" is a submunicipality in the Queen County in New York. Note: This property supported by Esri and OpenData. The Esri property is "district", and the OpenData property is "borough". * **Distance** *(float) --* The distance in meters of a great-circle arc between the bias position specified and the result. "Distance" will be returned only if a bias position was specified in the query. Note: A great-circle arc is the shortest path on a sphere, in this case the Earth. This returns the shortest distance between two locations. * **Relevance** *(float) --* The relative confidence in the match for a result among the results returned. For example, if more fields for an address match (including house number, street, city, country/region, and postal code), the relevance score is closer to 1. Returned only when the partner selected is Esri or Grab. * **PlaceId** *(string) --* The unique identifier of the place. You can use this with the "GetPlace" operation to find the place again later. Note: For "SearchPlaceIndexForText" operations, the "PlaceId" is returned only by place indexes that use HERE or Grab as a data provider. **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / delete_route_calculator delete_route_calculator *********************** LocationService.Client.delete_route_calculator(**kwargs) Deletes a route calculator resource from your Amazon Web Services account. Note: This operation deletes the resource permanently. See also: AWS API Documentation **Request Syntax** response = client.delete_route_calculator( CalculatorName='string' ) Parameters: **CalculatorName** (*string*) -- **[REQUIRED]** The name of the route calculator resource to be deleted. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / delete_place_index delete_place_index ****************** LocationService.Client.delete_place_index(**kwargs) Deletes a place index resource from your Amazon Web Services account. Note: This operation deletes the resource permanently. See also: AWS API Documentation **Request Syntax** response = client.delete_place_index( IndexName='string' ) Parameters: **IndexName** (*string*) -- **[REQUIRED]** The name of the place index resource to be deleted. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / create_place_index create_place_index ****************** LocationService.Client.create_place_index(**kwargs) 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. Note: 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. See also: AWS API Documentation **Request Syntax** response = client.create_place_index( IndexName='string', DataSource='string', PricingPlan='RequestBasedUsage'|'MobileAssetTracking'|'MobileAssetManagement', Description='string', DataSourceConfiguration={ 'IntendedUse': 'SingleUse'|'Storage' }, Tags={ 'string': 'string' } ) Parameters: * **IndexName** (*string*) -- **[REQUIRED]** The name of the place index resource. Requirements: * Contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), periods (.), and underscores (_). * Must be a unique place index resource name. * No spaces allowed. For example, "ExamplePlaceIndex". * **DataSource** (*string*) -- **[REQUIRED]** Specifies the geospatial data provider for the new place index. Note: This field is case-sensitive. Enter the valid values as shown. For example, entering "HERE" returns an error. Valid values include: * "Esri" – For additional information about Esri's coverage in your region of interest, see Esri details on geocoding coverage. * "Grab" – Grab provides place index functionality for Southeast Asia. For additional information about GrabMaps' coverage, see GrabMaps countries and areas covered. * "Here" – For additional information about HERE Technologies' coverage in your region of interest, see HERE details on goecoding coverage. Warning: If you specify HERE Technologies ( "Here") as the data provider, you may not store results for locations in Japan. For more information, see the Amazon Web Services service terms for Amazon Location Service. For additional information , see Data providers on the *Amazon Location Service developer guide*. * **PricingPlan** (*string*) -- No longer used. If included, the only allowed value is "RequestBasedUsage". * **Description** (*string*) -- The optional description for the place index resource. * **DataSourceConfiguration** (*dict*) -- Specifies the data storage option requesting Places. * **IntendedUse** *(string) --* Specifies how the results of an operation will be stored by the caller. Valid values include: * "SingleUse" specifies that the results won't be stored. * "Storage" specifies that the result can be cached or stored in a database. Default value: "SingleUse" * **Tags** (*dict*) -- Applies one or more tags to the place index resource. A tag is a key-value pair that helps you manage, identify, search, and filter your resources. Format: ""key" : "value"" Restrictions: * Maximum 50 tags per resource. * Each tag key must be unique and must have exactly one associated value. * Maximum key length: 128 Unicode characters in UTF-8. * Maximum value length: 256 Unicode characters in UTF-8. * Can use alphanumeric characters (A–Z, a–z, 0–9), and the following characters: + - = . _ : / @ * Cannot use "aws:" as a prefix for a key. * *(string) --* * *(string) --* Return type: dict Returns: **Response Syntax** { 'IndexName': 'string', 'IndexArn': 'string', 'CreateTime': datetime(2015, 1, 1) } **Response Structure** * *(dict) --* * **IndexName** *(string) --* The name for the place index resource. * **IndexArn** *(string) --* The Amazon Resource Name (ARN) for the place index resource. Used to specify a resource across Amazon Web Services. * Format example: "arn:aws:geo:region:account-id:place- index/ExamplePlaceIndex" * **CreateTime** *(datetime) --* The timestamp for when the place index resource was created in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ". **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ConflictException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ServiceQuotaExceededException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / delete_tracker delete_tracker ************** LocationService.Client.delete_tracker(**kwargs) Deletes a tracker resource from your Amazon Web Services account. Note: 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. See also: AWS API Documentation **Request Syntax** response = client.delete_tracker( TrackerName='string' ) Parameters: **TrackerName** (*string*) -- **[REQUIRED]** The name of the tracker resource to be deleted. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / get_device_position_history get_device_position_history *************************** LocationService.Client.get_device_position_history(**kwargs) Retrieves the device position history from a tracker resource within a specified range of time. Note: Device positions are deleted after 30 days. See also: AWS API Documentation **Request Syntax** response = client.get_device_position_history( TrackerName='string', DeviceId='string', NextToken='string', StartTimeInclusive=datetime(2015, 1, 1), EndTimeExclusive=datetime(2015, 1, 1), MaxResults=123 ) Parameters: * **TrackerName** (*string*) -- **[REQUIRED]** The tracker resource receiving the request for the device position history. * **DeviceId** (*string*) -- **[REQUIRED]** The device whose position history you want to retrieve. * **NextToken** (*string*) -- The pagination token specifying which page of results to return in the response. If no token is provided, the default page is the first page. Default value: "null" * **StartTimeInclusive** (*datetime*) -- Specify the start time for the position history in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ". By default, the value will be 24 hours prior to the time that the request is made. Requirement: * The time specified for "StartTimeInclusive" must be before "EndTimeExclusive". * **EndTimeExclusive** (*datetime*) -- Specify the end time for the position history in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ". By default, the value will be the time that the request is made. Requirement: * The time specified for "EndTimeExclusive" must be after the time for "StartTimeInclusive". * **MaxResults** (*integer*) -- An optional limit for the number of device positions returned in a single call. Default value: "100" Return type: dict Returns: **Response Syntax** { 'DevicePositions': [ { 'DeviceId': 'string', 'SampleTime': datetime(2015, 1, 1), 'ReceivedTime': datetime(2015, 1, 1), 'Position': [ 123.0, ], 'Accuracy': { 'Horizontal': 123.0 }, 'PositionProperties': { 'string': 'string' } }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **DevicePositions** *(list) --* Contains the position history details for the requested device. * *(dict) --* Contains the device position details. * **DeviceId** *(string) --* The device whose position you retrieved. * **SampleTime** *(datetime) --* The timestamp at which the device's position was determined. Uses ISO 8601 format: "YYYY-MM- DDThh:mm:ss.sssZ". * **ReceivedTime** *(datetime) --* The timestamp for when the tracker resource received the device position in ISO 8601 format: "YYYY-MM- DDThh:mm:ss.sssZ". * **Position** *(list) --* The last known device position. * *(float) --* * **Accuracy** *(dict) --* The accuracy of the device position. * **Horizontal** *(float) --* Estimated maximum distance, in meters, between the measured position and the true position of a device, along the Earth's surface. * **PositionProperties** *(dict) --* The properties associated with the position. * *(string) --* * *(string) --* * **NextToken** *(string) --* A pagination token indicating there are additional pages available. You can use the token in a following request to fetch the next set of results. **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / describe_geofence_collection describe_geofence_collection **************************** LocationService.Client.describe_geofence_collection(**kwargs) Retrieves the geofence collection details. See also: AWS API Documentation **Request Syntax** response = client.describe_geofence_collection( CollectionName='string' ) Parameters: **CollectionName** (*string*) -- **[REQUIRED]** The name of the geofence collection. Return type: dict Returns: **Response Syntax** { 'CollectionName': 'string', 'CollectionArn': 'string', 'Description': 'string', 'PricingPlan': 'RequestBasedUsage'|'MobileAssetTracking'|'MobileAssetManagement', 'PricingPlanDataSource': 'string', 'KmsKeyId': 'string', 'Tags': { 'string': 'string' }, 'CreateTime': datetime(2015, 1, 1), 'UpdateTime': datetime(2015, 1, 1), 'GeofenceCount': 123 } **Response Structure** * *(dict) --* * **CollectionName** *(string) --* The name of the geofence collection. * **CollectionArn** *(string) --* The Amazon Resource Name (ARN) for the geofence collection resource. Used when you need to specify a resource across all Amazon Web Services. * Format example: "arn:aws:geo:region:account-id:geofence- collection/ExampleGeofenceCollection" * **Description** *(string) --* The optional description for the geofence collection. * **PricingPlan** *(string) --* No longer used. Always returns "RequestBasedUsage". * **PricingPlanDataSource** *(string) --* No longer used. Always returns an empty string. * **KmsKeyId** *(string) --* A key identifier for an Amazon Web Services KMS customer managed key assigned to the Amazon Location resource * **Tags** *(dict) --* Displays the key, value pairs of tags associated with this resource. * *(string) --* * *(string) --* * **CreateTime** *(datetime) --* The timestamp for when the geofence resource was created in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ" * **UpdateTime** *(datetime) --* The timestamp for when the geofence collection was last updated in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ" * **GeofenceCount** *(integer) --* The number of geofences in the geofence collection. **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / update_route_calculator update_route_calculator *********************** LocationService.Client.update_route_calculator(**kwargs) Updates the specified properties for a given route calculator resource. See also: AWS API Documentation **Request Syntax** response = client.update_route_calculator( CalculatorName='string', PricingPlan='RequestBasedUsage'|'MobileAssetTracking'|'MobileAssetManagement', Description='string' ) Parameters: * **CalculatorName** (*string*) -- **[REQUIRED]** The name of the route calculator resource to update. * **PricingPlan** (*string*) -- No longer used. If included, the only allowed value is "RequestBasedUsage". * **Description** (*string*) -- Updates the description for the route calculator resource. Return type: dict Returns: **Response Syntax** { 'CalculatorName': 'string', 'CalculatorArn': 'string', 'UpdateTime': datetime(2015, 1, 1) } **Response Structure** * *(dict) --* * **CalculatorName** *(string) --* The name of the updated route calculator resource. * **CalculatorArn** *(string) --* The Amazon Resource Name (ARN) of the updated route calculator resource. Used to specify a resource across AWS. * Format example: "arn:aws:geo:region:account-id:route- calculator/ExampleCalculator" * **UpdateTime** *(datetime) --* The timestamp for when the route calculator was last updated in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ". **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / create_route_calculator create_route_calculator *********************** LocationService.Client.create_route_calculator(**kwargs) 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. Note: 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. See also: AWS API Documentation **Request Syntax** response = client.create_route_calculator( CalculatorName='string', DataSource='string', PricingPlan='RequestBasedUsage'|'MobileAssetTracking'|'MobileAssetManagement', Description='string', Tags={ 'string': 'string' } ) Parameters: * **CalculatorName** (*string*) -- **[REQUIRED]** The name of the route calculator resource. Requirements: * Can use alphanumeric characters (A–Z, a–z, 0–9) , hyphens (-), periods (.), and underscores (_). * Must be a unique Route calculator resource name. * No spaces allowed. For example, "ExampleRouteCalculator". * **DataSource** (*string*) -- **[REQUIRED]** Specifies the data provider of traffic and road network data. Note: This field is case-sensitive. Enter the valid values as shown. For example, entering "HERE" returns an error. Valid values include: * "Esri" – For additional information about Esri's coverage in your region of interest, see Esri details on street networks and traffic coverage. Route calculators that use Esri as a data source only calculate routes that are shorter than 400 km. * "Grab" – Grab provides routing functionality for Southeast Asia. For additional information about GrabMaps' coverage, see GrabMaps countries and areas covered. * "Here" – For additional information about HERE Technologies' coverage in your region of interest, see HERE car routing coverage and HERE truck routing coverage. For additional information , see Data providers on the *Amazon Location Service Developer Guide*. * **PricingPlan** (*string*) -- No longer used. If included, the only allowed value is "RequestBasedUsage". * **Description** (*string*) -- The optional description for the route calculator resource. * **Tags** (*dict*) -- Applies one or more tags to the route calculator resource. A tag is a key-value pair helps manage, identify, search, and filter your resources by labelling them. * For example: { ""tag1" : "value1"", ""tag2" : "value2""} Format: ""key" : "value"" Restrictions: * Maximum 50 tags per resource * Each resource tag must be unique with a maximum of one value. * Maximum key length: 128 Unicode characters in UTF-8 * Maximum value length: 256 Unicode characters in UTF-8 * Can use alphanumeric characters (A–Z, a–z, 0–9), and the following characters: + - = . _ : / @. * Cannot use "aws:" as a prefix for a key. * *(string) --* * *(string) --* Return type: dict Returns: **Response Syntax** { 'CalculatorName': 'string', 'CalculatorArn': 'string', 'CreateTime': datetime(2015, 1, 1) } **Response Structure** * *(dict) --* * **CalculatorName** *(string) --* The name of the route calculator resource. * For example, "ExampleRouteCalculator". * **CalculatorArn** *(string) --* The Amazon Resource Name (ARN) for the route calculator resource. Use the ARN when you specify a resource across all Amazon Web Services. * Format example: "arn:aws:geo:region:account-id:route- calculator/ExampleCalculator" * **CreateTime** *(datetime) --* The timestamp when the route calculator resource was created in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ". * For example, "2020–07-2T12:15:20.000Z+01:00" **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ConflictException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ServiceQuotaExceededException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / update_map update_map ********** LocationService.Client.update_map(**kwargs) Updates the specified properties of a given map resource. See also: AWS API Documentation **Request Syntax** response = client.update_map( MapName='string', PricingPlan='RequestBasedUsage'|'MobileAssetTracking'|'MobileAssetManagement', Description='string', ConfigurationUpdate={ 'PoliticalView': 'string', 'CustomLayers': [ 'string', ] } ) Parameters: * **MapName** (*string*) -- **[REQUIRED]** The name of the map resource to update. * **PricingPlan** (*string*) -- No longer used. If included, the only allowed value is "RequestBasedUsage". * **Description** (*string*) -- Updates the description for the map resource. * **ConfigurationUpdate** (*dict*) -- Updates the parts of the map configuration that can be updated, including the political view. * **PoliticalView** *(string) --* Specifies the political view for the style. Set to an empty string to not use a political view, or, for styles that support specific political views, you can choose a view, such as "IND" for the Indian view. Note: Not all map resources or styles support political view styles. See Political views for more information. * **CustomLayers** *(list) --* Specifies the custom layers for the style. Leave unset to not enable any custom layer, or, for styles that support custom layers, you can enable layer(s), such as POI layer for the VectorEsriNavigation style. Default is "unset". Note: Not all map resources or styles support custom layers. See Custom Layers for more information. * *(string) --* Return type: dict Returns: **Response Syntax** { 'MapName': 'string', 'MapArn': 'string', 'UpdateTime': datetime(2015, 1, 1) } **Response Structure** * *(dict) --* * **MapName** *(string) --* The name of the updated map resource. * **MapArn** *(string) --* The Amazon Resource Name (ARN) of the updated map resource. Used to specify a resource across AWS. * Format example: "arn:aws:geo:region:account- id:map/ExampleMap" * **UpdateTime** *(datetime) --* The timestamp for when the map resource was last updated in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ". **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / describe_place_index describe_place_index ******************** LocationService.Client.describe_place_index(**kwargs) Retrieves the place index resource details. See also: AWS API Documentation **Request Syntax** response = client.describe_place_index( IndexName='string' ) Parameters: **IndexName** (*string*) -- **[REQUIRED]** The name of the place index resource. Return type: dict Returns: **Response Syntax** { 'IndexName': 'string', 'IndexArn': 'string', 'PricingPlan': 'RequestBasedUsage'|'MobileAssetTracking'|'MobileAssetManagement', 'Description': 'string', 'CreateTime': datetime(2015, 1, 1), 'UpdateTime': datetime(2015, 1, 1), 'DataSource': 'string', 'DataSourceConfiguration': { 'IntendedUse': 'SingleUse'|'Storage' }, 'Tags': { 'string': 'string' } } **Response Structure** * *(dict) --* * **IndexName** *(string) --* The name of the place index resource being described. * **IndexArn** *(string) --* The Amazon Resource Name (ARN) for the place index resource. Used to specify a resource across Amazon Web Services. * Format example: "arn:aws:geo:region:account-id:place- index/ExamplePlaceIndex" * **PricingPlan** *(string) --* No longer used. Always returns "RequestBasedUsage". * **Description** *(string) --* The optional description for the place index resource. * **CreateTime** *(datetime) --* The timestamp for when the place index resource was created in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ". * **UpdateTime** *(datetime) --* The timestamp for when the place index resource was last updated in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ". * **DataSource** *(string) --* The data provider of geospatial data. Values can be one of the following: * "Esri" * "Grab" * "Here" For more information about data providers, see Amazon Location Service data providers. * **DataSourceConfiguration** *(dict) --* The specified data storage option for requesting Places. * **IntendedUse** *(string) --* Specifies how the results of an operation will be stored by the caller. Valid values include: * "SingleUse" specifies that the results won't be stored. * "Storage" specifies that the result can be cached or stored in a database. Default value: "SingleUse" * **Tags** *(dict) --* Tags associated with place index resource. * *(string) --* * *(string) --* **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / verify_device_position verify_device_position ********************** LocationService.Client.verify_device_position(**kwargs) Verifies the integrity of the device's position by determining if it was reported behind a proxy, and by comparing it to an inferred position estimated based on the device's state. Note: The Location Integrity SDK provides enhanced features related to device verification, and it is available for use by request. To get access to the SDK, contact Sales Support. See also: AWS API Documentation **Request Syntax** response = client.verify_device_position( TrackerName='string', DeviceState={ 'DeviceId': 'string', 'SampleTime': datetime(2015, 1, 1), 'Position': [ 123.0, ], 'Accuracy': { 'Horizontal': 123.0 }, 'Ipv4Address': 'string', 'WiFiAccessPoints': [ { 'MacAddress': 'string', 'Rss': 123 }, ], 'CellSignals': { 'LteCellDetails': [ { 'CellId': 123, 'Mcc': 123, 'Mnc': 123, 'LocalId': { 'Earfcn': 123, 'Pci': 123 }, 'NetworkMeasurements': [ { 'Earfcn': 123, 'CellId': 123, 'Pci': 123, 'Rsrp': 123, 'Rsrq': ... }, ], 'TimingAdvance': 123, 'NrCapable': True|False, 'Rsrp': 123, 'Rsrq': ..., 'Tac': 123 }, ] } }, DistanceUnit='Kilometers'|'Miles' ) Parameters: * **TrackerName** (*string*) -- **[REQUIRED]** The name of the tracker resource to be associated with verification request. * **DeviceState** (*dict*) -- **[REQUIRED]** The device's state, including position, IP address, cell signals and Wi-Fi access points. * **DeviceId** *(string) --* **[REQUIRED]** The device identifier. * **SampleTime** *(datetime) --* **[REQUIRED]** The timestamp at which the device's position was determined. Uses ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ". * **Position** *(list) --* **[REQUIRED]** The last known device position. * *(float) --* * **Accuracy** *(dict) --* Defines the level of certainty of the position. * **Horizontal** *(float) --* **[REQUIRED]** Estimated maximum distance, in meters, between the measured position and the true position of a device, along the Earth's surface. * **Ipv4Address** *(string) --* The device's Ipv4 address. * **WiFiAccessPoints** *(list) --* The Wi-Fi access points the device is using. * *(dict) --* Wi-Fi access point. * **MacAddress** *(string) --* **[REQUIRED]** Medium access control address (Mac). * **Rss** *(integer) --* **[REQUIRED]** Received signal strength (dBm) of the WLAN measurement data. * **CellSignals** *(dict) --* The cellular network infrastructure that the device is connected to. * **LteCellDetails** *(list) --* **[REQUIRED]** Information about the Long-Term Evolution (LTE) network the device is connected to. * *(dict) --* Details about the Long-Term Evolution (LTE) network. * **CellId** *(integer) --* **[REQUIRED]** The E-UTRAN Cell Identifier (ECI). * **Mcc** *(integer) --* **[REQUIRED]** The Mobile Country Code (MCC). * **Mnc** *(integer) --* **[REQUIRED]** The Mobile Network Code (MNC) * **LocalId** *(dict) --* The LTE local identification information (local ID). * **Earfcn** *(integer) --* **[REQUIRED]** E-UTRA (Evolved Universal Terrestrial Radio Access) absolute radio frequency channel number (EARFCN). * **Pci** *(integer) --* **[REQUIRED]** Physical Cell ID (PCI). * **NetworkMeasurements** *(list) --* The network measurements. * *(dict) --* LTE network measurements. * **Earfcn** *(integer) --* **[REQUIRED]** E-UTRA (Evolved Universal Terrestrial Radio Access) absolute radio frequency channel number (EARFCN). * **CellId** *(integer) --* **[REQUIRED]** E-UTRAN Cell Identifier (ECI). * **Pci** *(integer) --* **[REQUIRED]** Physical Cell ID (PCI). * **Rsrp** *(integer) --* Signal power of the reference signal received, measured in dBm (decibel-milliwatts). * **Rsrq** *(float) --* Signal quality of the reference Signal received, measured in decibels (dB). * **TimingAdvance** *(integer) --* Timing Advance (TA). * **NrCapable** *(boolean) --* Indicates whether the LTE object is capable of supporting NR (new radio). * **Rsrp** *(integer) --* Signal power of the reference signal received, measured in decibel-milliwatts (dBm). * **Rsrq** *(float) --* Signal quality of the reference Signal received, measured in decibels (dB). * **Tac** *(integer) --* LTE Tracking Area Code (TAC). * **DistanceUnit** (*string*) -- The distance unit for the verification request. Default Value: "Kilometers" Return type: dict Returns: **Response Syntax** { 'InferredState': { 'Position': [ 123.0, ], 'Accuracy': { 'Horizontal': 123.0 }, 'DeviationDistance': 123.0, 'ProxyDetected': True|False }, 'DeviceId': 'string', 'SampleTime': datetime(2015, 1, 1), 'ReceivedTime': datetime(2015, 1, 1), 'DistanceUnit': 'Kilometers'|'Miles' } **Response Structure** * *(dict) --* * **InferredState** *(dict) --* The inferred state of the device, given the provided position, IP address, cellular signals, and Wi-Fi- access points. * **Position** *(list) --* The device position inferred by the provided position, IP address, cellular signals, and Wi-Fi- access points. * *(float) --* * **Accuracy** *(dict) --* The level of certainty of the inferred position. * **Horizontal** *(float) --* Estimated maximum distance, in meters, between the measured position and the true position of a device, along the Earth's surface. * **DeviationDistance** *(float) --* The distance between the inferred position and the device's self-reported position. * **ProxyDetected** *(boolean) --* Indicates if a proxy was used. * **DeviceId** *(string) --* The device identifier. * **SampleTime** *(datetime) --* The timestamp at which the device's position was determined. Uses ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ". * **ReceivedTime** *(datetime) --* The timestamp for when the tracker resource received the device position in ISO 8601 format: "YYYY-MM- DDThh:mm:ss.sssZ". * **DistanceUnit** *(string) --* The distance unit for the verification response. **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / create_tracker create_tracker ************** LocationService.Client.create_tracker(**kwargs) Creates a tracker resource in your Amazon Web Services account, which lets you retrieve current and historical location of devices. See also: AWS API Documentation **Request Syntax** response = client.create_tracker( TrackerName='string', PricingPlan='RequestBasedUsage'|'MobileAssetTracking'|'MobileAssetManagement', KmsKeyId='string', PricingPlanDataSource='string', Description='string', Tags={ 'string': 'string' }, PositionFiltering='TimeBased'|'DistanceBased'|'AccuracyBased', EventBridgeEnabled=True|False, KmsKeyEnableGeospatialQueries=True|False ) Parameters: * **TrackerName** (*string*) -- **[REQUIRED]** The name for the tracker resource. Requirements: * Contain only alphanumeric characters (A-Z, a-z, 0-9) , hyphens (-), periods (.), and underscores (_). * Must be a unique tracker resource name. * No spaces allowed. For example, "ExampleTracker". * **PricingPlan** (*string*) -- No longer used. If included, the only allowed value is "RequestBasedUsage". * **KmsKeyId** (*string*) -- A key identifier for an Amazon Web Services KMS customer managed key. Enter a key ID, key ARN, alias name, or alias ARN. * **PricingPlanDataSource** (*string*) -- This parameter is no longer used. * **Description** (*string*) -- An optional description for the tracker resource. * **Tags** (*dict*) -- Applies one or more tags to the tracker resource. A tag is a key-value pair helps manage, identify, search, and filter your resources by labelling them. Format: ""key" : "value"" Restrictions: * Maximum 50 tags per resource * Each resource tag must be unique with a maximum of one value. * Maximum key length: 128 Unicode characters in UTF-8 * Maximum value length: 256 Unicode characters in UTF-8 * Can use alphanumeric characters (A–Z, a–z, 0–9), and the following characters: + - = . _ : / @. * Cannot use "aws:" as a prefix for a key. * *(string) --* * *(string) --* * **PositionFiltering** (*string*) -- Specifies the position filtering for the tracker resource. Valid values: * "TimeBased" - Location updates are evaluated against linked geofence collections, but not every location update is stored. If your update frequency is more often than 30 seconds, only one update per 30 seconds is stored for each unique device ID. * "DistanceBased" - If the device has moved less than 30 m (98.4 ft), location updates are ignored. Location updates within this area are neither evaluated against linked geofence collections, nor stored. This helps control costs by reducing the number of geofence evaluations and historical device positions to paginate through. Distance- based filtering can also reduce the effects of GPS noise when displaying device trajectories on a map. * "AccuracyBased" - If the device has moved less than the measured accuracy, location updates are ignored. For example, if two consecutive updates from a device have a horizontal accuracy of 5 m and 10 m, the second update is ignored if the device has moved less than 15 m. Ignored location updates are neither evaluated against linked geofence collections, nor stored. This can reduce the effects of GPS noise when displaying device trajectories on a map, and can help control your costs by reducing the number of geofence evaluations. This field is optional. If not specified, the default value is "TimeBased". * **EventBridgeEnabled** (*boolean*) -- Whether to enable position "UPDATE" events from this tracker to be sent to EventBridge. Note: You do not need enable this feature to get "ENTER" and "EXIT" events for geofences with this tracker. Those events are always sent to EventBridge. * **KmsKeyEnableGeospatialQueries** (*boolean*) -- Enables "GeospatialQueries" for a tracker that uses a Amazon Web Services KMS customer managed key. This parameter is only used if you are using a KMS customer managed key. Note: If you wish to encrypt your data using your own KMS customer managed key, then the Bounding Polygon Queries feature will be disabled by default. This is because by using this feature, a representation of your device positions will not be encrypted using the your KMS managed key. The exact device position, however; is still encrypted using your managed key.You can choose to opt-in to the Bounding Polygon Quseries feature. This is done by setting the "KmsKeyEnableGeospatialQueries" parameter to true when creating or updating a Tracker. Return type: dict Returns: **Response Syntax** { 'TrackerName': 'string', 'TrackerArn': 'string', 'CreateTime': datetime(2015, 1, 1) } **Response Structure** * *(dict) --* * **TrackerName** *(string) --* The name of the tracker resource. * **TrackerArn** *(string) --* The Amazon Resource Name (ARN) for the tracker resource. Used when you need to specify a resource across all Amazon Web Services. * Format example: "arn:aws:geo:region:account- id:tracker/ExampleTracker" * **CreateTime** *(datetime) --* The timestamp for when the tracker resource was created in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ". **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ConflictException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ServiceQuotaExceededException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / list_place_indexes list_place_indexes ****************** LocationService.Client.list_place_indexes(**kwargs) Lists place index resources in your Amazon Web Services account. See also: AWS API Documentation **Request Syntax** response = client.list_place_indexes( MaxResults=123, NextToken='string' ) Parameters: * **MaxResults** (*integer*) -- An optional limit for the maximum number of results returned in a single call. Default value: "100" * **NextToken** (*string*) -- The pagination token specifying which page of results to return in the response. If no token is provided, the default page is the first page. Default value: "null" Return type: dict Returns: **Response Syntax** { 'Entries': [ { 'IndexName': 'string', 'Description': 'string', 'DataSource': 'string', 'PricingPlan': 'RequestBasedUsage'|'MobileAssetTracking'|'MobileAssetManagement', 'CreateTime': datetime(2015, 1, 1), 'UpdateTime': datetime(2015, 1, 1) }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **Entries** *(list) --* Lists the place index resources that exist in your Amazon Web Services account * *(dict) --* A place index resource listed in your Amazon Web Services account. * **IndexName** *(string) --* The name of the place index resource. * **Description** *(string) --* The optional description for the place index resource. * **DataSource** *(string) --* The data provider of geospatial data. Values can be one of the following: * "Esri" * "Grab" * "Here" For more information about data providers, see Amazon Location Service data providers. * **PricingPlan** *(string) --* No longer used. Always returns "RequestBasedUsage". * **CreateTime** *(datetime) --* The timestamp for when the place index resource was created in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ". * **UpdateTime** *(datetime) --* The timestamp for when the place index resource was last updated in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ". * **NextToken** *(string) --* A pagination token indicating that there are additional pages available. You can use the token in a new request to fetch the next page of results. **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / search_place_index_for_suggestions search_place_index_for_suggestions ********************************** LocationService.Client.search_place_index_for_suggestions(**kwargs) 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. Note: 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. See also: AWS API Documentation **Request Syntax** response = client.search_place_index_for_suggestions( IndexName='string', Text='string', BiasPosition=[ 123.0, ], FilterBBox=[ 123.0, ], FilterCountries=[ 'string', ], MaxResults=123, Language='string', FilterCategories=[ 'string', ], Key='string' ) Parameters: * **IndexName** (*string*) -- **[REQUIRED]** The name of the place index resource you want to use for the search. * **Text** (*string*) -- **[REQUIRED]** The free-form partial text to use to generate place suggestions. For example, "eiffel tow". * **BiasPosition** (*list*) -- An optional parameter that indicates a preference for place suggestions that are closer to a specified position. If provided, this parameter must contain a pair of numbers. The first number represents the X coordinate, or longitude; the second number represents the Y coordinate, or latitude. For example, "[-123.1174, 49.2847]" represents the position with longitude "-123.1174" and latitude "49.2847". Note: "BiasPosition" and "FilterBBox" are mutually exclusive. Specifying both options results in an error. * *(float) --* * **FilterBBox** (*list*) -- An optional parameter that limits the search results by returning only suggestions within a specified bounding box. If provided, this parameter must contain a total of four consecutive numbers in two pairs. The first pair of numbers represents the X and Y coordinates (longitude and latitude, respectively) of the southwest corner of the bounding box; the second pair of numbers represents the X and Y coordinates (longitude and latitude, respectively) of the northeast corner of the bounding box. For example, "[-12.7935, -37.4835, -12.0684, -36.9542]" represents a bounding box where the southwest corner has longitude "-12.7935" and latitude "-37.4835", and the northeast corner has longitude "-12.0684" and latitude "-36.9542". Note: "FilterBBox" and "BiasPosition" are mutually exclusive. Specifying both options results in an error. * *(float) --* * **FilterCountries** (*list*) -- An optional parameter that limits the search results by returning only suggestions within the provided list of countries. * Use the ISO 3166 3-digit country code. For example, Australia uses three upper-case characters: "AUS". * *(string) --* * **MaxResults** (*integer*) -- An optional parameter. The maximum number of results returned per request. The default: "5" * **Language** (*string*) -- The preferred language used to return results. The value must be a valid BCP 47 language tag, for example, "en" for English. This setting affects the languages used in the results. If no language is specified, or not supported for a particular result, the partner automatically chooses a language for the result. For an example, we'll use the Greek language. You search for "Athens, Gr" to get suggestions with the "language" parameter set to "en". The results found will most likely be returned as "Athens, Greece". If you set the "language" parameter to "el", for Greek, then the result found will more likely be returned as "Αθήνα, Ελλάδα". If the data provider does not have a value for Greek, the result will be in a language that the provider does support. * **FilterCategories** (*list*) -- A list of one or more Amazon Location categories to filter the returned places. If you include more than one category, the results will include results that match *any* of the categories listed. For more information about using categories, including a list of Amazon Location categories, see Categories and filtering, in the *Amazon Location Service developer guide*. * *(string) --* * **Key** (*string*) -- The optional API key to authorize the request. Return type: dict Returns: **Response Syntax** { 'Summary': { 'Text': 'string', 'BiasPosition': [ 123.0, ], 'FilterBBox': [ 123.0, ], 'FilterCountries': [ 'string', ], 'MaxResults': 123, 'DataSource': 'string', 'Language': 'string', 'FilterCategories': [ 'string', ] }, 'Results': [ { 'Text': 'string', 'PlaceId': 'string', 'Categories': [ 'string', ], 'SupplementalCategories': [ 'string', ] }, ] } **Response Structure** * *(dict) --* * **Summary** *(dict) --* Contains a summary of the request. Echoes the input values for "BiasPosition", "FilterBBox", "FilterCountries", "Language", "MaxResults", and "Text". Also includes the "DataSource" of the place index. * **Text** *(string) --* The free-form partial text input specified in the request. * **BiasPosition** *(list) --* Contains the coordinates for the optional bias position specified in the request. This parameter contains a pair of numbers. The first number represents the X coordinate, or longitude; the second number represents the Y coordinate, or latitude. For example, "[-123.1174, 49.2847]" represents the position with longitude "-123.1174" and latitude "49.2847". * *(float) --* * **FilterBBox** *(list) --* Contains the coordinates for the optional bounding box specified in the request. * *(float) --* * **FilterCountries** *(list) --* Contains the optional country filter specified in the request. * *(string) --* * **MaxResults** *(integer) --* Contains the optional result count limit specified in the request. * **DataSource** *(string) --* The geospatial data provider attached to the place index resource specified in the request. Values can be one of the following: * Esri * Grab * Here For more information about data providers, see Amazon Location Service data providers. * **Language** *(string) --* The preferred language used to return results. Matches the language in the request. The value is a valid BCP 47 language tag, for example, "en" for English. * **FilterCategories** *(list) --* The optional category filter specified in the request. * *(string) --* * **Results** *(list) --* A list of place suggestions that best match the search text. * *(dict) --* Contains a place suggestion resulting from a place suggestion query that is run on a place index resource. * **Text** *(string) --* The text of the place suggestion, typically formatted as an address string. * **PlaceId** *(string) --* The unique identifier of the Place. You can use this with the "GetPlace" operation to find the place again later, or to get full information for the Place. The "GetPlace" request must use the same "PlaceIndex" resource as the "SearchPlaceIndexForSuggestions" that generated the Place ID. Note: For "SearchPlaceIndexForSuggestions" operations, the "PlaceId" is returned by place indexes that use Esri, Grab, or HERE as data providers. * **Categories** *(list) --* The Amazon Location categories that describe the Place. For more information about using categories, including a list of Amazon Location categories, see Categories and filtering, in the *Amazon Location Service developer guide*. * *(string) --* * **SupplementalCategories** *(list) --* Categories from the data provider that describe the Place that are not mapped to any Amazon Location categories. * *(string) --* **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / tag_resource tag_resource ************ LocationService.Client.tag_resource(**kwargs) 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. See also: AWS API Documentation **Request Syntax** response = client.tag_resource( ResourceArn='string', Tags={ 'string': 'string' } ) Parameters: * **ResourceArn** (*string*) -- **[REQUIRED]** The Amazon Resource Name (ARN) of the resource whose tags you want to update. * Format example: "arn:aws:geo:region:account- id:resourcetype/ExampleResource" * **Tags** (*dict*) -- **[REQUIRED]** Applies one or more tags to specific resource. A tag is a key- value pair that helps you manage, identify, search, and filter your resources. Format: ""key" : "value"" Restrictions: * Maximum 50 tags per resource. * Each tag key must be unique and must have exactly one associated value. * Maximum key length: 128 Unicode characters in UTF-8. * Maximum value length: 256 Unicode characters in UTF-8. * Can use alphanumeric characters (A–Z, a–z, 0–9), and the following characters: + - = . _ : / @ * Cannot use "aws:" as a prefix for a key. * *(string) --* * *(string) --* Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / batch_get_device_position batch_get_device_position ************************* LocationService.Client.batch_get_device_position(**kwargs) Lists the latest device positions for requested devices. See also: AWS API Documentation **Request Syntax** response = client.batch_get_device_position( TrackerName='string', DeviceIds=[ 'string', ] ) Parameters: * **TrackerName** (*string*) -- **[REQUIRED]** The tracker resource retrieving the device position. * **DeviceIds** (*list*) -- **[REQUIRED]** Devices whose position you want to retrieve. * For example, for two devices: "device-ids=DeviceId1&device- ids=DeviceId2" * *(string) --* Return type: dict Returns: **Response Syntax** { 'Errors': [ { 'DeviceId': 'string', 'Error': { 'Code': 'AccessDeniedError'|'ConflictError'|'InternalServerError'|'ResourceNotFoundError'|'ThrottlingError'|'ValidationError', 'Message': 'string' } }, ], 'DevicePositions': [ { 'DeviceId': 'string', 'SampleTime': datetime(2015, 1, 1), 'ReceivedTime': datetime(2015, 1, 1), 'Position': [ 123.0, ], 'Accuracy': { 'Horizontal': 123.0 }, 'PositionProperties': { 'string': 'string' } }, ] } **Response Structure** * *(dict) --* * **Errors** *(list) --* Contains error details for each device that failed to send its position to the tracker resource. * *(dict) --* Contains error details for each device that didn't return a position. * **DeviceId** *(string) --* The ID of the device that didn't return a position. * **Error** *(dict) --* Contains details related to the error code. * **Code** *(string) --* The error code associated with the batch request error. * **Message** *(string) --* A message with the reason for the batch request error. * **DevicePositions** *(list) --* Contains device position details such as the device ID, position, and timestamps for when the position was received and sampled. * *(dict) --* Contains the device position details. * **DeviceId** *(string) --* The device whose position you retrieved. * **SampleTime** *(datetime) --* The timestamp at which the device's position was determined. Uses ISO 8601 format: "YYYY-MM- DDThh:mm:ss.sssZ". * **ReceivedTime** *(datetime) --* The timestamp for when the tracker resource received the device position in ISO 8601 format: "YYYY-MM- DDThh:mm:ss.sssZ". * **Position** *(list) --* The last known device position. * *(float) --* * **Accuracy** *(dict) --* The accuracy of the device position. * **Horizontal** *(float) --* Estimated maximum distance, in meters, between the measured position and the true position of a device, along the Earth's surface. * **PositionProperties** *(dict) --* The properties associated with the position. * *(string) --* * *(string) --* **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / delete_key delete_key ********** LocationService.Client.delete_key(**kwargs) Deletes the specified API key. The API key must have been deactivated more than 90 days previously. See also: AWS API Documentation **Request Syntax** response = client.delete_key( KeyName='string', ForceDelete=True|False ) Parameters: * **KeyName** (*string*) -- **[REQUIRED]** The name of the API key to delete. * **ForceDelete** (*boolean*) -- ForceDelete bypasses an API key's expiry conditions and deletes the key. Set the parameter "true" to delete the key or to "false" to not preemptively delete the API key. Valid values: "true", or "false". Required: No Note: This action is irreversible. Only use ForceDelete if you are certain the key is no longer in use. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / batch_delete_device_position_history batch_delete_device_position_history ************************************ LocationService.Client.batch_delete_device_position_history(**kwargs) Deletes the position history of one or more devices from a tracker resource. See also: AWS API Documentation **Request Syntax** response = client.batch_delete_device_position_history( TrackerName='string', DeviceIds=[ 'string', ] ) Parameters: * **TrackerName** (*string*) -- **[REQUIRED]** The name of the tracker resource to delete the device position history from. * **DeviceIds** (*list*) -- **[REQUIRED]** Devices whose position history you want to delete. * For example, for two devices: "“DeviceIds” : [DeviceId1,DeviceId2]" * *(string) --* Return type: dict Returns: **Response Syntax** { 'Errors': [ { 'DeviceId': 'string', 'Error': { 'Code': 'AccessDeniedError'|'ConflictError'|'InternalServerError'|'ResourceNotFoundError'|'ThrottlingError'|'ValidationError', 'Message': 'string' } }, ] } **Response Structure** * *(dict) --* * **Errors** *(list) --* Contains error details for each device history that failed to delete. * *(dict) --* Contains the tracker resource details. * **DeviceId** *(string) --* The ID of the device for this position. * **Error** *(dict) --* Contains the batch request error details associated with the request. * **Code** *(string) --* The error code associated with the batch request error. * **Message** *(string) --* A message with the reason for the batch request error. **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / describe_map describe_map ************ LocationService.Client.describe_map(**kwargs) Retrieves the map resource details. See also: AWS API Documentation **Request Syntax** response = client.describe_map( MapName='string' ) Parameters: **MapName** (*string*) -- **[REQUIRED]** The name of the map resource. Return type: dict Returns: **Response Syntax** { 'MapName': 'string', 'MapArn': 'string', 'PricingPlan': 'RequestBasedUsage'|'MobileAssetTracking'|'MobileAssetManagement', 'DataSource': 'string', 'Configuration': { 'Style': 'string', 'PoliticalView': 'string', 'CustomLayers': [ 'string', ] }, 'Description': 'string', 'Tags': { 'string': 'string' }, 'CreateTime': datetime(2015, 1, 1), 'UpdateTime': datetime(2015, 1, 1) } **Response Structure** * *(dict) --* * **MapName** *(string) --* The map style selected from an available provider. * **MapArn** *(string) --* The Amazon Resource Name (ARN) for the map resource. Used to specify a resource across all Amazon Web Services. * Format example: "arn:aws:geo:region:account- id:map/ExampleMap" * **PricingPlan** *(string) --* No longer used. Always returns "RequestBasedUsage". * **DataSource** *(string) --* Specifies the data provider for the associated map tiles. * **Configuration** *(dict) --* Specifies the map tile style selected from a partner data provider. * **Style** *(string) --* Specifies the map style selected from an available data provider. Valid Esri map styles: * "VectorEsriDarkGrayCanvas" – The Esri Dark Gray Canvas map style. A vector basemap with a dark gray, neutral background with minimal colors, labels, and features that's designed to draw attention to your thematic content. * "RasterEsriImagery" – The Esri Imagery map style. A raster basemap that provides one meter or better satellite and aerial imagery in many parts of the world and lower resolution satellite imagery worldwide. * "VectorEsriLightGrayCanvas" – The Esri Light Gray Canvas map style, which provides a detailed vector basemap with a light gray, neutral background style with minimal colors, labels, and features that's designed to draw attention to your thematic content. * "VectorEsriTopographic" – The Esri Light map style, which provides a detailed vector basemap with a classic Esri map style. * "VectorEsriStreets" – The Esri Street Map style, which provides a detailed vector basemap for the world symbolized with a classic Esri street map style. The vector tile layer is similar in content and style to the World Street Map raster map. * "VectorEsriNavigation" – The Esri Navigation map style, which provides a detailed basemap for the world symbolized with a custom navigation map style that's designed for use during the day in mobile devices. Valid HERE Technologies map styles: * "VectorHereContrast" – The HERE Contrast (Berlin) map style is a high contrast detailed base map of the world that blends 3D and 2D rendering. Note: The "VectorHereContrast" style has been renamed from "VectorHereBerlin". "VectorHereBerlin" has been deprecated, but will continue to work in applications that use it. * "VectorHereExplore" – A default HERE map style containing a neutral, global map and its features including roads, buildings, landmarks, and water features. It also now includes a fully designed map of Japan. * "VectorHereExploreTruck" – A global map containing truck restrictions and attributes (e.g. width / height / HAZMAT) symbolized with highlighted segments and icons on top of HERE Explore to support use cases within transport and logistics. * "RasterHereExploreSatellite" – A global map containing high resolution satellite imagery. * "HybridHereExploreSatellite" – A global map displaying the road network, street names, and city labels over satellite imagery. This style will automatically retrieve both raster and vector tiles, and your charges will be based on total tiles retrieved. Note: Hybrid styles use both vector and raster tiles when rendering the map that you see. This means that more tiles are retrieved than when using either vector or raster tiles alone. Your charges will include all tiles retrieved. Valid GrabMaps map styles: * "VectorGrabStandardLight" – The Grab Standard Light map style provides a basemap with detailed land use coloring, area names, roads, landmarks, and points of interest covering Southeast Asia. * "VectorGrabStandardDark" – The Grab Standard Dark map style provides a dark variation of the standard basemap covering Southeast Asia. Note: Grab provides maps only for countries in Southeast Asia, and is only available in the Asia Pacific (Singapore) Region ( "ap-southeast-1"). For more information, see GrabMaps countries and area covered. Valid Open Data map styles: * "VectorOpenDataStandardLight" – The Open Data Standard Light map style provides a detailed basemap for the world suitable for website and mobile application use. The map includes highways major roads, minor roads, railways, water features, cities, parks, landmarks, building footprints, and administrative boundaries. * "VectorOpenDataStandardDark" – Open Data Standard Dark is a dark-themed map style that provides a detailed basemap for the world suitable for website and mobile application use. The map includes highways major roads, minor roads, railways, water features, cities, parks, landmarks, building footprints, and administrative boundaries. * "VectorOpenDataVisualizationLight" – The Open Data Visualization Light map style is a light-themed style with muted colors and fewer features that aids in understanding overlaid data. * "VectorOpenDataVisualizationDark" – The Open Data Visualization Dark map style is a dark-themed style with muted colors and fewer features that aids in understanding overlaid data. * **PoliticalView** *(string) --* Specifies the political view for the style. Leave unset to not use a political view, or, for styles that support specific political views, you can choose a view, such as "IND" for the Indian view. Default is unset. Note: Not all map resources or styles support political view styles. See Political views for more information. * **CustomLayers** *(list) --* Specifies the custom layers for the style. Leave unset to not enable any custom layer, or, for styles that support custom layers, you can enable layer(s), such as POI layer for the VectorEsriNavigation style. Default is "unset". Note: Not all map resources or styles support custom layers. See Custom Layers for more information. * *(string) --* * **Description** *(string) --* The optional description for the map resource. * **Tags** *(dict) --* Tags associated with the map resource. * *(string) --* * *(string) --* * **CreateTime** *(datetime) --* The timestamp for when the map resource was created in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ". * **UpdateTime** *(datetime) --* The timestamp for when the map resource was last update in ISO 8601 format: "YYYY-MM-DDThh:mm:ss.sssZ". **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / delete_geofence_collection delete_geofence_collection ************************** LocationService.Client.delete_geofence_collection(**kwargs) Deletes a geofence collection from your Amazon Web Services account. Note: This operation deletes the resource permanently. If the geofence collection is the target of a tracker resource, the devices will no longer be monitored. See also: AWS API Documentation **Request Syntax** response = client.delete_geofence_collection( CollectionName='string' ) Parameters: **CollectionName** (*string*) -- **[REQUIRED]** The name of the geofence collection to be deleted. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException" LocationService / Client / search_place_index_for_position search_place_index_for_position ******************************* LocationService.Client.search_place_index_for_position(**kwargs) Reverse geocodes a given coordinate and returns a legible address. Allows you to search for Places or points of interest near a given position. See also: AWS API Documentation **Request Syntax** response = client.search_place_index_for_position( IndexName='string', Position=[ 123.0, ], MaxResults=123, Language='string', Key='string' ) Parameters: * **IndexName** (*string*) -- **[REQUIRED]** The name of the place index resource you want to use for the search. * **Position** (*list*) -- **[REQUIRED]** Specifies the longitude and latitude of the position to query. This parameter must contain a pair of numbers. The first number represents the X coordinate, or longitude; the second number represents the Y coordinate, or latitude. For example, "[-123.1174, 49.2847]" represents a position with longitude "-123.1174" and latitude "49.2847". * *(float) --* * **MaxResults** (*integer*) -- An optional parameter. The maximum number of results returned per request. Default value: "50" * **Language** (*string*) -- The preferred language used to return results. The value must be a valid BCP 47 language tag, for example, "en" for English. This setting affects the languages used in the results, but not the results themselves. If no language is specified, or not supported for a particular result, the partner automatically chooses a language for the result. For an example, we'll use the Greek language. You search for a location around Athens, Greece, with the "language" parameter set to "en". The "city" in the results will most likely be returned as "Athens". If you set the "language" parameter to "el", for Greek, then the "city" in the results will more likely be returned as "Αθήνα". If the data provider does not have a value for Greek, the result will be in a language that the provider does support. * **Key** (*string*) -- The optional API key to authorize the request. Return type: dict Returns: **Response Syntax** { 'Summary': { 'Position': [ 123.0, ], 'MaxResults': 123, 'DataSource': 'string', 'Language': 'string' }, 'Results': [ { 'Place': { 'Label': 'string', 'Geometry': { 'Point': [ 123.0, ] }, 'AddressNumber': 'string', 'Street': 'string', 'Neighborhood': 'string', 'Municipality': 'string', 'SubRegion': 'string', 'Region': 'string', 'Country': 'string', 'PostalCode': 'string', 'Interpolated': True|False, 'TimeZone': { 'Name': 'string', 'Offset': 123 }, 'UnitType': 'string', 'UnitNumber': 'string', 'Categories': [ 'string', ], 'SupplementalCategories': [ 'string', ], 'SubMunicipality': 'string' }, 'Distance': 123.0, 'PlaceId': 'string' }, ] } **Response Structure** * *(dict) --* * **Summary** *(dict) --* Contains a summary of the request. Echoes the input values for "Position", "Language", "MaxResults", and the "DataSource" of the place index. * **Position** *(list) --* The position specified in the request. * *(float) --* * **MaxResults** *(integer) --* Contains the optional result count limit that is specified in the request. Default value: "50" * **DataSource** *(string) --* The geospatial data provider attached to the place index resource specified in the request. Values can be one of the following: * Esri * Grab * Here For more information about data providers, see Amazon Location Service data providers. * **Language** *(string) --* The preferred language used to return results. Matches the language in the request. The value is a valid BCP 47 language tag, for example, "en" for English. * **Results** *(list) --* Returns a list of Places closest to the specified position. Each result contains additional information about the Places returned. * *(dict) --* Contains a search result from a position search query that is run on a place index resource. * **Place** *(dict) --* Details about the search result, such as its address and position. * **Label** *(string) --* The full name and address of the point of interest such as a city, region, or country. For example, "123 Any Street, Any Town, USA". * **Geometry** *(dict) --* Places uses a point geometry to specify a location or a Place. * **Point** *(list) --* A single point geometry specifies a location for a Place using WGS 84 coordinates: * *x* — Specifies the x coordinate or longitude. * *y* — Specifies the y coordinate or latitude. * *(float) --* * **AddressNumber** *(string) --* The numerical portion of an address, such as a building number. * **Street** *(string) --* The name for a street or a road to identify a location. For example, "Main Street". * **Neighborhood** *(string) --* The name of a community district. For example, "Downtown". * **Municipality** *(string) --* A name for a local area, such as a city or town name. For example, "Toronto". * **SubRegion** *(string) --* A county, or an area that's part of a larger region. For example, "Metro Vancouver". * **Region** *(string) --* A name for an area or geographical division, such as a province or state name. For example, "British Columbia". * **Country** *(string) --* A country/region specified using ISO 3166 3-digit country/region code. For example, "CAN". * **PostalCode** *(string) --* A group of numbers and letters in a country-specific format, which accompanies the address for the purpose of identifying a location. * **Interpolated** *(boolean) --* "True" if the result is interpolated from other known places. "False" if the Place is a known place. Not returned when the partner does not provide the information. For example, returns "False" for an address location that is found in the partner data, but returns "True" if an address does not exist in the partner data and its location is calculated by interpolating between other known addresses. * **TimeZone** *(dict) --* The time zone in which the "Place" is located. Returned only when using HERE or Grab as the selected partner. * **Name** *(string) --* The name of the time zone, following the IANA time zone standard. For example, "America/Los_Angeles". * **Offset** *(integer) --* The time zone's offset, in seconds, from UTC. * **UnitType** *(string) --* For addresses with a "UnitNumber", the type of unit. For example, "Apartment". Note: Returned only for a place index that uses Esri as a data provider. * **UnitNumber** *(string) --* For addresses with multiple units, the unit identifier. Can include numbers and letters, for example "3B" or "Unit 123". Note: Returned only for a place index that uses Esri or Grab as a data provider. Is not returned for "SearchPlaceIndexForPosition". * **Categories** *(list) --* The Amazon Location categories that describe this Place. For more information about using categories, including a list of Amazon Location categories, see Categories and filtering, in the *Amazon Location Service developer guide*. * *(string) --* * **SupplementalCategories** *(list) --* Categories from the data provider that describe the Place that are not mapped to any Amazon Location categories. * *(string) --* * **SubMunicipality** *(string) --* An area that's part of a larger municipality. For example, "Blissville" is a submunicipality in the Queen County in New York. Note: This property supported by Esri and OpenData. The Esri property is "district", and the OpenData property is "borough". * **Distance** *(float) --* The distance in meters of a great-circle arc between the query position and the result. Note: A great-circle arc is the shortest path on a sphere, in this case the Earth. This returns the shortest distance between two locations. * **PlaceId** *(string) --* The unique identifier of the place. You can use this with the "GetPlace" operation to find the place again later. Note: For "SearchPlaceIndexForPosition" operations, the "PlaceId" is returned only by place indexes that use HERE or Grab as a data provider. **Exceptions** * "LocationService.Client.exceptions.InternalServerException" * "LocationService.Client.exceptions.ResourceNotFoundException" * "LocationService.Client.exceptions.AccessDeniedException" * "LocationService.Client.exceptions.ValidationException" * "LocationService.Client.exceptions.ThrottlingException"