Interface GeoRoutesClient
- All Superinterfaces:
AutoCloseable
,AwsClient
,SdkAutoCloseable
,SdkClient
builder()
method.
With the Amazon Location Routes API you can calculate routes and estimate travel time based on up-to-date road network and live traffic information.
Calculate optimal travel routes and estimate travel times using up-to-date road network and traffic data. Key features include:
-
Point-to-point routing with estimated travel time, distance, and turn-by-turn directions
-
Multi-point route optimization to minimize travel time or distance
-
Route matrices for efficient multi-destination planning
-
Isoline calculations to determine reachable areas within specified time or distance thresholds
-
Map-matching to align GPS traces with the road network
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Value for looking up the service's metadata from theServiceMetadataProvider
.static final String
-
Method Summary
Modifier and TypeMethodDescriptionstatic GeoRoutesClientBuilder
builder()
Create a builder that can be used to configure and create aGeoRoutesClient
.default CalculateIsolinesResponse
calculateIsolines
(Consumer<CalculateIsolinesRequest.Builder> calculateIsolinesRequest) Use theCalculateIsolines
action to find service areas that can be reached in a given threshold of time, distance.default CalculateIsolinesResponse
calculateIsolines
(CalculateIsolinesRequest calculateIsolinesRequest) Use theCalculateIsolines
action to find service areas that can be reached in a given threshold of time, distance.default CalculateRouteMatrixResponse
calculateRouteMatrix
(Consumer<CalculateRouteMatrixRequest.Builder> calculateRouteMatrixRequest) UseCalculateRouteMatrix
to compute results for all pairs of Origins to Destinations.default CalculateRouteMatrixResponse
calculateRouteMatrix
(CalculateRouteMatrixRequest calculateRouteMatrixRequest) UseCalculateRouteMatrix
to compute results for all pairs of Origins to Destinations.default CalculateRoutesResponse
calculateRoutes
(Consumer<CalculateRoutesRequest.Builder> calculateRoutesRequest) CalculateRoutes
computes routes given the following required parameters:Origin
andDestination
.default CalculateRoutesResponse
calculateRoutes
(CalculateRoutesRequest calculateRoutesRequest) CalculateRoutes
computes routes given the following required parameters:Origin
andDestination
.static GeoRoutesClient
create()
Create aGeoRoutesClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.default OptimizeWaypointsResponse
optimizeWaypoints
(Consumer<OptimizeWaypointsRequest.Builder> optimizeWaypointsRequest) OptimizeWaypoints
calculates the optimal order to travel between a set of waypoints to minimize either the travel time or the distance travelled during the journey, based on road network restrictions and the traffic pattern data.default OptimizeWaypointsResponse
optimizeWaypoints
(OptimizeWaypointsRequest optimizeWaypointsRequest) OptimizeWaypoints
calculates the optimal order to travel between a set of waypoints to minimize either the travel time or the distance travelled during the journey, based on road network restrictions and the traffic pattern data.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadata
default SnapToRoadsResponse
snapToRoads
(Consumer<SnapToRoadsRequest.Builder> snapToRoadsRequest) SnapToRoads
matches GPS trace to roads most likely traveled on.default SnapToRoadsResponse
snapToRoads
(SnapToRoadsRequest snapToRoadsRequest) SnapToRoads
matches GPS trace to roads most likely traveled on.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
-
calculateIsolines
default CalculateIsolinesResponse calculateIsolines(CalculateIsolinesRequest calculateIsolinesRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, GeoRoutesException Use the
CalculateIsolines
action to find service areas that can be reached in a given threshold of time, distance.- Parameters:
calculateIsolinesRequest
-- Returns:
- Result of the CalculateIsolines operation returned by the service.
- See Also:
-
calculateIsolines
default CalculateIsolinesResponse calculateIsolines(Consumer<CalculateIsolinesRequest.Builder> calculateIsolinesRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, GeoRoutesException Use the
CalculateIsolines
action to find service areas that can be reached in a given threshold of time, distance.
This is a convenience which creates an instance of the
CalculateIsolinesRequest.Builder
avoiding the need to create one manually viaCalculateIsolinesRequest.builder()
- Parameters:
calculateIsolinesRequest
- AConsumer
that will call methods onCalculateIsolinesRequest.Builder
to create a request.- Returns:
- Result of the CalculateIsolines operation returned by the service.
- See Also:
-
calculateRouteMatrix
default CalculateRouteMatrixResponse calculateRouteMatrix(CalculateRouteMatrixRequest calculateRouteMatrixRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, GeoRoutesException Use
CalculateRouteMatrix
to compute results for all pairs of Origins to Destinations. Each row corresponds to one entry in Origins. Each entry in the row corresponds to the route from that entry in Origins to an entry in Destinations positions.- Parameters:
calculateRouteMatrixRequest
-- Returns:
- Result of the CalculateRouteMatrix operation returned by the service.
- See Also:
-
calculateRouteMatrix
default CalculateRouteMatrixResponse calculateRouteMatrix(Consumer<CalculateRouteMatrixRequest.Builder> calculateRouteMatrixRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, GeoRoutesException Use
CalculateRouteMatrix
to compute results for all pairs of Origins to Destinations. Each row corresponds to one entry in Origins. Each entry in the row corresponds to the route from that entry in Origins to an entry in Destinations positions.
This is a convenience which creates an instance of the
CalculateRouteMatrixRequest.Builder
avoiding the need to create one manually viaCalculateRouteMatrixRequest.builder()
- Parameters:
calculateRouteMatrixRequest
- AConsumer
that will call methods onCalculateRouteMatrixRequest.Builder
to create a request.- Returns:
- Result of the CalculateRouteMatrix operation returned by the service.
- See Also:
-
calculateRoutes
default CalculateRoutesResponse calculateRoutes(CalculateRoutesRequest calculateRoutesRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, GeoRoutesException CalculateRoutes
computes routes given the following required parameters:Origin
andDestination
.- Parameters:
calculateRoutesRequest
-- Returns:
- Result of the CalculateRoutes operation returned by the service.
- See Also:
-
calculateRoutes
default CalculateRoutesResponse calculateRoutes(Consumer<CalculateRoutesRequest.Builder> calculateRoutesRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, GeoRoutesException CalculateRoutes
computes routes given the following required parameters:Origin
andDestination
.
This is a convenience which creates an instance of the
CalculateRoutesRequest.Builder
avoiding the need to create one manually viaCalculateRoutesRequest.builder()
- Parameters:
calculateRoutesRequest
- AConsumer
that will call methods onCalculateRoutesRequest.Builder
to create a request.- Returns:
- Result of the CalculateRoutes operation returned by the service.
- See Also:
-
optimizeWaypoints
default OptimizeWaypointsResponse optimizeWaypoints(OptimizeWaypointsRequest optimizeWaypointsRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, GeoRoutesException OptimizeWaypoints
calculates the optimal order to travel between a set of waypoints to minimize either the travel time or the distance travelled during the journey, based on road network restrictions and the traffic pattern data.- Parameters:
optimizeWaypointsRequest
-- Returns:
- Result of the OptimizeWaypoints operation returned by the service.
- See Also:
-
optimizeWaypoints
default OptimizeWaypointsResponse optimizeWaypoints(Consumer<OptimizeWaypointsRequest.Builder> optimizeWaypointsRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, GeoRoutesException OptimizeWaypoints
calculates the optimal order to travel between a set of waypoints to minimize either the travel time or the distance travelled during the journey, based on road network restrictions and the traffic pattern data.
This is a convenience which creates an instance of the
OptimizeWaypointsRequest.Builder
avoiding the need to create one manually viaOptimizeWaypointsRequest.builder()
- Parameters:
optimizeWaypointsRequest
- AConsumer
that will call methods onOptimizeWaypointsRequest.Builder
to create a request.- Returns:
- Result of the OptimizeWaypoints operation returned by the service.
- See Also:
-
snapToRoads
default SnapToRoadsResponse snapToRoads(SnapToRoadsRequest snapToRoadsRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, GeoRoutesException SnapToRoads
matches GPS trace to roads most likely traveled on.- Parameters:
snapToRoadsRequest
-- Returns:
- Result of the SnapToRoads operation returned by the service.
- See Also:
-
snapToRoads
default SnapToRoadsResponse snapToRoads(Consumer<SnapToRoadsRequest.Builder> snapToRoadsRequest) throws InternalServerException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, GeoRoutesException SnapToRoads
matches GPS trace to roads most likely traveled on.
This is a convenience which creates an instance of the
SnapToRoadsRequest.Builder
avoiding the need to create one manually viaSnapToRoadsRequest.builder()
- Parameters:
snapToRoadsRequest
- AConsumer
that will call methods onSnapToRoadsRequest.Builder
to create a request.- Returns:
- Result of the SnapToRoads operation returned by the service.
- See Also:
-
create
Create aGeoRoutesClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aGeoRoutesClient
. -
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
-