public static interface CalculateRouteRequest.Builder extends LocationRequest.Builder, SdkPojo, CopyableBuilder<CalculateRouteRequest.Builder,CalculateRouteRequest>
| Modifier and Type | Method and Description |
|---|---|
CalculateRouteRequest.Builder |
calculatorName(String calculatorName)
The name of the route calculator resource that you want to use to calculate a route.
|
CalculateRouteRequest.Builder |
carModeOptions(CalculateRouteCarModeOptions carModeOptions)
Specifies route preferences when traveling by
Car, such as avoiding routes that use ferries or
tolls. |
default CalculateRouteRequest.Builder |
carModeOptions(Consumer<CalculateRouteCarModeOptions.Builder> carModeOptions)
Specifies route preferences when traveling by
Car, such as avoiding routes that use ferries or
tolls. |
CalculateRouteRequest.Builder |
departNow(Boolean departNow)
Sets the time of departure as the current time.
|
CalculateRouteRequest.Builder |
departurePosition(Collection<Double> departurePosition)
The start position for the route.
|
CalculateRouteRequest.Builder |
departurePosition(Double... departurePosition)
The start position for the route.
|
CalculateRouteRequest.Builder |
departureTime(Instant departureTime)
Specifies the desired time of departure.
|
CalculateRouteRequest.Builder |
destinationPosition(Collection<Double> destinationPosition)
The finish position for the route.
|
CalculateRouteRequest.Builder |
destinationPosition(Double... destinationPosition)
The finish position for the route.
|
CalculateRouteRequest.Builder |
distanceUnit(DistanceUnit distanceUnit)
Set the unit system to specify the distance.
|
CalculateRouteRequest.Builder |
distanceUnit(String distanceUnit)
Set the unit system to specify the distance.
|
CalculateRouteRequest.Builder |
includeLegGeometry(Boolean includeLegGeometry)
Set to include the geometry details in the result for each path between a pair of positions.
|
CalculateRouteRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
CalculateRouteRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
CalculateRouteRequest.Builder |
travelMode(String travelMode)
Specifies the mode of transport when calculating a route.
|
CalculateRouteRequest.Builder |
travelMode(TravelMode travelMode)
Specifies the mode of transport when calculating a route.
|
CalculateRouteRequest.Builder |
truckModeOptions(CalculateRouteTruckModeOptions truckModeOptions)
Specifies route preferences when traveling by
Truck, such as avoiding routes that use ferries or
tolls, and truck specifications to consider when choosing an optimal road. |
default CalculateRouteRequest.Builder |
truckModeOptions(Consumer<CalculateRouteTruckModeOptions.Builder> truckModeOptions)
Specifies route preferences when traveling by
Truck, such as avoiding routes that use ferries or
tolls, and truck specifications to consider when choosing an optimal road. |
CalculateRouteRequest.Builder |
waypointPositions(Collection<? extends Collection<Double>> waypointPositions)
Specifies an ordered list of up to 23 intermediate positions to include along a route between the departure
position and destination position.
|
CalculateRouteRequest.Builder |
waypointPositions(Collection<Double>... waypointPositions)
Specifies an ordered list of up to 23 intermediate positions to include along a route between the departure
position and destination position.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildCalculateRouteRequest.Builder calculatorName(String calculatorName)
The name of the route calculator resource that you want to use to calculate a route.
calculatorName - The name of the route calculator resource that you want to use to calculate a route.CalculateRouteRequest.Builder carModeOptions(CalculateRouteCarModeOptions carModeOptions)
Specifies route preferences when traveling by Car, such as avoiding routes that use ferries or
tolls.
Requirements: TravelMode must be specified as Car.
carModeOptions - Specifies route preferences when traveling by Car, such as avoiding routes that use
ferries or tolls.
Requirements: TravelMode must be specified as Car.
default CalculateRouteRequest.Builder carModeOptions(Consumer<CalculateRouteCarModeOptions.Builder> carModeOptions)
Specifies route preferences when traveling by Car, such as avoiding routes that use ferries or
tolls.
Requirements: TravelMode must be specified as Car.
CalculateRouteCarModeOptions.Builder avoiding
the need to create one manually via CalculateRouteCarModeOptions.builder().
When the Consumer completes, SdkBuilder.build() is called
immediately and its result is passed to carModeOptions(CalculateRouteCarModeOptions).carModeOptions - a consumer that will call methods on CalculateRouteCarModeOptions.BuildercarModeOptions(CalculateRouteCarModeOptions)CalculateRouteRequest.Builder departNow(Boolean departNow)
Sets the time of departure as the current time. Uses the current time to calculate a route. Otherwise, the best time of day to travel with the best traffic conditions is used to calculate the route.
Default Value: false
Valid Values: false | true
departNow - Sets the time of departure as the current time. Uses the current time to calculate a route. Otherwise,
the best time of day to travel with the best traffic conditions is used to calculate the route.
Default Value: false
Valid Values: false | true
CalculateRouteRequest.Builder departurePosition(Collection<Double> departurePosition)
The start position for the route. Defined in WGS
84 format: [longitude, latitude].
For example, [-123.115, 49.285]
If you specify a departure that's not located on a road, Amazon Location moves the position to the nearest road. If Esri is the provider for your route calculator, specifying a
route that is longer than 400 km returns a 400 RoutesValidationException error.
Valid Values: [-180 to 180,-90 to 90]
departurePosition - The start position for the route. Defined in WGS 84 format:
[longitude, latitude].
For example, [-123.115, 49.285]
If you specify a departure that's not located on a road, Amazon Location moves the position to the nearest road. If Esri is the provider for your route calculator,
specifying a route that is longer than 400 km returns a 400 RoutesValidationException
error.
Valid Values: [-180 to 180,-90 to 90]
CalculateRouteRequest.Builder departurePosition(Double... departurePosition)
The start position for the route. Defined in WGS
84 format: [longitude, latitude].
For example, [-123.115, 49.285]
If you specify a departure that's not located on a road, Amazon Location moves the position to the nearest road. If Esri is the provider for your route calculator, specifying a
route that is longer than 400 km returns a 400 RoutesValidationException error.
Valid Values: [-180 to 180,-90 to 90]
departurePosition - The start position for the route. Defined in WGS 84 format:
[longitude, latitude].
For example, [-123.115, 49.285]
If you specify a departure that's not located on a road, Amazon Location moves the position to the nearest road. If Esri is the provider for your route calculator,
specifying a route that is longer than 400 km returns a 400 RoutesValidationException
error.
Valid Values: [-180 to 180,-90 to 90]
CalculateRouteRequest.Builder departureTime(Instant departureTime)
Specifies the desired time of departure. Uses the given time to calculate a route. Otherwise, the best time of day to travel with the best traffic conditions is used to calculate the route.
Setting a departure time in the past returns a 400 ValidationException error.
In ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ. For example, 2020–07-2T12:15:20.000Z+01:00
departureTime - Specifies the desired time of departure. Uses the given time to calculate a route. Otherwise, the best
time of day to travel with the best traffic conditions is used to calculate the route.
Setting a departure time in the past returns a 400 ValidationException error.
In ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ. For example, 2020–07-2T12:15:20.000Z+01:00
CalculateRouteRequest.Builder destinationPosition(Collection<Double> destinationPosition)
The finish position for the route. Defined in WGS
84 format: [longitude, latitude].
For example, [-122.339, 47.615]
If you specify a destination that's not located on a road, Amazon Location moves the position to the nearest road.
Valid Values: [-180 to 180,-90 to 90]
destinationPosition - The finish position for the route. Defined in WGS 84 format:
[longitude, latitude].
For example, [-122.339, 47.615]
If you specify a destination that's not located on a road, Amazon Location moves the position to the nearest road.
Valid Values: [-180 to 180,-90 to 90]
CalculateRouteRequest.Builder destinationPosition(Double... destinationPosition)
The finish position for the route. Defined in WGS
84 format: [longitude, latitude].
For example, [-122.339, 47.615]
If you specify a destination that's not located on a road, Amazon Location moves the position to the nearest road.
Valid Values: [-180 to 180,-90 to 90]
destinationPosition - The finish position for the route. Defined in WGS 84 format:
[longitude, latitude].
For example, [-122.339, 47.615]
If you specify a destination that's not located on a road, Amazon Location moves the position to the nearest road.
Valid Values: [-180 to 180,-90 to 90]
CalculateRouteRequest.Builder distanceUnit(String distanceUnit)
Set the unit system to specify the distance.
Default Value: Kilometers
distanceUnit - Set the unit system to specify the distance.
Default Value: Kilometers
DistanceUnit,
DistanceUnitCalculateRouteRequest.Builder distanceUnit(DistanceUnit distanceUnit)
Set the unit system to specify the distance.
Default Value: Kilometers
distanceUnit - Set the unit system to specify the distance.
Default Value: Kilometers
DistanceUnit,
DistanceUnitCalculateRouteRequest.Builder includeLegGeometry(Boolean includeLegGeometry)
Set to include the geometry details in the result for each path between a pair of positions.
Default Value: false
Valid Values: false | true
includeLegGeometry - Set to include the geometry details in the result for each path between a pair of positions.
Default Value: false
Valid Values: false | true
CalculateRouteRequest.Builder travelMode(String travelMode)
Specifies the mode of transport when calculating a route. Used in estimating the speed of travel and road compatibility.
The TravelMode you specify determines how you specify route preferences:
If traveling by Car use the CarModeOptions parameter.
If traveling by Truck use the TruckModeOptions parameter.
Default Value: Car
travelMode - Specifies the mode of transport when calculating a route. Used in estimating the speed of travel and
road compatibility.
The TravelMode you specify determines how you specify route preferences:
If traveling by Car use the CarModeOptions parameter.
If traveling by Truck use the TruckModeOptions parameter.
Default Value: Car
TravelMode,
TravelModeCalculateRouteRequest.Builder travelMode(TravelMode travelMode)
Specifies the mode of transport when calculating a route. Used in estimating the speed of travel and road compatibility.
The TravelMode you specify determines how you specify route preferences:
If traveling by Car use the CarModeOptions parameter.
If traveling by Truck use the TruckModeOptions parameter.
Default Value: Car
travelMode - Specifies the mode of transport when calculating a route. Used in estimating the speed of travel and
road compatibility.
The TravelMode you specify determines how you specify route preferences:
If traveling by Car use the CarModeOptions parameter.
If traveling by Truck use the TruckModeOptions parameter.
Default Value: Car
TravelMode,
TravelModeCalculateRouteRequest.Builder truckModeOptions(CalculateRouteTruckModeOptions truckModeOptions)
Specifies route preferences when traveling by Truck, such as avoiding routes that use ferries or
tolls, and truck specifications to consider when choosing an optimal road.
Requirements: TravelMode must be specified as Truck.
truckModeOptions - Specifies route preferences when traveling by Truck, such as avoiding routes that use
ferries or tolls, and truck specifications to consider when choosing an optimal road.
Requirements: TravelMode must be specified as Truck.
default CalculateRouteRequest.Builder truckModeOptions(Consumer<CalculateRouteTruckModeOptions.Builder> truckModeOptions)
Specifies route preferences when traveling by Truck, such as avoiding routes that use ferries or
tolls, and truck specifications to consider when choosing an optimal road.
Requirements: TravelMode must be specified as Truck.
CalculateRouteTruckModeOptions.Builder avoiding
the need to create one manually via CalculateRouteTruckModeOptions.builder().
When the Consumer completes, SdkBuilder.build() is called
immediately and its result is passed to truckModeOptions(CalculateRouteTruckModeOptions).truckModeOptions - a consumer that will call methods on CalculateRouteTruckModeOptions.BuildertruckModeOptions(CalculateRouteTruckModeOptions)CalculateRouteRequest.Builder waypointPositions(Collection<? extends Collection<Double>> waypointPositions)
Specifies an ordered list of up to 23 intermediate positions to include along a route between the departure position and destination position.
For example, from the DeparturePosition [-123.115, 49.285], the route follows the
order that the waypoint positions are given [[-122.757, 49.0021],[-122.349, 47.620]]
If you specify a waypoint position that's not located on a road, Amazon Location moves the position to the nearest road.
Specifying more than 23 waypoints returns a 400 ValidationException error.
If Esri is the provider for your route calculator, specifying a route that is longer than 400 km returns a
400 RoutesValidationException error.
Valid Values: [-180 to 180,-90 to 90]
waypointPositions - Specifies an ordered list of up to 23 intermediate positions to include along a route between the
departure position and destination position.
For example, from the DeparturePosition [-123.115, 49.285], the route
follows the order that the waypoint positions are given
[[-122.757, 49.0021],[-122.349, 47.620]]
If you specify a waypoint position that's not located on a road, Amazon Location moves the position to the nearest road.
Specifying more than 23 waypoints returns a 400 ValidationException error.
If Esri is the provider for your route calculator, specifying a route that is longer than 400 km
returns a 400 RoutesValidationException error.
Valid Values: [-180 to 180,-90 to 90]
CalculateRouteRequest.Builder waypointPositions(Collection<Double>... waypointPositions)
Specifies an ordered list of up to 23 intermediate positions to include along a route between the departure position and destination position.
For example, from the DeparturePosition [-123.115, 49.285], the route follows the
order that the waypoint positions are given [[-122.757, 49.0021],[-122.349, 47.620]]
If you specify a waypoint position that's not located on a road, Amazon Location moves the position to the nearest road.
Specifying more than 23 waypoints returns a 400 ValidationException error.
If Esri is the provider for your route calculator, specifying a route that is longer than 400 km returns a
400 RoutesValidationException error.
Valid Values: [-180 to 180,-90 to 90]
waypointPositions - Specifies an ordered list of up to 23 intermediate positions to include along a route between the
departure position and destination position.
For example, from the DeparturePosition [-123.115, 49.285], the route
follows the order that the waypoint positions are given
[[-122.757, 49.0021],[-122.349, 47.620]]
If you specify a waypoint position that's not located on a road, Amazon Location moves the position to the nearest road.
Specifying more than 23 waypoints returns a 400 ValidationException error.
If Esri is the provider for your route calculator, specifying a route that is longer than 400 km
returns a 400 RoutesValidationException error.
Valid Values: [-180 to 180,-90 to 90]
CalculateRouteRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderCalculateRouteRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2021. All rights reserved.