public abstract class CurrentLegAnnotation extends Object implements Serializable
The Mapbox Directions API gives a list of annotations, each item in the list representing an annotation between two points along the leg.
Modifier and Type | Class and Description |
---|---|
static class |
CurrentLegAnnotation.Builder
This builder can be used to set the values describing the
CurrentLegAnnotation . |
Constructor and Description |
---|
CurrentLegAnnotation() |
Modifier and Type | Method and Description |
---|---|
static CurrentLegAnnotation.Builder |
builder()
Create a new instance of this class by using the
CurrentLegAnnotation.Builder class. |
abstract String |
congestion()
The congestion for the given annotation segment.
|
abstract Double |
distance()
The distance, in meters, for the given annotation segment.
|
abstract double |
distanceToAnnotation()
Distance along the
RouteLeg that adds
up to this set of annotation data. |
abstract Double |
duration()
The speed, in meters per second, for the given annotation segment.
|
abstract int |
index()
The index used to retrieve the annotation values from each array in
LegAnnotation . |
abstract com.mapbox.api.directions.v5.models.MaxSpeed |
maxspeed()
The posted speed limit, for the given annotation segment.
|
abstract Double |
speed()
The speed, in meters per second, for the given annotation segment.
|
public static CurrentLegAnnotation.Builder builder()
CurrentLegAnnotation.Builder
class.CurrentLegAnnotation.Builder
for creating a new instancepublic abstract int index()
LegAnnotation
.public abstract double distanceToAnnotation()
RouteLeg
that adds
up to this set of annotation data.public abstract Double distance()
@Nullable public abstract Double duration()
@Nullable public abstract Double speed()
@Nullable public abstract com.mapbox.api.directions.v5.models.MaxSpeed maxspeed()
© 2019 Mapbox. All rights reserved.