Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
abstract RouteLeg.Builder |
annotation(LegAnnotation annotation)
A
LegAnnotation that contains additional details about each line segment along the
route geometry. |
abstract RouteLeg |
build()
Build a new
RouteLeg object. |
abstract RouteLeg.Builder |
distance(java.lang.Double distance)
The distance traveled from one waypoint to another.
|
abstract RouteLeg.Builder |
duration(java.lang.Double duration)
The estimated travel time from one waypoint to another.
|
abstract RouteLeg.Builder |
steps(java.util.List<LegStep> steps)
Gives a List including all the steps to get from one waypoint to another.
|
abstract RouteLeg.Builder |
summary(java.lang.String summary)
A short human-readable summary of major roads traversed.
|
public abstract RouteLeg.Builder distance(@Nullable java.lang.Double distance)
distance
- a double number with unit meterspublic abstract RouteLeg.Builder duration(@Nullable java.lang.Double duration)
duration
- a double number with unit secondspublic abstract RouteLeg.Builder summary(@Nullable java.lang.String summary)
summary
- String with summarypublic abstract RouteLeg.Builder steps(@Nullable java.util.List<LegStep> steps)
steps
- List of LegStep
public abstract RouteLeg.Builder annotation(@Nullable LegAnnotation annotation)
LegAnnotation
that contains additional details about each line segment along the
route geometry. If you'd like to receiving this, you must request it inside your Directions
request before executing the call.annotation
- a LegAnnotation
object