Interface GeoMapsAsyncClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.The asynchronous client performs non-blocking I/O when configured with any
SdkAsyncHttpClient supported in the SDK. However, full non-blocking is not guaranteed as the async client may
perform blocking calls in some cases such as credentials retrieval and endpoint discovery as part of the async API
call.
Integrate high-quality base map data into your applications using MapLibre. Capabilities include:
-
Access to comprehensive base map data, allowing you to tailor the map display to your specific needs.
-
Multiple pre-designed map styles suited for various application types, such as navigation, logistics, or data visualization.
-
Generation of static map images for scenarios where interactive maps aren't suitable, such as:
-
Embedding in emails or documents
-
Displaying in low-bandwidth environments
-
Creating printable maps
-
Enhancing application performance by reducing client-side rendering
-
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionstatic GeoMapsAsyncClientBuilderbuilder()Create a builder that can be used to configure and create aGeoMapsAsyncClient.static GeoMapsAsyncClientcreate()Create aGeoMapsAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CompletableFuture<GetGlyphsResponse> getGlyphs(Consumer<GetGlyphsRequest.Builder> getGlyphsRequest) GetGlyphsreturns the map's glyphs.default CompletableFuture<GetGlyphsResponse> getGlyphs(GetGlyphsRequest getGlyphsRequest) GetGlyphsreturns the map's glyphs.default CompletableFuture<GetSpritesResponse> getSprites(Consumer<GetSpritesRequest.Builder> getSpritesRequest) GetSpritesreturns the map's sprites.default CompletableFuture<GetSpritesResponse> getSprites(GetSpritesRequest getSpritesRequest) GetSpritesreturns the map's sprites.default CompletableFuture<GetStaticMapResponse> getStaticMap(Consumer<GetStaticMapRequest.Builder> getStaticMapRequest) GetStaticMapprovides high-quality static map images with customizable options.default CompletableFuture<GetStaticMapResponse> getStaticMap(GetStaticMapRequest getStaticMapRequest) GetStaticMapprovides high-quality static map images with customizable options.getStyleDescriptor(Consumer<GetStyleDescriptorRequest.Builder> getStyleDescriptorRequest) GetStyleDescriptorreturns information about the style.getStyleDescriptor(GetStyleDescriptorRequest getStyleDescriptorRequest) GetStyleDescriptorreturns information about the style.default CompletableFuture<GetTileResponse> getTile(Consumer<GetTileRequest.Builder> getTileRequest) GetTilereturns a tile.default CompletableFuture<GetTileResponse> getTile(GetTileRequest getTileRequest) GetTilereturns a tile.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
closeMethods 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
-
getGlyphs
GetGlyphsreturns the map's glyphs.For more information, see Style labels with glyphs in the Amazon Location Service Developer Guide.
- Parameters:
getGlyphsRequest-- Returns:
- A Java Future containing the result of the GetGlyphs operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- 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.
- GeoMapsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getGlyphs
default CompletableFuture<GetGlyphsResponse> getGlyphs(Consumer<GetGlyphsRequest.Builder> getGlyphsRequest) GetGlyphsreturns the map's glyphs.For more information, see Style labels with glyphs in the Amazon Location Service Developer Guide.
This is a convenience which creates an instance of the
GetGlyphsRequest.Builderavoiding the need to create one manually viaGetGlyphsRequest.builder()- Parameters:
getGlyphsRequest- AConsumerthat will call methods onGetGlyphsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetGlyphs operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- 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.
- GeoMapsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getSprites
GetSpritesreturns the map's sprites.For more information, see Style iconography with sprites in the Amazon Location Service Developer Guide.
- Parameters:
getSpritesRequest-- Returns:
- A Java Future containing the result of the GetSprites operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- 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.
- GeoMapsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getSprites
default CompletableFuture<GetSpritesResponse> getSprites(Consumer<GetSpritesRequest.Builder> getSpritesRequest) GetSpritesreturns the map's sprites.For more information, see Style iconography with sprites in the Amazon Location Service Developer Guide.
This is a convenience which creates an instance of the
GetSpritesRequest.Builderavoiding the need to create one manually viaGetSpritesRequest.builder()- Parameters:
getSpritesRequest- AConsumerthat will call methods onGetSpritesRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetSprites operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- 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.
- GeoMapsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getStaticMap
default CompletableFuture<GetStaticMapResponse> getStaticMap(GetStaticMapRequest getStaticMapRequest) GetStaticMapprovides high-quality static map images with customizable options. You can modify the map's appearance and overlay additional information. It's an ideal solution for applications requiring tailored static map snapshots.For more information, see the following topics in the Amazon Location Service Developer Guide:
- Parameters:
getStaticMapRequest-- Returns:
- A Java Future containing the result of the GetStaticMap operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException The request processing has failed because of an unknown error, exception or failure.
- AccessDeniedException The request was denied because of insufficient access or permissions. Check with an administrator to verify your permissions.
- 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.
- GeoMapsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getStaticMap
default CompletableFuture<GetStaticMapResponse> getStaticMap(Consumer<GetStaticMapRequest.Builder> getStaticMapRequest) GetStaticMapprovides high-quality static map images with customizable options. You can modify the map's appearance and overlay additional information. It's an ideal solution for applications requiring tailored static map snapshots.For more information, see the following topics in the Amazon Location Service Developer Guide:
This is a convenience which creates an instance of the
GetStaticMapRequest.Builderavoiding the need to create one manually viaGetStaticMapRequest.builder()- Parameters:
getStaticMapRequest- AConsumerthat will call methods onGetStaticMapRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetStaticMap operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException The request processing has failed because of an unknown error, exception or failure.
- AccessDeniedException The request was denied because of insufficient access or permissions. Check with an administrator to verify your permissions.
- 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.
- GeoMapsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getStyleDescriptor
default CompletableFuture<GetStyleDescriptorResponse> getStyleDescriptor(GetStyleDescriptorRequest getStyleDescriptorRequest) GetStyleDescriptorreturns information about the style.For more information, see Style dynamic maps in the Amazon Location Service Developer Guide.
- Parameters:
getStyleDescriptorRequest-- Returns:
- A Java Future containing the result of the GetStyleDescriptor operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- 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.
- GeoMapsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getStyleDescriptor
default CompletableFuture<GetStyleDescriptorResponse> getStyleDescriptor(Consumer<GetStyleDescriptorRequest.Builder> getStyleDescriptorRequest) GetStyleDescriptorreturns information about the style.For more information, see Style dynamic maps in the Amazon Location Service Developer Guide.
This is a convenience which creates an instance of the
GetStyleDescriptorRequest.Builderavoiding the need to create one manually viaGetStyleDescriptorRequest.builder()- Parameters:
getStyleDescriptorRequest- AConsumerthat will call methods onGetStyleDescriptorRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetStyleDescriptor operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- 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.
- GeoMapsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getTile
GetTilereturns a tile. 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.For more information, see Tiles in the Amazon Location Service Developer Guide.
- Parameters:
getTileRequest-- Returns:
- A Java Future containing the result of the GetTile operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException The request processing has failed because of an unknown error, exception or failure.
- ResourceNotFoundException Exception thrown when the associated resource could not be found.
- AccessDeniedException The request was denied because of insufficient access or permissions. Check with an administrator to verify your permissions.
- 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.
- GeoMapsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getTile
GetTilereturns a tile. 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.For more information, see Tiles in the Amazon Location Service Developer Guide.
This is a convenience which creates an instance of the
GetTileRequest.Builderavoiding the need to create one manually viaGetTileRequest.builder()- Parameters:
getTileRequest- AConsumerthat will call methods onGetTileRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetTile operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerException The request processing has failed because of an unknown error, exception or failure.
- ResourceNotFoundException Exception thrown when the associated resource could not be found.
- AccessDeniedException The request was denied because of insufficient access or permissions. Check with an administrator to verify your permissions.
- 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.
- GeoMapsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
serviceClientConfiguration
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-
create
Create aGeoMapsAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aGeoMapsAsyncClient.
-