Skip to main content

place_index_for_positions

Creates, updates, deletes, gets or lists a place_index_for_positions resource.

Overview​

Nameplace_index_for_positions
TypeResource
Idaws.location.place_index_for_positions

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
resultsarrayReturns a list of Places closest to the specified position. Each result contains additional information about the Places returned.
summaryobjectContains a summary of the request. Echoes the input values for Position, Language, MaxResults, and the DataSource of the place index.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
search_place_index_for_positionselectindex_name, regionkeyThis operation is no longer current and may be deprecated in the future. We recommend you upgrade to ReverseGeocode or SearchNearby unless you require Grab data. SearchPlaceIndexForPosition is part of a previous Amazon Location Service Places API (version 1) which has been superseded by a more intuitive, powerful, and complete API (version 2). The version 2 ReverseGeocode operation gives better results in the address reverse-geocoding use case, while the version 2 SearchNearby operation gives better results when searching for businesses and points of interest near a specific location. If you are using an Amazon Web Services SDK or the Amazon Web Services CLI, note that the Places API version 2 is found under geo-places or geo_places, not under location. Since Grab is not yet fully supported in Places API version 2, we recommend you continue using API version 1 when using Grab. Reverse geocodes a given coordinate and returns a legible address. Allows you to search for Places or points of interest near a given position.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
index_namestringThe name of the place index resource you want to use for the search.
regionstringAWS region (default: us-east-1)
keystringThe optional API key to authorize the request.

SELECT examples​

This operation is no longer current and may be deprecated in the future. We recommend you upgrade to ReverseGeocode or SearchNearby unless you require Grab data. SearchPlaceIndexForPosition is part of a previous Amazon Location Service Places API (version 1) which has been superseded by a more intuitive, powerful, and complete API (version 2). The version 2 ReverseGeocode operation gives better results in the address reverse-geocoding use case, while the version 2 SearchNearby operation gives better results when searching for businesses and points of interest near a specific location. If you are using an Amazon Web Services SDK or the Amazon Web Services CLI, note that the Places API version 2 is found under geo-places or geo_places, not under location. Since Grab is not yet fully supported in Places API version 2, we recommend you continue using API version 1 when using Grab. Reverse geocodes a given coordinate and returns a legible address. Allows you to search for Places or points of interest near a given position.

SELECT
results,
summary
FROM aws.location.place_index_for_positions
WHERE index_name = '{{ index_name }}' -- required
AND region = '{{ region }}' -- required
AND key = '{{ key }}'
;