Current Leg Annotation
data class CurrentLegAnnotation(val index: Int, val distanceToAnnotation: Double, val distance: Double, val duration: Double?, val speed: Double?, val maxSpeed: MaxSpeed?, val congestion: String? = null)
This class represents the current annotation being traveled along at a given time during navigation.
The Mapbox Directions API gives a list of annotations, each item in the list representing an annotation between two points along the leg.
Since
0.13.0
Constructors
Properties
Link copied to clipboard
The congestion for the given annotation segment.
Link copied to clipboard
Distance along the org.maplibre.navigation.core.models.RouteLeg that adds up to this set of annotation data.
Link copied to clipboard
The index used to retrieve the annotation values from each array in org.maplibre.navigation.core.models.