RouteDeviation.withTraveledDistance constructor
- NavigableLocation? lastLocationOnRoute,
- int lastTraveledSectionIndex,
- int traveledDistanceOnLastSectionInMeters,
- NavigableLocation currentLocation,
Creates a new instance.
lastLocationOnRouteThe last known location on the route.lastTraveledSectionIndexIndicates the index of the last traveled route section.traveledDistanceOnLastSectionInMetersOffset in meter to the last visited position on the route section defined by the last traveled section index.currentLocationThe current location.
Implementation
RouteDeviation.withTraveledDistance(this.lastLocationOnRoute, this.lastTraveledSectionIndex, this.traveledDistanceOnLastSectionInMeters, this.currentLocation);