Route Progress
This class contains all progress information at any given time during a navigation session. This progress includes information for the current route, leg and step the user is traversing along. With every new valid location update, a new route progress will be generated using the latest information.
The latest route progress object can be obtained through either the ProgressChangeListener or the MilestoneEventListener callbacks. Note that the route progress object's immutable.
Since
0.1.0
Constructors
Types
Properties
Provides the current RouteLeg the user is on.
Gives a RouteLegProgress object with information about the particular leg the user is currently on.
Provides a list of points that represent the current step step geometry.
Get the route the navigation session is currently using. When a reroute occurs and a new directions route gets obtained, with the next location update this directions route should reflect the new route. All direction route get passed in through MapLibreNavigation.startNavigation.
Provides the distance remaining in meters till the user reaches the end of the route.
Total distance traveled in meters along route.
Provides the duration remaining in seconds till the user reaches the end of the route.
Get the fraction traveled along the current route, this is a float value between 0 and 1 and isn't guaranteed to reach 1 before the user reaches the end of the route.
Number of waypoints remaining on the current route.
Provides a list of points that represent the upcoming step step geometry.