RouteProgress (API Reference)
Class RouteProgress
Contains all the relevant information on the user's progress along a route.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRouteProgress(List<SectionProgress> sectionProgress, List<ManeuverProgress> maneuverProgress) Creates a new instance. -
Method Summary
-
Field Details
-
sectionIndex
Deprecated.Will be removed in v4.27.0. Use
routeMatchedLocationinstead.Index of the
Sectionin the route. Note that this section index does not point to the currentSectionProgressbut to the routeSectionthat you can access viaNavigatorInterface.getRoute()andRoute.getSections(). -
spanIndex
Deprecated.Will be removed in v4.27.0. Use
routeMatchedLocationinstead.Index of the
Spanin the route section. -
sectionProgress
The progress for each
Sectionfrom the current one to the last one. Note that the progress information is accumulated successively, therefore information relative to the final destination is in the last item of the list. The list is guaranteed to be non-empty. -
maneuverProgress
The progress for next and next-next maneuvers (see
Maneuver). Note that the list can contain at maximum two items (for next and next-next maneuvers) and one or zero when approaching the destination. -
routeMatchedLocation
Route matched location.
-
-
Constructor Details
-
RouteProgress
public RouteProgress(@NonNull List<SectionProgress> sectionProgress, @NonNull List<ManeuverProgress> maneuverProgress) Creates a new instance.
- Parameters:
sectionProgress-The progress for each
Sectionfrom the current one to the last one. Note that the progress information is accumulated successively, therefore information relative to the final destination is in the last item of the list. The list is guaranteed to be non-empty.maneuverProgress-The progress for next and next-next maneuvers (see
Maneuver). Note that the list can contain at maximum two items (for next and next-next maneuvers) and one or zero when approaching the destination.
-
-
Method Details