public abstract static class CurrentLegAnnotation.Builder extends Object
CurrentLegAnnotation
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
abstract CurrentLegAnnotation |
build()
Build a new
CurrentLegAnnotation object. |
abstract CurrentLegAnnotation.Builder |
congestion(String congestion)
The congestion for the given annotation segment.
|
abstract CurrentLegAnnotation.Builder |
distance(Double distance)
The distance, in meters, between each pair of coordinates.
|
abstract CurrentLegAnnotation.Builder |
distanceToAnnotation(double distanceToAnnotation)
Distance along the
RouteLeg that adds
up to this set of annotation data. |
abstract CurrentLegAnnotation.Builder |
duration(Double duration)
The speed, in meters per second, for the given annotation segment.
|
abstract CurrentLegAnnotation.Builder |
index(int index)
The index used to retrieve the annotation values from each array in
LegAnnotation . |
abstract CurrentLegAnnotation.Builder |
maxspeed(com.mapbox.api.directions.v5.models.MaxSpeed maxspeed)
The posted speed limit, for the given annotation segment.
|
abstract CurrentLegAnnotation.Builder |
speed(Double speed)
The speed, in meters per second, for the given annotation segment.
|
public abstract CurrentLegAnnotation.Builder distance(Double distance)
distance
- a list with each entry being a distance value between two of the routeLeg
geometry coordinatespublic abstract CurrentLegAnnotation.Builder duration(@Nullable Double duration)
public abstract CurrentLegAnnotation.Builder speed(@Nullable Double speed)
public abstract CurrentLegAnnotation.Builder maxspeed(@Nullable com.mapbox.api.directions.v5.models.MaxSpeed maxspeed)
public abstract CurrentLegAnnotation.Builder congestion(@Nullable String congestion)
public abstract CurrentLegAnnotation.Builder index(int index)
LegAnnotation
.public abstract CurrentLegAnnotation.Builder distanceToAnnotation(double distanceToAnnotation)
RouteLeg
that adds
up to this set of annotation data.public abstract CurrentLegAnnotation build()
CurrentLegAnnotation
object.CurrentLegAnnotation
using the provided values in this builder© 2019 Mapbox. All rights reserved.