Interface GeoPlacesClient
- All Superinterfaces:
AutoCloseable
,AwsClient
,SdkAutoCloseable
,SdkClient
builder()
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
FieldsModifier and TypeFieldDescriptionstatic final String
Value for looking up the service's metadata from theServiceMetadataProvider
.static final String
-
Method Summary
Modifier and TypeMethodDescriptiondefault AutocompleteResponse
autocomplete
(Consumer<AutocompleteRequest.Builder> autocompleteRequest) Autocomplete
completes potential places and addresses as the user types, based on the partial input.default AutocompleteResponse
autocomplete
(AutocompleteRequest autocompleteRequest) Autocomplete
completes potential places and addresses as the user types, based on the partial input.static GeoPlacesClientBuilder
builder()
Create a builder that can be used to configure and create aGeoPlacesClient
.static GeoPlacesClient
create()
Create aGeoPlacesClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.default GeocodeResponse
geocode
(Consumer<GeocodeRequest.Builder> geocodeRequest) Geocode
converts a textual address or place into geographic coordinates.default GeocodeResponse
geocode
(GeocodeRequest geocodeRequest) Geocode
converts a textual address or place into geographic coordinates.default GetPlaceResponse
getPlace
(Consumer<GetPlaceRequest.Builder> getPlaceRequest) GetPlace
finds a place by its unique ID.default GetPlaceResponse
getPlace
(GetPlaceRequest getPlaceRequest) GetPlace
finds a place by its unique ID.default ReverseGeocodeResponse
reverseGeocode
(Consumer<ReverseGeocodeRequest.Builder> reverseGeocodeRequest) ReverseGeocode
converts geographic coordinates into a human-readable address or place.default ReverseGeocodeResponse
reverseGeocode
(ReverseGeocodeRequest reverseGeocodeRequest) ReverseGeocode
converts geographic coordinates into a human-readable address or place.default SearchNearbyResponse
searchNearby
(Consumer<SearchNearbyRequest.Builder> searchNearbyRequest) SearchNearby
queries for points of interest within a radius from a central coordinates, returning place results with optional filters such as categories, business chains, food types and more.default SearchNearbyResponse
searchNearby
(SearchNearbyRequest searchNearbyRequest) SearchNearby
queries for points of interest within a radius from a central coordinates, returning place results with optional filters such as categories, business chains, food types and more.default SearchTextResponse
searchText
(Consumer<SearchTextRequest.Builder> searchTextRequest) SearchText
searches for geocode and place information.default SearchTextResponse
searchText
(SearchTextRequest searchTextRequest) SearchText
searches for geocode and place information.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadata
default SuggestResponse
suggest
(Consumer<SuggestRequest.Builder> suggestRequest) Suggest
provides intelligent predictions or recommendations based on the user's input or context, such as relevant places, points of interest, query terms or search category.default SuggestResponse
suggest
(SuggestRequest suggestRequest) Suggest
provides intelligent predictions or recommendations based on the user's input or context, such as relevant places, points of interest, query terms or search category.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider
.- See Also:
-
-
Method Details
-
autocomplete
default AutocompleteResponse autocomplete(AutocompleteRequest autocompleteRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, GeoPlacesException Autocomplete
completes potential places and addresses as the user types, based on the partial input. The API enhances the efficiency and accuracy of address by completing query based on a few entered keystrokes. It helps you by completing partial queries with valid address completion. Also, the API supports the filtering of results based on geographic location, country, or specific place types, and can be tailored using optional parameters like language and political views.- Parameters:
autocompleteRequest
-- Returns:
- Result of the Autocomplete operation returned by the service.
- See Also:
-
autocomplete
default AutocompleteResponse autocomplete(Consumer<AutocompleteRequest.Builder> autocompleteRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, GeoPlacesException Autocomplete
completes potential places and addresses as the user types, based on the partial input. The API enhances the efficiency and accuracy of address by completing query based on a few entered keystrokes. It helps you by completing partial queries with valid address completion. Also, the API supports the filtering of results based on geographic location, country, or specific place types, and can be tailored using optional parameters like language and political views.
This is a convenience which creates an instance of the
AutocompleteRequest.Builder
avoiding the need to create one manually viaAutocompleteRequest.builder()
- Parameters:
autocompleteRequest
- AConsumer
that will call methods onAutocompleteRequest.Builder
to create a request.- Returns:
- Result of the Autocomplete operation returned by the service.
- See Also:
-
geocode
default GeocodeResponse geocode(GeocodeRequest geocodeRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, GeoPlacesException Geocode
converts a textual address or place into geographic coordinates. You can obtain geographic coordinates, address component, and other related information. It supports flexible queries, including free-form text or structured queries with components like street names, postal codes, and regions. The Geocode API can also provide additional features such as time zone information and the inclusion of political views.- Parameters:
geocodeRequest
-- Returns:
- Result of the Geocode operation returned by the service.
- See Also:
-
geocode
default GeocodeResponse geocode(Consumer<GeocodeRequest.Builder> geocodeRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, GeoPlacesException Geocode
converts a textual address or place into geographic coordinates. You can obtain geographic coordinates, address component, and other related information. It supports flexible queries, including free-form text or structured queries with components like street names, postal codes, and regions. The Geocode API can also provide additional features such as time zone information and the inclusion of political views.
This is a convenience which creates an instance of the
GeocodeRequest.Builder
avoiding the need to create one manually viaGeocodeRequest.builder()
- Parameters:
geocodeRequest
- AConsumer
that will call methods onGeocodeRequest.Builder
to create a request.- Returns:
- Result of the Geocode operation returned by the service.
- See Also:
-
getPlace
default GetPlaceResponse getPlace(GetPlaceRequest getPlaceRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, GeoPlacesException GetPlace
finds a place by its unique ID. APlaceId
is returned by other place operations.- Parameters:
getPlaceRequest
-- Returns:
- Result of the GetPlace operation returned by the service.
- See Also:
-
getPlace
default GetPlaceResponse getPlace(Consumer<GetPlaceRequest.Builder> getPlaceRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, GeoPlacesException GetPlace
finds a place by its unique ID. APlaceId
is returned by other place operations.
This is a convenience which creates an instance of the
GetPlaceRequest.Builder
avoiding the need to create one manually viaGetPlaceRequest.builder()
- Parameters:
getPlaceRequest
- AConsumer
that will call methods onGetPlaceRequest.Builder
to create a request.- Returns:
- Result of the GetPlace operation returned by the service.
- See Also:
-
reverseGeocode
default ReverseGeocodeResponse reverseGeocode(ReverseGeocodeRequest reverseGeocodeRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, GeoPlacesException ReverseGeocode
converts geographic coordinates into a human-readable address or place. You can obtain address component, and other related information such as place type, category, street information. The Reverse Geocode API supports filtering to on place type so that you can refine result based on your need. Also, The Reverse Geocode API can also provide additional features such as time zone information and the inclusion of political views.- Parameters:
reverseGeocodeRequest
-- Returns:
- Result of the ReverseGeocode operation returned by the service.
- See Also:
-
reverseGeocode
default ReverseGeocodeResponse reverseGeocode(Consumer<ReverseGeocodeRequest.Builder> reverseGeocodeRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, GeoPlacesException ReverseGeocode
converts geographic coordinates into a human-readable address or place. You can obtain address component, and other related information such as place type, category, street information. The Reverse Geocode API supports filtering to on place type so that you can refine result based on your need. Also, The Reverse Geocode API can also provide additional features such as time zone information and the inclusion of political views.
This is a convenience which creates an instance of the
ReverseGeocodeRequest.Builder
avoiding the need to create one manually viaReverseGeocodeRequest.builder()
- Parameters:
reverseGeocodeRequest
- AConsumer
that will call methods onReverseGeocodeRequest.Builder
to create a request.- Returns:
- Result of the ReverseGeocode operation returned by the service.
- See Also:
-
searchNearby
default SearchNearbyResponse searchNearby(SearchNearbyRequest searchNearbyRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, GeoPlacesException SearchNearby
queries for points of interest within a radius from a central coordinates, returning place results with optional filters such as categories, business chains, food types and more. The API returns details such as a place name, address, phone, category, food type, contact, opening hours. Also, the API can return phonemes, time zones and more based on requested parameters.- Parameters:
searchNearbyRequest
-- Returns:
- Result of the SearchNearby operation returned by the service.
- See Also:
-
searchNearby
default SearchNearbyResponse searchNearby(Consumer<SearchNearbyRequest.Builder> searchNearbyRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, GeoPlacesException SearchNearby
queries for points of interest within a radius from a central coordinates, returning place results with optional filters such as categories, business chains, food types and more. The API returns details such as a place name, address, phone, category, food type, contact, opening hours. Also, the API can return phonemes, time zones and more based on requested parameters.
This is a convenience which creates an instance of the
SearchNearbyRequest.Builder
avoiding the need to create one manually viaSearchNearbyRequest.builder()
- Parameters:
searchNearbyRequest
- AConsumer
that will call methods onSearchNearbyRequest.Builder
to create a request.- Returns:
- Result of the SearchNearby operation returned by the service.
- See Also:
-
searchText
default SearchTextResponse searchText(SearchTextRequest searchTextRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, GeoPlacesException SearchText
searches for geocode and place information. You can then complete a follow-up query suggested from theSuggest
API via a query id.- Parameters:
searchTextRequest
-- Returns:
- Result of the SearchText operation returned by the service.
- See Also:
-
searchText
default SearchTextResponse searchText(Consumer<SearchTextRequest.Builder> searchTextRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, GeoPlacesException SearchText
searches for geocode and place information. You can then complete a follow-up query suggested from theSuggest
API via a query id.
This is a convenience which creates an instance of the
SearchTextRequest.Builder
avoiding the need to create one manually viaSearchTextRequest.builder()
- Parameters:
searchTextRequest
- AConsumer
that will call methods onSearchTextRequest.Builder
to create a request.- Returns:
- Result of the SearchText operation returned by the service.
- See Also:
-
suggest
default SuggestResponse suggest(SuggestRequest suggestRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, GeoPlacesException Suggest
provides intelligent predictions or recommendations based on the user's input or context, such as relevant places, points of interest, query terms or search category. It is designed to help users find places or point of interests candidates or identify a follow on query based on incomplete or misspelled queries. It returns a list of possible matches or refinements that can be used to formulate a more accurate query. Users can select the most appropriate suggestion and use it for further searching. The API provides options for filtering results by location and other attributes, and allows for additional features like phonemes and timezones. The response includes refined query terms and detailed place information.- Parameters:
suggestRequest
-- Returns:
- Result of the Suggest operation returned by the service.
- See Also:
-
suggest
default SuggestResponse suggest(Consumer<SuggestRequest.Builder> suggestRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, GeoPlacesException Suggest
provides intelligent predictions or recommendations based on the user's input or context, such as relevant places, points of interest, query terms or search category. It is designed to help users find places or point of interests candidates or identify a follow on query based on incomplete or misspelled queries. It returns a list of possible matches or refinements that can be used to formulate a more accurate query. Users can select the most appropriate suggestion and use it for further searching. The API provides options for filtering results by location and other attributes, and allows for additional features like phonemes and timezones. The response includes refined query terms and detailed place information.
This is a convenience which creates an instance of the
SuggestRequest.Builder
avoiding the need to create one manually viaSuggestRequest.builder()
- Parameters:
suggestRequest
- AConsumer
that will call methods onSuggestRequest.Builder
to create a request.- Returns:
- Result of the Suggest operation returned by the service.
- See Also:
-
create
Create aGeoPlacesClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aGeoPlacesClient
. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClient
The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfiguration
in interfaceAwsClient
- Specified by:
serviceClientConfiguration
in interfaceSdkClient
- Returns:
- SdkServiceClientConfiguration
-