Class RouteDeviation

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

public final class RouteDeviation extends Object

Contains all the relevant information on a deviation from the route.

  • Field Details

    • lastLocationOnRoute

      @Nullable public NavigableLocation lastLocationOnRoute

      The last known location on the route.

    • lastTraveledSectionIndex

      public int lastTraveledSectionIndex

      Indicates the index of the last traveled route section.

    • traveledDistanceOnLastSectionInMeters

      public int traveledDistanceOnLastSectionInMeters

      Offset in meter to the last visited position on the route section defined by the last traveled section index.

    • currentLocation

      @NonNull public NavigableLocation currentLocation

      The current location.

  • Constructor Details

    • RouteDeviation

      public RouteDeviation(@Nullable NavigableLocation lastLocationOnRoute, int lastTraveledSectionIndex, int traveledDistanceOnLastSectionInMeters, @NonNull NavigableLocation currentLocation)

      Creates a new instance.

      Parameters:
      lastLocationOnRoute -

      The last known location on the route.

      lastTraveledSectionIndex -

      Indicates the index of the last traveled route section.

      traveledDistanceOnLastSectionInMeters -

      Offset in meter to the last visited position on the route section defined by the last traveled section index.

      currentLocation -

      The current location.

  • Method Details