RouteProgressEvent
type RouteProgressEvent = object;
From Navigation.addRouteProgressListener and onRouteProgress.
Properties
| Property | Type | Description |
|---|---|---|
distanceRemaining | number | Meters. |
distanceTraveled | number | Meters. |
durationRemaining | number | Seconds. |
fractionTraveled | number | 0..1 |
lanes | ReadonlyArray<Lane> | Lanes at the next maneuver, left to right. Empty if the route has no lane data there. |
legIndex | CodegenTypes.Int32 | Index of the current leg, in Route legs. |
maneuverInstruction | string | Primary banner text of the next maneuver, e.g. "Turn right onto Market Street". |
maneuverModifier | string | Mapbox Directions maneuver modifier, e.g. "right", "slight left". Empty if unknown. |
maneuverType | string | Mapbox Directions maneuver type, e.g. "turn", "arrive". Empty if unknown. |
secondaryInstruction | string | Secondary banner text, e.g. the destination of an exit. Empty if none. |
stepDistanceRemaining | number | Meters to the next maneuver. |
stepIndex | CodegenTypes.Int32 | Index of the current step in the current leg. |
subInstruction | string | Sub banner text, e.g. "Then turn left". Empty if none or if the sub banner shows lanes. |