Interface RouteWaypoint.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RouteWaypoint.Builder,,RouteWaypoint> SdkBuilder<RouteWaypoint.Builder,,RouteWaypoint> SdkPojo
- Enclosing class:
RouteWaypoint
-
Method Summary
Modifier and TypeMethodDescriptionavoidActionsForDistance(Long avoidActionsForDistance) Avoids actions for the provided distance.avoidUTurns(Boolean avoidUTurns) Avoid U-turns for calculation on highways and motorways.GPS Heading at the position.default RouteWaypoint.Buildermatching(Consumer<RouteMatchingOptions.Builder> matching) Options to configure matching the provided position to the road network.matching(RouteMatchingOptions matching) Options to configure matching the provided position to the road network.passThrough(Boolean passThrough) If the waypoint should not be treated as a stop.Position in World Geodetic System (WGS 84) format: [longitude, latitude].position(Collection<Double> position) Position in World Geodetic System (WGS 84) format: [longitude, latitude].default RouteWaypoint.BuildersideOfStreet(Consumer<RouteSideOfStreetOptions.Builder> sideOfStreet) Options to configure matching the provided position to a side of the street.sideOfStreet(RouteSideOfStreetOptions sideOfStreet) Options to configure matching the provided position to a side of the street.stopDuration(Long stopDuration) Duration of the stop.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
avoidActionsForDistance
Avoids actions for the provided distance. This is typically to consider for users in moving vehicles who may not have sufficient time to make an action at an origin or a destination. Not supported in
ap-southeast-1andap-southeast-5regions for GrabMaps customers.- Parameters:
avoidActionsForDistance- Avoids actions for the provided distance. This is typically to consider for users in moving vehicles who may not have sufficient time to make an action at an origin or a destination. Not supported inap-southeast-1andap-southeast-5regions for GrabMaps customers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
avoidUTurns
Avoid U-turns for calculation on highways and motorways. Not supported in
ap-southeast-1andap-southeast-5regions for GrabMaps customers.- Parameters:
avoidUTurns- Avoid U-turns for calculation on highways and motorways. Not supported inap-southeast-1andap-southeast-5regions for GrabMaps customers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
heading
GPS Heading at the position. Not supported in
ap-southeast-1andap-southeast-5regions for GrabMaps customers.- Parameters:
heading- GPS Heading at the position. Not supported inap-southeast-1andap-southeast-5regions for GrabMaps customers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
matching
Options to configure matching the provided position to the road network. Not supported in
ap-southeast-1andap-southeast-5regions for GrabMaps customers.- Parameters:
matching- Options to configure matching the provided position to the road network. Not supported inap-southeast-1andap-southeast-5regions for GrabMaps customers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
matching
Options to configure matching the provided position to the road network. Not supported in
This is a convenience method that creates an instance of theap-southeast-1andap-southeast-5regions for GrabMaps customers.RouteMatchingOptions.Builderavoiding the need to create one manually viaRouteMatchingOptions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomatching(RouteMatchingOptions).- Parameters:
matching- a consumer that will call methods onRouteMatchingOptions.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
passThrough
If the waypoint should not be treated as a stop. If yes, the waypoint is passed through and doesn't split the route into different legs. Not supported in
ap-southeast-1andap-southeast-5regions for GrabMaps customers.- Parameters:
passThrough- If the waypoint should not be treated as a stop. If yes, the waypoint is passed through and doesn't split the route into different legs. Not supported inap-southeast-1andap-southeast-5regions for GrabMaps customers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
position
Position in World Geodetic System (WGS 84) format: [longitude, latitude].
- Parameters:
position- Position in World Geodetic System (WGS 84) format: [longitude, latitude].- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
position
Position in World Geodetic System (WGS 84) format: [longitude, latitude].
- Parameters:
position- Position in World Geodetic System (WGS 84) format: [longitude, latitude].- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sideOfStreet
Options to configure matching the provided position to a side of the street. Not supported in
ap-southeast-1andap-southeast-5regions for GrabMaps customers.- Parameters:
sideOfStreet- Options to configure matching the provided position to a side of the street. Not supported inap-southeast-1andap-southeast-5regions for GrabMaps customers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sideOfStreet
Options to configure matching the provided position to a side of the street. Not supported in
This is a convenience method that creates an instance of theap-southeast-1andap-southeast-5regions for GrabMaps customers.RouteSideOfStreetOptions.Builderavoiding the need to create one manually viaRouteSideOfStreetOptions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosideOfStreet(RouteSideOfStreetOptions).- Parameters:
sideOfStreet- a consumer that will call methods onRouteSideOfStreetOptions.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
stopDuration
Duration of the stop. Not supported in
ap-southeast-1andap-southeast-5regions for GrabMaps customers.Unit:
seconds- Parameters:
stopDuration- Duration of the stop. Not supported inap-southeast-1andap-southeast-5regions for GrabMaps customers.Unit:
seconds- Returns:
- Returns a reference to this object so that method calls can be chained together.
-