public abstract static class LegAnnotation.Builder
extends java.lang.Object
LegAnnotation
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
abstract LegAnnotation |
build()
Build a new
LegAnnotation object. |
abstract LegAnnotation.Builder |
congestion(java.util.List<java.lang.String> congestion)
The congestion between each pair of coordinates.
|
abstract LegAnnotation.Builder |
distance(java.util.List<java.lang.Double> distance)
The distance, in meters, between each pair of coordinates.
|
abstract LegAnnotation.Builder |
duration(java.util.List<java.lang.Double> duration)
The speed, in meters per second, between each pair of coordinates.
|
abstract LegAnnotation.Builder |
maxspeed(java.util.List<MaxSpeed> maxspeed)
The posted speed limit, between each pair of coordinates.
|
abstract LegAnnotation.Builder |
speed(java.util.List<java.lang.Double> speed)
The speed, in meters per second, between each pair of coordinates.
|
public abstract LegAnnotation.Builder distance(@Nullable java.util.List<java.lang.Double> distance)
distance
- a list with each entry being a distance value between two of the routeLeg
geometry coordinatespublic abstract LegAnnotation.Builder duration(@Nullable java.util.List<java.lang.Double> duration)
duration
- a list with each entry being a speed value between two of the routeLeg
geometry coordinatespublic abstract LegAnnotation.Builder speed(@Nullable java.util.List<java.lang.Double> speed)
speed
- a list with each entry being a speed value between two of the routeLeg geometry
coordinatespublic abstract LegAnnotation.Builder maxspeed(@Nullable java.util.List<MaxSpeed> maxspeed)
maxspeed
- list of speeds between each pair of coordinatespublic abstract LegAnnotation.Builder congestion(@Nullable java.util.List<java.lang.String> congestion)
congestion
- a list of Strings with each entry being a congestion value between two of
the routeLeg geometry coordinatespublic abstract LegAnnotation build()
LegAnnotation
object.LegAnnotation
using the provided values in this builder