Route Leg Progress
This is a progress object specific to the current leg the user is on. If there is only one leg in the directions route, much of this information will be identical to the parent RouteProgress.
The latest route leg progress object can be obtained through either the [ProgressChangeListener] or the [MilestoneEventListener] callbacks. Note that the route leg progress object's immutable.
Since
0.1.0
Constructors
Properties
Provides the current annotation data for a leg segment determined by the distance traveled along the route.
Returns the current step the user is traversing along.
Provides a list of points that represent the current step step geometry.
Gives a RouteStepProgress object with information about the particular step the user is currently on.
Provides the distance remaining in meters tills the user reaches the end of the route.
Total distance traveled in meters along current leg.
Provides the duration remaining in seconds till the user reaches the end of the current step.
This will return the LegStep two steps ahead of the current step the user's on. If the user's current step is within 2 steps of their final destination this will return null.
Get the fraction traveled along the current leg, this is a float value between 0 and 1 and isn't guaranteed to reach 1 before the user reaches the next waypoint.
Get the previous step the user traversed along, if the user is still on the first step, this will return null.
Get the next/upcoming step immediately after the current step. If the user is on the last step on the last leg, this will return null since a next step doesn't exist.
Provides a list of points that represent the upcoming step step geometry.