public class AmazonLocationClient extends AmazonWebServiceClient implements AmazonLocation
Suite of geospatial services including Maps, Places, Tracking, and Geofencing
LOGGING_AWS_REQUEST_METRIC
Constructor and Description |
---|
AmazonLocationClient()
Deprecated.
|
AmazonLocationClient(AWSCredentials awsCredentials)
Constructs a new client to invoke service methods on AmazonLocation using
the specified AWS account credentials.
|
AmazonLocationClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on AmazonLocation using
the specified AWS account credentials and client configuration options.
|
AmazonLocationClient(AWSCredentialsProvider awsCredentialsProvider)
Constructs a new client to invoke service methods on AmazonLocation using
the specified AWS account credentials provider.
|
AmazonLocationClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on AmazonLocation using
the specified AWS account credentials provider and client configuration
options.
|
AmazonLocationClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
HttpClient httpClient)
Constructs a new client to invoke service methods on AmazonLocation using
the specified AWS account credentials provider, client configuration
options and request metric collector.
|
AmazonLocationClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
com.amazonaws.metrics.RequestMetricCollector requestMetricCollector)
Deprecated.
|
AmazonLocationClient(ClientConfiguration clientConfiguration)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
AssociateTrackerConsumerResult |
associateTrackerConsumer(AssociateTrackerConsumerRequest associateTrackerConsumerRequest)
Creates an association between a geofence collection and a tracker
resource.
|
BatchDeleteGeofenceResult |
batchDeleteGeofence(BatchDeleteGeofenceRequest batchDeleteGeofenceRequest)
Deletes a batch of geofences from a geofence collection.
|
BatchEvaluateGeofencesResult |
batchEvaluateGeofences(BatchEvaluateGeofencesRequest batchEvaluateGeofencesRequest)
Used in geofence monitoring.
|
BatchGetDevicePositionResult |
batchGetDevicePosition(BatchGetDevicePositionRequest batchGetDevicePositionRequest)
A batch request to retrieve device positions.
|
BatchPutGeofenceResult |
batchPutGeofence(BatchPutGeofenceRequest batchPutGeofenceRequest)
A batch request for storing geofences into a given geofence collection.
|
BatchUpdateDevicePositionResult |
batchUpdateDevicePosition(BatchUpdateDevicePositionRequest batchUpdateDevicePositionRequest)
Uploads a position update for one or more devices to a tracker resource.
|
CreateGeofenceCollectionResult |
createGeofenceCollection(CreateGeofenceCollectionRequest createGeofenceCollectionRequest)
Creates a geofence collection, which manages and stores geofences.
|
CreateMapResult |
createMap(CreateMapRequest createMapRequest)
Creates a map resource in your AWS account, which provides map tiles of
different styles sourced from global location data providers.
|
CreatePlaceIndexResult |
createPlaceIndex(CreatePlaceIndexRequest createPlaceIndexRequest)
Creates a Place index resource in your AWS account, which supports Places
functions with geospatial data sourced from your chosen data provider.
|
CreateTrackerResult |
createTracker(CreateTrackerRequest createTrackerRequest)
Creates a tracker resource in your AWS account, which lets you retrieve
current and historical location of devices.
|
DeleteGeofenceCollectionResult |
deleteGeofenceCollection(DeleteGeofenceCollectionRequest deleteGeofenceCollectionRequest)
Deletes a geofence collection from your AWS account.
|
DeleteMapResult |
deleteMap(DeleteMapRequest deleteMapRequest)
Deletes a map resource from your AWS account.
|
DeletePlaceIndexResult |
deletePlaceIndex(DeletePlaceIndexRequest deletePlaceIndexRequest)
Deletes a Place index resource from your AWS account.
|
DeleteTrackerResult |
deleteTracker(DeleteTrackerRequest deleteTrackerRequest)
Deletes a tracker resource from your AWS account.
|
DescribeGeofenceCollectionResult |
describeGeofenceCollection(DescribeGeofenceCollectionRequest describeGeofenceCollectionRequest)
Retrieves the geofence collection details.
|
DescribeMapResult |
describeMap(DescribeMapRequest describeMapRequest)
Retrieves the map resource details.
|
DescribePlaceIndexResult |
describePlaceIndex(DescribePlaceIndexRequest describePlaceIndexRequest)
Retrieves the Place index resource details.
|
DescribeTrackerResult |
describeTracker(DescribeTrackerRequest describeTrackerRequest)
Retrieves the tracker resource details.
|
DisassociateTrackerConsumerResult |
disassociateTrackerConsumer(DisassociateTrackerConsumerRequest disassociateTrackerConsumerRequest)
Removes the association bewteen a tracker resource and a geofence
collection.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Deprecated.
ResponseMetadata cache can hold up to 50 requests and
responses in memory and will cause memory issue. This method
now always returns null.
|
GetDevicePositionResult |
getDevicePosition(GetDevicePositionRequest getDevicePositionRequest)
Retrieves the latest device position.
|
GetDevicePositionHistoryResult |
getDevicePositionHistory(GetDevicePositionHistoryRequest getDevicePositionHistoryRequest)
Retrieves the device position history from a tracker resource within a
specified range of time.
|
GetGeofenceResult |
getGeofence(GetGeofenceRequest getGeofenceRequest)
Retrieves the geofence details from a geofence collection.
|
GetMapGlyphsResult |
getMapGlyphs(GetMapGlyphsRequest getMapGlyphsRequest)
Retrieves glyphs used to display labels on a map.
|
GetMapSpritesResult |
getMapSprites(GetMapSpritesRequest getMapSpritesRequest)
Retrieves the sprite sheet corresponding to a map resource.
|
GetMapStyleDescriptorResult |
getMapStyleDescriptor(GetMapStyleDescriptorRequest getMapStyleDescriptorRequest)
Retrieves the map style descriptor from a map resource.
|
GetMapTileResult |
getMapTile(GetMapTileRequest getMapTileRequest)
Retrieves a vector data tile from the map resource.
|
ListGeofenceCollectionsResult |
listGeofenceCollections(ListGeofenceCollectionsRequest listGeofenceCollectionsRequest)
Lists geofence collections in your AWS account.
|
ListGeofencesResult |
listGeofences(ListGeofencesRequest listGeofencesRequest)
Lists geofences stored in a given geofence collection.
|
ListMapsResult |
listMaps(ListMapsRequest listMapsRequest)
Lists map resources in your AWS account.
|
ListPlaceIndexesResult |
listPlaceIndexes(ListPlaceIndexesRequest listPlaceIndexesRequest)
Lists Place index resources in your AWS account.
|
ListTrackerConsumersResult |
listTrackerConsumers(ListTrackerConsumersRequest listTrackerConsumersRequest)
Lists geofence collections currently associated to the given tracker
resource.
|
ListTrackersResult |
listTrackers(ListTrackersRequest listTrackersRequest)
Lists tracker resources in your AWS account.
|
PutGeofenceResult |
putGeofence(PutGeofenceRequest putGeofenceRequest)
Stores a geofence to a given geofence collection, or updates the geometry
of an existing geofence if a geofence ID is included in the request.
|
SearchPlaceIndexForPositionResult |
searchPlaceIndexForPosition(SearchPlaceIndexForPositionRequest searchPlaceIndexForPositionRequest)
Reverse geocodes a given coordinate and returns a legible address.
|
SearchPlaceIndexForTextResult |
searchPlaceIndexForText(SearchPlaceIndexForTextRequest searchPlaceIndexForTextRequest)
Geocodes free-form text, such as an address, name, city, or region to
allow you to search for Places or points of interest.
|
addRequestHandler, addRequestHandler, getEndpoint, getEndpointPrefix, getRegions, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerRegionOverride, getTimeOffset, removeRequestHandler, removeRequestHandler, setConfiguration, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, shutdown, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setEndpoint, setRegion, shutdown
@Deprecated public AmazonLocationClient()
All service calls made using this new client object are blocking, and will not return until the service call completes.
DefaultAWSCredentialsProviderChain
@Deprecated public AmazonLocationClient(ClientConfiguration clientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
clientConfiguration
- The client configuration options controlling
how this client connects to AmazonLocation (ex: proxy
settings, retry counts, etc.).DefaultAWSCredentialsProviderChain
public AmazonLocationClient(AWSCredentials awsCredentials)
The client requests are authenticated using the AWSCredentials
provided in this constructor. Static AWSCredentials can be passed for
quick testing. However, it is strongly recommended to use Amazon Cognito
vended temporary credentials for use in production. This can be achieved
by using AWSMobileClient
. Please see
https://aws-amplify.github.io/docs/android/authentication for
instructions on how to enable AWSMobileClient
.
AWSMobileClient.getInstance().initialize(getApplicationContext(), new Callback<UserStateDetails>() { @Override public void onResult(final UserStateDetails details) { AmazonLocationClient client = new AmazonLocationClient(AWSMobileClient.getInstance()); } @Override public void onError(final Exception e) { e.printStackTrace(); } });
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentials
- The AWS credentials (access key ID and secret key)
to use when authenticating with AWS services.public AmazonLocationClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration)
The client requests are authenticated using the AWSCredentials
provided in this constructor. Static AWSCredentials can be passed for
quick testing. However, it is strongly recommended to use Amazon Cognito
vended temporary credentials for use in production. This can be achieved
by using AWSMobileClient
. Please see
https://aws-amplify.github.io/docs/android/authentication for
instructions on how to enable AWSMobileClient
.
AWSMobileClient.getInstance().initialize(getApplicationContext(), new Callback<UserStateDetails>() { @Override public void onResult(final UserStateDetails details) { AmazonLocationClient client = new AmazonLocationClient(AWSMobileClient.getInstance()); } @Override public void onError(final Exception e) { e.printStackTrace(); } });
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentials
- The AWS credentials (access key ID and secret key)
to use when authenticating with AWS services.clientConfiguration
- The client configuration options controlling
how this client connects to AmazonLocation (ex: proxy
settings, retry counts, etc.).public AmazonLocationClient(AWSCredentialsProvider awsCredentialsProvider)
The client requests are authenticated using the AWSCredentials
provided by the AWSCredentialsProvider
. Static AWSCredentials can
be passed for quick testing. However, it is strongly recommended to use
Amazon Cognito vended temporary credentials for use in production. This
can be achieved by using AWSMobileClient
. Please see
https://aws-amplify.github.io/docs/android/authentication for
instructions on how to enable AWSMobileClient
.
AWSMobileClient.getInstance().initialize(getApplicationContext(), new Callback<UserStateDetails>() { @Override public void onResult(final UserStateDetails details) { AmazonLocationClient client = new AmazonLocationClient(AWSMobileClient.getInstance()); } @Override public void onError(final Exception e) { e.printStackTrace(); } });
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider
- The AWS credentials provider which will
provide credentials to authenticate requests with AWS
services.public AmazonLocationClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
The client requests are authenticated using the AWSCredentials
provided by the AWSCredentialsProvider
. Static AWSCredentials can
be passed for quick testing. However, it is strongly recommended to use
Amazon Cognito vended temporary credentials for use in production. This
can be achieved by using AWSMobileClient
. Please see
https://aws-amplify.github.io/docs/android/authentication for
instructions on how to enable AWSMobileClient
.
AWSMobileClient.getInstance().initialize(getApplicationContext(), new Callback<UserStateDetails>() { @Override public void onResult(final UserStateDetails details) { AmazonLocationClient client = new AmazonLocationClient(AWSMobileClient.getInstance()); } @Override public void onError(final Exception e) { e.printStackTrace(); } });
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider
- The AWS credentials provider which will
provide credentials to authenticate requests with AWS
services.clientConfiguration
- The client configuration options controlling
how this client connects to AmazonLocation (ex: proxy
settings, retry counts, etc.).@Deprecated public AmazonLocationClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, com.amazonaws.metrics.RequestMetricCollector requestMetricCollector)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider
- The AWS credentials provider which will
provide credentials to authenticate requests with AWS
services.clientConfiguration
- The client configuration options controlling
how this client connects to AmazonLocation (ex: proxy
settings, retry counts, etc.).requestMetricCollector
- optional request metric collectorpublic AmazonLocationClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, HttpClient httpClient)
The client requests are authenticated using the AWSCredentials
provided by the AWSCredentialsProvider
. Static AWSCredentials can
be passed for quick testing. However, it is strongly recommended to use
Amazon Cognito vended temporary credentials for use in production. This
can be achieved by using AWSMobileClient
. Please see
https://aws-amplify.github.io/docs/android/authentication for
instructions on how to enable AWSMobileClient
.
AWSMobileClient.getInstance().initialize(getApplicationContext(), new Callback<UserStateDetails>() { @Override public void onResult(final UserStateDetails details) { AmazonLocationClient client = new AmazonLocationClient(AWSMobileClient.getInstance()); } @Override public void onError(final Exception e) { e.printStackTrace(); } });
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider
- The AWS credentials provider which will
provide credentials to authenticate requests with AWS
services.clientConfiguration
- The client configuration options controlling
how this client connects to AmazonLocation (ex: proxy
settings, retry counts, etc.).httpClient
- A http clientpublic AssociateTrackerConsumerResult associateTrackerConsumer(AssociateTrackerConsumerRequest associateTrackerConsumerRequest) throws AmazonServiceException, AmazonClientException
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.
associateTrackerConsumer
in interface AmazonLocation
associateTrackerConsumerRequest
- InternalServerException
ResourceNotFoundException
ConflictException
AccessDeniedException
ValidationException
ThrottlingException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by AWS
Location service indicating either a problem with the data in
the request, or a server side issue.public BatchDeleteGeofenceResult batchDeleteGeofence(BatchDeleteGeofenceRequest batchDeleteGeofenceRequest) throws AmazonServiceException, AmazonClientException
Deletes a batch of geofences from a geofence collection.
This action deletes the resource permanently. You can't undo this action.
batchDeleteGeofence
in interface AmazonLocation
batchDeleteGeofenceRequest
- InternalServerException
ResourceNotFoundException
AccessDeniedException
ValidationException
ThrottlingException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by AWS
Location service indicating either a problem with the data in
the request, or a server side issue.public BatchEvaluateGeofencesResult batchEvaluateGeofences(BatchEvaluateGeofencesRequest batchEvaluateGeofencesRequest) throws AmazonServiceException, AmazonClientException
Used in geofence monitoring. Evaluates device positions against the position of geofences in a given geofence collection.
batchEvaluateGeofences
in interface AmazonLocation
batchEvaluateGeofencesRequest
- InternalServerException
ResourceNotFoundException
AccessDeniedException
ValidationException
ThrottlingException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by AWS
Location service indicating either a problem with the data in
the request, or a server side issue.public BatchGetDevicePositionResult batchGetDevicePosition(BatchGetDevicePositionRequest batchGetDevicePositionRequest) throws AmazonServiceException, AmazonClientException
A batch request to retrieve device positions.
The response will return the device positions from the last 24 hours.
batchGetDevicePosition
in interface AmazonLocation
batchGetDevicePositionRequest
- InternalServerException
ResourceNotFoundException
AccessDeniedException
ValidationException
ThrottlingException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by AWS
Location service indicating either a problem with the data in
the request, or a server side issue.public BatchPutGeofenceResult batchPutGeofence(BatchPutGeofenceRequest batchPutGeofenceRequest) throws AmazonServiceException, AmazonClientException
A batch request for storing geofences into a given geofence collection.
batchPutGeofence
in interface AmazonLocation
batchPutGeofenceRequest
- InternalServerException
ResourceNotFoundException
AccessDeniedException
ValidationException
ThrottlingException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by AWS
Location service indicating either a problem with the data in
the request, or a server side issue.public BatchUpdateDevicePositionResult batchUpdateDevicePosition(BatchUpdateDevicePositionRequest batchUpdateDevicePositionRequest) throws AmazonServiceException, AmazonClientException
Uploads a position update for one or more devices to a tracker resource. The data is used for API queries requesting the device position and position history.
Limitation — Location data is sampled at a fixed rate of 1 position per 30 second interval, and retained for 1 year before it is deleted.
batchUpdateDevicePosition
in interface AmazonLocation
batchUpdateDevicePositionRequest
- InternalServerException
ResourceNotFoundException
AccessDeniedException
ValidationException
ThrottlingException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by AWS
Location service indicating either a problem with the data in
the request, or a server side issue.public CreateGeofenceCollectionResult createGeofenceCollection(CreateGeofenceCollectionRequest createGeofenceCollectionRequest) throws AmazonServiceException, AmazonClientException
Creates a geofence collection, which manages and stores geofences.
createGeofenceCollection
in interface AmazonLocation
createGeofenceCollectionRequest
- InternalServerException
ConflictException
AccessDeniedException
ValidationException
ThrottlingException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by AWS
Location service indicating either a problem with the data in
the request, or a server side issue.public CreateMapResult createMap(CreateMapRequest createMapRequest) throws AmazonServiceException, AmazonClientException
Creates a map resource in your AWS account, which provides map tiles of different styles sourced from global location data providers.
By using Maps, you agree that AWS may transmit your API queries to your selected third party provider for processing, which may be outside the AWS region you are currently using. For more information, see the AWS Service Terms for Amazon Location Service.
createMap
in interface AmazonLocation
createMapRequest
- InternalServerException
ConflictException
AccessDeniedException
ValidationException
ThrottlingException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by AWS
Location service indicating either a problem with the data in
the request, or a server side issue.public CreatePlaceIndexResult createPlaceIndex(CreatePlaceIndexRequest createPlaceIndexRequest) throws AmazonServiceException, AmazonClientException
Creates a Place index resource in your AWS account, which supports Places functions with geospatial data sourced from your chosen data provider.
By using Places, you agree that AWS may transmit your API queries to your selected third party provider for processing, which may be outside the AWS region you are currently using.
Because of licensing limitations, you may not use HERE to store results for locations in Japan. For more information, see the AWS Service Terms for Amazon Location Service.
createPlaceIndex
in interface AmazonLocation
createPlaceIndexRequest
- InternalServerException
ConflictException
AccessDeniedException
ValidationException
ThrottlingException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by AWS
Location service indicating either a problem with the data in
the request, or a server side issue.public CreateTrackerResult createTracker(CreateTrackerRequest createTrackerRequest) throws AmazonServiceException, AmazonClientException
Creates a tracker resource in your AWS account, which lets you retrieve current and historical location of devices.
createTracker
in interface AmazonLocation
createTrackerRequest
- InternalServerException
ConflictException
AccessDeniedException
ValidationException
ThrottlingException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by AWS
Location service indicating either a problem with the data in
the request, or a server side issue.public DeleteGeofenceCollectionResult deleteGeofenceCollection(DeleteGeofenceCollectionRequest deleteGeofenceCollectionRequest) throws AmazonServiceException, AmazonClientException
Deletes a geofence collection from your AWS account.
This action deletes the resource permanently. You can't undo this action. If the geofence collection is the target of a tracker resource, the devices will no longer be monitored.
deleteGeofenceCollection
in interface AmazonLocation
deleteGeofenceCollectionRequest
- InternalServerException
ResourceNotFoundException
AccessDeniedException
ValidationException
ThrottlingException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by AWS
Location service indicating either a problem with the data in
the request, or a server side issue.public DeleteMapResult deleteMap(DeleteMapRequest deleteMapRequest) throws AmazonServiceException, AmazonClientException
Deletes a map resource from your AWS account.
This action deletes the resource permanently. You cannot undo this action. If the map is being used in an application, the map may not render.
deleteMap
in interface AmazonLocation
deleteMapRequest
- InternalServerException
ResourceNotFoundException
AccessDeniedException
ValidationException
ThrottlingException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by AWS
Location service indicating either a problem with the data in
the request, or a server side issue.public DeletePlaceIndexResult deletePlaceIndex(DeletePlaceIndexRequest deletePlaceIndexRequest) throws AmazonServiceException, AmazonClientException
Deletes a Place index resource from your AWS account.
This action deletes the resource permanently. You cannot undo this action.
deletePlaceIndex
in interface AmazonLocation
deletePlaceIndexRequest
- InternalServerException
ResourceNotFoundException
AccessDeniedException
ValidationException
ThrottlingException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by AWS
Location service indicating either a problem with the data in
the request, or a server side issue.public DeleteTrackerResult deleteTracker(DeleteTrackerRequest deleteTrackerRequest) throws AmazonServiceException, AmazonClientException
Deletes a tracker resource from your AWS account.
This action deletes the resource permanently. You can't undo this action. If the tracker resource is in use, you may encounter an error. Make sure that the target resource is not a dependency for your applications.
deleteTracker
in interface AmazonLocation
deleteTrackerRequest
- InternalServerException
ResourceNotFoundException
AccessDeniedException
ValidationException
ThrottlingException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by AWS
Location service indicating either a problem with the data in
the request, or a server side issue.public DescribeGeofenceCollectionResult describeGeofenceCollection(DescribeGeofenceCollectionRequest describeGeofenceCollectionRequest) throws AmazonServiceException, AmazonClientException
Retrieves the geofence collection details.
describeGeofenceCollection
in interface AmazonLocation
describeGeofenceCollectionRequest
- InternalServerException
ResourceNotFoundException
AccessDeniedException
ValidationException
ThrottlingException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by AWS
Location service indicating either a problem with the data in
the request, or a server side issue.public DescribeMapResult describeMap(DescribeMapRequest describeMapRequest) throws AmazonServiceException, AmazonClientException
Retrieves the map resource details.
describeMap
in interface AmazonLocation
describeMapRequest
- InternalServerException
ResourceNotFoundException
AccessDeniedException
ValidationException
ThrottlingException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by AWS
Location service indicating either a problem with the data in
the request, or a server side issue.public DescribePlaceIndexResult describePlaceIndex(DescribePlaceIndexRequest describePlaceIndexRequest) throws AmazonServiceException, AmazonClientException
Retrieves the Place index resource details.
describePlaceIndex
in interface AmazonLocation
describePlaceIndexRequest
- InternalServerException
ResourceNotFoundException
AccessDeniedException
ValidationException
ThrottlingException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by AWS
Location service indicating either a problem with the data in
the request, or a server side issue.public DescribeTrackerResult describeTracker(DescribeTrackerRequest describeTrackerRequest) throws AmazonServiceException, AmazonClientException
Retrieves the tracker resource details.
describeTracker
in interface AmazonLocation
describeTrackerRequest
- InternalServerException
ResourceNotFoundException
AccessDeniedException
ValidationException
ThrottlingException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by AWS
Location service indicating either a problem with the data in
the request, or a server side issue.public DisassociateTrackerConsumerResult disassociateTrackerConsumer(DisassociateTrackerConsumerRequest disassociateTrackerConsumerRequest) throws AmazonServiceException, AmazonClientException
Removes the association bewteen a tracker resource and a geofence collection.
Once you unlink a tracker resource from a geofence collection, the tracker positions will no longer be automatically evaluated against geofences.
disassociateTrackerConsumer
in interface AmazonLocation
disassociateTrackerConsumerRequest
- InternalServerException
ResourceNotFoundException
AccessDeniedException
ValidationException
ThrottlingException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by AWS
Location service indicating either a problem with the data in
the request, or a server side issue.public GetDevicePositionResult getDevicePosition(GetDevicePositionRequest getDevicePositionRequest) throws AmazonServiceException, AmazonClientException
Retrieves the latest device position.
Limitation — Device positions are deleted after one year.
getDevicePosition
in interface AmazonLocation
getDevicePositionRequest
- InternalServerException
ResourceNotFoundException
AccessDeniedException
ValidationException
ThrottlingException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by AWS
Location service indicating either a problem with the data in
the request, or a server side issue.public GetDevicePositionHistoryResult getDevicePositionHistory(GetDevicePositionHistoryRequest getDevicePositionHistoryRequest) throws AmazonServiceException, AmazonClientException
Retrieves the device position history from a tracker resource within a specified range of time.
Limitation — Device positions are deleted after one year.
getDevicePositionHistory
in interface AmazonLocation
getDevicePositionHistoryRequest
- InternalServerException
ResourceNotFoundException
AccessDeniedException
ValidationException
ThrottlingException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by AWS
Location service indicating either a problem with the data in
the request, or a server side issue.public GetGeofenceResult getGeofence(GetGeofenceRequest getGeofenceRequest) throws AmazonServiceException, AmazonClientException
Retrieves the geofence details from a geofence collection.
getGeofence
in interface AmazonLocation
getGeofenceRequest
- InternalServerException
ResourceNotFoundException
AccessDeniedException
ValidationException
ThrottlingException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by AWS
Location service indicating either a problem with the data in
the request, or a server side issue.public GetMapGlyphsResult getMapGlyphs(GetMapGlyphsRequest getMapGlyphsRequest) throws AmazonServiceException, AmazonClientException
Retrieves glyphs used to display labels on a map.
getMapGlyphs
in interface AmazonLocation
getMapGlyphsRequest
- InternalServerException
ResourceNotFoundException
AccessDeniedException
ValidationException
ThrottlingException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by AWS
Location service indicating either a problem with the data in
the request, or a server side issue.public GetMapSpritesResult getMapSprites(GetMapSpritesRequest getMapSpritesRequest) throws AmazonServiceException, AmazonClientException
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.
getMapSprites
in interface AmazonLocation
getMapSpritesRequest
- InternalServerException
ResourceNotFoundException
AccessDeniedException
ValidationException
ThrottlingException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by AWS
Location service indicating either a problem with the data in
the request, or a server side issue.public GetMapStyleDescriptorResult getMapStyleDescriptor(GetMapStyleDescriptorRequest getMapStyleDescriptorRequest) throws AmazonServiceException, AmazonClientException
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.
getMapStyleDescriptor
in interface AmazonLocation
getMapStyleDescriptorRequest
- InternalServerException
ResourceNotFoundException
AccessDeniedException
ValidationException
ThrottlingException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by AWS
Location service indicating either a problem with the data in
the request, or a server side issue.public GetMapTileResult getMapTile(GetMapTileRequest getMapTileRequest) throws AmazonServiceException, AmazonClientException
Retrieves a vector data tile from the map resource. Map tiles are used by clients to render a map. They are 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).
getMapTile
in interface AmazonLocation
getMapTileRequest
- InternalServerException
ResourceNotFoundException
AccessDeniedException
ValidationException
ThrottlingException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by AWS
Location service indicating either a problem with the data in
the request, or a server side issue.public ListGeofenceCollectionsResult listGeofenceCollections(ListGeofenceCollectionsRequest listGeofenceCollectionsRequest) throws AmazonServiceException, AmazonClientException
Lists geofence collections in your AWS account.
listGeofenceCollections
in interface AmazonLocation
listGeofenceCollectionsRequest
- InternalServerException
AccessDeniedException
ValidationException
ThrottlingException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by AWS
Location service indicating either a problem with the data in
the request, or a server side issue.public ListGeofencesResult listGeofences(ListGeofencesRequest listGeofencesRequest) throws AmazonServiceException, AmazonClientException
Lists geofences stored in a given geofence collection.
listGeofences
in interface AmazonLocation
listGeofencesRequest
- InternalServerException
ResourceNotFoundException
AccessDeniedException
ValidationException
ThrottlingException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by AWS
Location service indicating either a problem with the data in
the request, or a server side issue.public ListMapsResult listMaps(ListMapsRequest listMapsRequest) throws AmazonServiceException, AmazonClientException
Lists map resources in your AWS account.
listMaps
in interface AmazonLocation
listMapsRequest
- InternalServerException
AccessDeniedException
ValidationException
ThrottlingException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by AWS
Location service indicating either a problem with the data in
the request, or a server side issue.public ListPlaceIndexesResult listPlaceIndexes(ListPlaceIndexesRequest listPlaceIndexesRequest) throws AmazonServiceException, AmazonClientException
Lists Place index resources in your AWS account.
listPlaceIndexes
in interface AmazonLocation
listPlaceIndexesRequest
- InternalServerException
AccessDeniedException
ValidationException
ThrottlingException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by AWS
Location service indicating either a problem with the data in
the request, or a server side issue.public ListTrackerConsumersResult listTrackerConsumers(ListTrackerConsumersRequest listTrackerConsumersRequest) throws AmazonServiceException, AmazonClientException
Lists geofence collections currently associated to the given tracker resource.
listTrackerConsumers
in interface AmazonLocation
listTrackerConsumersRequest
- InternalServerException
ResourceNotFoundException
AccessDeniedException
ValidationException
ThrottlingException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by AWS
Location service indicating either a problem with the data in
the request, or a server side issue.public ListTrackersResult listTrackers(ListTrackersRequest listTrackersRequest) throws AmazonServiceException, AmazonClientException
Lists tracker resources in your AWS account.
listTrackers
in interface AmazonLocation
listTrackersRequest
- InternalServerException
AccessDeniedException
ValidationException
ThrottlingException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by AWS
Location service indicating either a problem with the data in
the request, or a server side issue.public PutGeofenceResult putGeofence(PutGeofenceRequest putGeofenceRequest) throws AmazonServiceException, AmazonClientException
Stores a geofence to a given geofence collection, or updates the geometry of an existing geofence if a geofence ID is included in the request.
putGeofence
in interface AmazonLocation
putGeofenceRequest
- InternalServerException
ResourceNotFoundException
ConflictException
AccessDeniedException
ValidationException
ThrottlingException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by AWS
Location service indicating either a problem with the data in
the request, or a server side issue.public SearchPlaceIndexForPositionResult searchPlaceIndexForPosition(SearchPlaceIndexForPositionRequest searchPlaceIndexForPositionRequest) throws AmazonServiceException, AmazonClientException
Reverse geocodes a given coordinate and returns a legible address. Allows you to search for Places or points of interest near a given position.
By using Places, you agree that AWS may transmit your API queries to your selected third party provider for processing, which may be outside the AWS region you are currently using.
Because of licensing limitations, you may not use HERE to store results for locations in Japan. For more information, see the AWS Service Terms for Amazon Location Service.
searchPlaceIndexForPosition
in interface AmazonLocation
searchPlaceIndexForPositionRequest
- InternalServerException
ResourceNotFoundException
AccessDeniedException
ValidationException
ThrottlingException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by AWS
Location service indicating either a problem with the data in
the request, or a server side issue.public SearchPlaceIndexForTextResult searchPlaceIndexForText(SearchPlaceIndexForTextRequest searchPlaceIndexForTextRequest) throws AmazonServiceException, AmazonClientException
Geocodes free-form text, such as an address, name, city, or region to allow you to search for Places or points of interest.
Includes the option to apply additional parameters to narrow your list of results.
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.
By using Places, you agree that AWS may transmit your API queries to your selected third party provider for processing, which may be outside the AWS region you are currently using.
Also, when using HERE as your data provider, you may not (a) use HERE
Places for Asset Management, or (b) select the Storage
option for the IntendedUse
parameter when requesting Places
in Japan. For more information, see the AWS Service Terms for
Amazon Location Service.
searchPlaceIndexForText
in interface AmazonLocation
searchPlaceIndexForTextRequest
- InternalServerException
ResourceNotFoundException
AccessDeniedException
ValidationException
ThrottlingException
AmazonClientException
- If any internal errors are encountered
inside the client while attempting to make the request or
handle the response. For example if a network connection is
not available.AmazonServiceException
- If an error response is returned by AWS
Location service indicating either a problem with the data in
the request, or a server side issue.@Deprecated public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing the request.
getCachedResponseMetadata
in interface AmazonLocation
request
- The originally executed requestCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.