public static interface CalculateRouteResponse.Builder extends LocationResponse.Builder, SdkPojo, CopyableBuilder<CalculateRouteResponse.Builder,CalculateRouteResponse>
| Modifier and Type | Method and Description |
|---|---|
CalculateRouteResponse.Builder |
legs(Collection<Leg> legs)
Contains details about each path between a pair of positions included along a route such as:
StartPosition, EndPosition, Distance, DurationSeconds,
Geometry, and Steps. |
CalculateRouteResponse.Builder |
legs(Consumer<Leg.Builder>... legs)
Contains details about each path between a pair of positions included along a route such as:
StartPosition, EndPosition, Distance, DurationSeconds,
Geometry, and Steps. |
CalculateRouteResponse.Builder |
legs(Leg... legs)
Contains details about each path between a pair of positions included along a route such as:
StartPosition, EndPosition, Distance, DurationSeconds,
Geometry, and Steps. |
CalculateRouteResponse.Builder |
summary(CalculateRouteSummary summary)
Contains information about the whole route, such as:
RouteBBox, DataSource,
Distance, DistanceUnit, and DurationSeconds. |
default CalculateRouteResponse.Builder |
summary(Consumer<CalculateRouteSummary.Builder> summary)
Contains information about the whole route, such as:
RouteBBox, DataSource,
Distance, DistanceUnit, and DurationSeconds. |
build, responseMetadata, responseMetadatasdkHttpResponse, sdkHttpResponseequalsBySdkFields, sdkFieldscopyapplyMutation, buildCalculateRouteResponse.Builder legs(Collection<Leg> legs)
Contains details about each path between a pair of positions included along a route such as:
StartPosition, EndPosition, Distance, DurationSeconds,
Geometry, and Steps. The number of legs returned corresponds to one fewer than the
total number of positions in the request.
For example, a route with a departure position and destination position returns one leg with the positions snapped to a nearby road:
The StartPosition is the departure position.
The EndPosition is the destination position.
A route with a waypoint between the departure and destination position returns two legs with the positions snapped to a nearby road:
Leg 1: The StartPosition is the departure position . The EndPosition is the
waypoint positon.
Leg 2: The StartPosition is the waypoint position. The EndPosition is the
destination position.
legs - Contains details about each path between a pair of positions included along a route such as:
StartPosition, EndPosition, Distance,
DurationSeconds, Geometry, and Steps. The number of legs
returned corresponds to one fewer than the total number of positions in the request.
For example, a route with a departure position and destination position returns one leg with the positions snapped to a nearby road:
The StartPosition is the departure position.
The EndPosition is the destination position.
A route with a waypoint between the departure and destination position returns two legs with the positions snapped to a nearby road:
Leg 1: The StartPosition is the departure position . The EndPosition is the
waypoint positon.
Leg 2: The StartPosition is the waypoint position. The EndPosition is the
destination position.
CalculateRouteResponse.Builder legs(Leg... legs)
Contains details about each path between a pair of positions included along a route such as:
StartPosition, EndPosition, Distance, DurationSeconds,
Geometry, and Steps. The number of legs returned corresponds to one fewer than the
total number of positions in the request.
For example, a route with a departure position and destination position returns one leg with the positions snapped to a nearby road:
The StartPosition is the departure position.
The EndPosition is the destination position.
A route with a waypoint between the departure and destination position returns two legs with the positions snapped to a nearby road:
Leg 1: The StartPosition is the departure position . The EndPosition is the
waypoint positon.
Leg 2: The StartPosition is the waypoint position. The EndPosition is the
destination position.
legs - Contains details about each path between a pair of positions included along a route such as:
StartPosition, EndPosition, Distance,
DurationSeconds, Geometry, and Steps. The number of legs
returned corresponds to one fewer than the total number of positions in the request.
For example, a route with a departure position and destination position returns one leg with the positions snapped to a nearby road:
The StartPosition is the departure position.
The EndPosition is the destination position.
A route with a waypoint between the departure and destination position returns two legs with the positions snapped to a nearby road:
Leg 1: The StartPosition is the departure position . The EndPosition is the
waypoint positon.
Leg 2: The StartPosition is the waypoint position. The EndPosition is the
destination position.
CalculateRouteResponse.Builder legs(Consumer<Leg.Builder>... legs)
Contains details about each path between a pair of positions included along a route such as:
StartPosition, EndPosition, Distance, DurationSeconds,
Geometry, and Steps. The number of legs returned corresponds to one fewer than the
total number of positions in the request.
For example, a route with a departure position and destination position returns one leg with the positions snapped to a nearby road:
The StartPosition is the departure position.
The EndPosition is the destination position.
A route with a waypoint between the departure and destination position returns two legs with the positions snapped to a nearby road:
Leg 1: The StartPosition is the departure position . The EndPosition is the
waypoint positon.
Leg 2: The StartPosition is the waypoint position. The EndPosition is the
destination position.
Leg.Builder avoiding the need to create one manually
via Leg.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #legs(List.
legs - a consumer that will call methods on
Leg.Builder#legs(java.util.Collection) CalculateRouteResponse.Builder summary(CalculateRouteSummary summary)
Contains information about the whole route, such as: RouteBBox, DataSource,
Distance, DistanceUnit, and DurationSeconds.
summary - Contains information about the whole route, such as: RouteBBox, DataSource,
Distance, DistanceUnit, and DurationSeconds.default CalculateRouteResponse.Builder summary(Consumer<CalculateRouteSummary.Builder> summary)
Contains information about the whole route, such as: RouteBBox, DataSource,
Distance, DistanceUnit, and DurationSeconds.
CalculateRouteSummary.Builder avoiding
the need to create one manually via CalculateRouteSummary.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to summary(CalculateRouteSummary).
summary - a consumer that will call methods on CalculateRouteSummary.Buildersummary(CalculateRouteSummary)Copyright © 2023. All rights reserved.