Interface GeoPlacesClient
-
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
@Generated("software.amazon.awssdk:codegen") @ThreadSafe public interface GeoPlacesClient extends AwsClient
Service client for accessing Amazon Location Service Places V2. This can be created using the staticbuilder()method.The Places API enables powerful location search and geocoding capabilities for your applications, offering global coverage with rich, detailed information. Key features include:
-
Forward and reverse geocoding for addresses and coordinates
-
Comprehensive place searches with detailed information, including:
-
Business names and addresses
-
Contact information
-
Hours of operation
-
POI (Points of Interest) categories
-
Food types for restaurants
-
Chain affiliation for relevant businesses
-
-
Global data coverage with a wide range of POI categories
-
Regular data updates to ensure accuracy and relevance
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERVICE_METADATA_IDValue for looking up the service's metadata from theServiceMetadataProvider.static StringSERVICE_NAME
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description default AutocompleteResponseautocomplete(Consumer<AutocompleteRequest.Builder> autocompleteRequest)The autocomplete operation speeds up and increases the accuracy of entering addresses by providing a list of address candidates matching a partially entered address.default AutocompleteResponseautocomplete(AutocompleteRequest autocompleteRequest)The autocomplete operation speeds up and increases the accuracy of entering addresses by providing a list of address candidates matching a partially entered address.static GeoPlacesClientBuilderbuilder()Create a builder that can be used to configure and create aGeoPlacesClient.static GeoPlacesClientcreate()Create aGeoPlacesClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default GeocodeResponsegeocode(Consumer<GeocodeRequest.Builder> geocodeRequest)TheGeocodeaction allows you to obtain coordinates, addresses, and other information about places.default GeocodeResponsegeocode(GeocodeRequest geocodeRequest)TheGeocodeaction allows you to obtain coordinates, addresses, and other information about places.default GetPlaceResponsegetPlace(Consumer<GetPlaceRequest.Builder> getPlaceRequest)Finds a place by its unique ID.default GetPlaceResponsegetPlace(GetPlaceRequest getPlaceRequest)Finds a place by its unique ID.default ReverseGeocodeResponsereverseGeocode(Consumer<ReverseGeocodeRequest.Builder> reverseGeocodeRequest)TheReverseGeocodeoperation allows you to retrieve addresses and place information from coordinates.default ReverseGeocodeResponsereverseGeocode(ReverseGeocodeRequest reverseGeocodeRequest)TheReverseGeocodeoperation allows you to retrieve addresses and place information from coordinates.default SearchNearbyResponsesearchNearby(Consumer<SearchNearbyRequest.Builder> searchNearbyRequest)Search nearby a specified location.default SearchNearbyResponsesearchNearby(SearchNearbyRequest searchNearbyRequest)Search nearby a specified location.default SearchTextResponsesearchText(Consumer<SearchTextRequest.Builder> searchTextRequest)Use theSearchTextoperation to search for geocode and place information.default SearchTextResponsesearchText(SearchTextRequest searchTextRequest)Use theSearchTextoperation to search for geocode and place information.default GeoPlacesServiceClientConfigurationserviceClientConfiguration()static ServiceMetadataserviceMetadata()default SuggestResponsesuggest(Consumer<SuggestRequest.Builder> suggestRequest)TheSuggestoperation finds addresses or place candidates based on incomplete or misspelled queries.default SuggestResponsesuggest(SuggestRequest suggestRequest)TheSuggestoperation finds addresses or place candidates based on incomplete or misspelled queries.-
Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
-
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
-
-
-
Field Detail
-
SERVICE_NAME
static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
SERVICE_METADATA_ID
static final String SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
- Constant Field Values
-
-
Method Detail
-
autocomplete
default AutocompleteResponse autocomplete(AutocompleteRequest autocompleteRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, GeoPlacesException
The autocomplete operation speeds up and increases the accuracy of entering addresses by providing a list of address candidates matching a partially entered address. Results are sorted from most to least matching. Filtering and biasing can be used to increase the relevance of the results if additional search context is known
- Parameters:
autocompleteRequest-- Returns:
- Result of the Autocomplete operation returned by the service.
- Throws:
InternalServerException- The request processing has failed because of an unknown error, exception or failure.AccessDeniedException- You don't have sufficient access to perform this action.ValidationException- The input fails to satisfy the constraints specified by an AWS service.ThrottlingException- The request was denied due to request throttling.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GeoPlacesException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
autocomplete
default AutocompleteResponse autocomplete(Consumer<AutocompleteRequest.Builder> autocompleteRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, GeoPlacesException
The autocomplete operation speeds up and increases the accuracy of entering addresses by providing a list of address candidates matching a partially entered address. Results are sorted from most to least matching. Filtering and biasing can be used to increase the relevance of the results if additional search context is known
This is a convenience which creates an instance of the
AutocompleteRequest.Builderavoiding the need to create one manually viaAutocompleteRequest.builder()- Parameters:
autocompleteRequest- AConsumerthat will call methods onAutocompleteRequest.Builderto create a request.- Returns:
- Result of the Autocomplete operation returned by the service.
- Throws:
InternalServerException- The request processing has failed because of an unknown error, exception or failure.AccessDeniedException- You don't have sufficient access to perform this action.ValidationException- The input fails to satisfy the constraints specified by an AWS service.ThrottlingException- The request was denied due to request throttling.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GeoPlacesException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
geocode
default GeocodeResponse geocode(GeocodeRequest geocodeRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, GeoPlacesException
The
Geocodeaction allows you to obtain coordinates, addresses, and other information about places.- Parameters:
geocodeRequest-- Returns:
- Result of the Geocode operation returned by the service.
- Throws:
InternalServerException- The request processing has failed because of an unknown error, exception or failure.AccessDeniedException- You don't have sufficient access to perform this action.ValidationException- The input fails to satisfy the constraints specified by an AWS service.ThrottlingException- The request was denied due to request throttling.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GeoPlacesException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
geocode
default GeocodeResponse geocode(Consumer<GeocodeRequest.Builder> geocodeRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, GeoPlacesException
The
Geocodeaction allows you to obtain coordinates, addresses, and other information about places.
This is a convenience which creates an instance of the
GeocodeRequest.Builderavoiding the need to create one manually viaGeocodeRequest.builder()- Parameters:
geocodeRequest- AConsumerthat will call methods onGeocodeRequest.Builderto create a request.- Returns:
- Result of the Geocode operation returned by the service.
- Throws:
InternalServerException- The request processing has failed because of an unknown error, exception or failure.AccessDeniedException- You don't have sufficient access to perform this action.ValidationException- The input fails to satisfy the constraints specified by an AWS service.ThrottlingException- The request was denied due to request throttling.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GeoPlacesException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getPlace
default GetPlaceResponse getPlace(GetPlaceRequest getPlaceRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, GeoPlacesException
Finds a place by its unique ID. A
PlaceIdis returned by other place operations.- Parameters:
getPlaceRequest-- Returns:
- Result of the GetPlace operation returned by the service.
- Throws:
InternalServerException- The request processing has failed because of an unknown error, exception or failure.AccessDeniedException- You don't have sufficient access to perform this action.ValidationException- The input fails to satisfy the constraints specified by an AWS service.ThrottlingException- The request was denied due to request throttling.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GeoPlacesException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getPlace
default GetPlaceResponse getPlace(Consumer<GetPlaceRequest.Builder> getPlaceRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, GeoPlacesException
Finds a place by its unique ID. A
PlaceIdis returned by other place operations.
This is a convenience which creates an instance of the
GetPlaceRequest.Builderavoiding the need to create one manually viaGetPlaceRequest.builder()- Parameters:
getPlaceRequest- AConsumerthat will call methods onGetPlaceRequest.Builderto create a request.- Returns:
- Result of the GetPlace operation returned by the service.
- Throws:
InternalServerException- The request processing has failed because of an unknown error, exception or failure.AccessDeniedException- You don't have sufficient access to perform this action.ValidationException- The input fails to satisfy the constraints specified by an AWS service.ThrottlingException- The request was denied due to request throttling.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GeoPlacesException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
reverseGeocode
default ReverseGeocodeResponse reverseGeocode(ReverseGeocodeRequest reverseGeocodeRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, GeoPlacesException
The
ReverseGeocodeoperation allows you to retrieve addresses and place information from coordinates.- Parameters:
reverseGeocodeRequest-- Returns:
- Result of the ReverseGeocode operation returned by the service.
- Throws:
InternalServerException- The request processing has failed because of an unknown error, exception or failure.AccessDeniedException- You don't have sufficient access to perform this action.ValidationException- The input fails to satisfy the constraints specified by an AWS service.ThrottlingException- The request was denied due to request throttling.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GeoPlacesException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
reverseGeocode
default ReverseGeocodeResponse reverseGeocode(Consumer<ReverseGeocodeRequest.Builder> reverseGeocodeRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, GeoPlacesException
The
ReverseGeocodeoperation allows you to retrieve addresses and place information from coordinates.
This is a convenience which creates an instance of the
ReverseGeocodeRequest.Builderavoiding the need to create one manually viaReverseGeocodeRequest.builder()- Parameters:
reverseGeocodeRequest- AConsumerthat will call methods onReverseGeocodeRequest.Builderto create a request.- Returns:
- Result of the ReverseGeocode operation returned by the service.
- Throws:
InternalServerException- The request processing has failed because of an unknown error, exception or failure.AccessDeniedException- You don't have sufficient access to perform this action.ValidationException- The input fails to satisfy the constraints specified by an AWS service.ThrottlingException- The request was denied due to request throttling.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GeoPlacesException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
searchNearby
default SearchNearbyResponse searchNearby(SearchNearbyRequest searchNearbyRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, GeoPlacesException
Search nearby a specified location.
- Parameters:
searchNearbyRequest-- Returns:
- Result of the SearchNearby operation returned by the service.
- Throws:
InternalServerException- The request processing has failed because of an unknown error, exception or failure.AccessDeniedException- You don't have sufficient access to perform this action.ValidationException- The input fails to satisfy the constraints specified by an AWS service.ThrottlingException- The request was denied due to request throttling.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GeoPlacesException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
searchNearby
default SearchNearbyResponse searchNearby(Consumer<SearchNearbyRequest.Builder> searchNearbyRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, GeoPlacesException
Search nearby a specified location.
This is a convenience which creates an instance of the
SearchNearbyRequest.Builderavoiding the need to create one manually viaSearchNearbyRequest.builder()- Parameters:
searchNearbyRequest- AConsumerthat will call methods onSearchNearbyRequest.Builderto create a request.- Returns:
- Result of the SearchNearby operation returned by the service.
- Throws:
InternalServerException- The request processing has failed because of an unknown error, exception or failure.AccessDeniedException- You don't have sufficient access to perform this action.ValidationException- The input fails to satisfy the constraints specified by an AWS service.ThrottlingException- The request was denied due to request throttling.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GeoPlacesException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
searchText
default SearchTextResponse searchText(SearchTextRequest searchTextRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, GeoPlacesException
Use the
SearchTextoperation to search for geocode and place information. You can then complete a follow-up query suggested from theSuggestAPI via a query id.- Parameters:
searchTextRequest-- Returns:
- Result of the SearchText operation returned by the service.
- Throws:
InternalServerException- The request processing has failed because of an unknown error, exception or failure.AccessDeniedException- You don't have sufficient access to perform this action.ValidationException- The input fails to satisfy the constraints specified by an AWS service.ThrottlingException- The request was denied due to request throttling.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GeoPlacesException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
searchText
default SearchTextResponse searchText(Consumer<SearchTextRequest.Builder> searchTextRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, GeoPlacesException
Use the
SearchTextoperation to search for geocode and place information. You can then complete a follow-up query suggested from theSuggestAPI via a query id.
This is a convenience which creates an instance of the
SearchTextRequest.Builderavoiding the need to create one manually viaSearchTextRequest.builder()- Parameters:
searchTextRequest- AConsumerthat will call methods onSearchTextRequest.Builderto create a request.- Returns:
- Result of the SearchText operation returned by the service.
- Throws:
InternalServerException- The request processing has failed because of an unknown error, exception or failure.AccessDeniedException- You don't have sufficient access to perform this action.ValidationException- The input fails to satisfy the constraints specified by an AWS service.ThrottlingException- The request was denied due to request throttling.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GeoPlacesException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
suggest
default SuggestResponse suggest(SuggestRequest suggestRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, GeoPlacesException
The
Suggestoperation finds addresses or place candidates based on incomplete or misspelled queries. You then select the best query to submit based on the returned results.- Parameters:
suggestRequest-- Returns:
- Result of the Suggest operation returned by the service.
- Throws:
InternalServerException- The request processing has failed because of an unknown error, exception or failure.AccessDeniedException- You don't have sufficient access to perform this action.ValidationException- The input fails to satisfy the constraints specified by an AWS service.ThrottlingException- The request was denied due to request throttling.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GeoPlacesException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
suggest
default SuggestResponse suggest(Consumer<SuggestRequest.Builder> suggestRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, GeoPlacesException
The
Suggestoperation finds addresses or place candidates based on incomplete or misspelled queries. You then select the best query to submit based on the returned results.
This is a convenience which creates an instance of the
SuggestRequest.Builderavoiding the need to create one manually viaSuggestRequest.builder()- Parameters:
suggestRequest- AConsumerthat will call methods onSuggestRequest.Builderto create a request.- Returns:
- Result of the Suggest operation returned by the service.
- Throws:
InternalServerException- The request processing has failed because of an unknown error, exception or failure.AccessDeniedException- You don't have sufficient access to perform this action.ValidationException- The input fails to satisfy the constraints specified by an AWS service.ThrottlingException- The request was denied due to request throttling.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GeoPlacesException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
create
static GeoPlacesClient create()
Create aGeoPlacesClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.
-
builder
static GeoPlacesClientBuilder builder()
Create a builder that can be used to configure and create aGeoPlacesClient.
-
serviceMetadata
static ServiceMetadata serviceMetadata()
-
serviceClientConfiguration
default GeoPlacesServiceClientConfiguration serviceClientConfiguration()
- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient
-
-