RouteDeviation.withTraveledDistance constructor

RouteDeviation.withTraveledDistance(
  1. NavigableLocation? lastLocationOnRoute,
  2. int lastTraveledSectionIndex,
  3. int traveledDistanceOnLastSectionInMeters,
  4. NavigableLocation currentLocation,
)

Creates a new instance.

  • 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.

Implementation

RouteDeviation.withTraveledDistance(this.lastLocationOnRoute, this.lastTraveledSectionIndex, this.traveledDistanceOnLastSectionInMeters, this.currentLocation);