Class RouteProgress

java.lang.Object
com.here.sdk.navigation.RouteProgress

public final class RouteProgress extends Object

Contains all the relevant information on the user's progress along a route.

  • Field Details

    • sectionIndex

      @Deprecated public int sectionIndex
      Deprecated.

      Will be removed in v4.27.0. Use routeMatchedLocation instead.

      Index of the Section in the route. Note that this section index does not point to the current SectionProgress but to the route Section that you can access via NavigatorInterface.getRoute() and Route.getSections().

    • spanIndex

      @Deprecated public int spanIndex
      Deprecated.

      Will be removed in v4.27.0. Use routeMatchedLocation instead.

      Index of the Span in the route section.

    • sectionProgress

      @NonNull public List<SectionProgress> sectionProgress

      The progress for each Section from 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

      @NonNull public List<ManeuverProgress> 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

      @NonNull public RouteMatchedLocation 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 Section from 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