Summary
constructor(length: Distance, travelTime: Duration, trafficDelay: Duration = Duration.ZERO, trafficLength: Distance = Distance.ZERO, departureTime: ZonedDateTime, arrivalTime: ZonedDateTime, consumptionForWholeLength: Consumption? = null, consumptionUpToReachableOffset: Consumption? = null, remainingBudget: Consumption? = null, reachableOffset: Distance? = null)
Deprecated
This will be removed from future releases after 2026-07-26.
The route summary contains the high-level route data.
Parameters
length
Route length.
travelTime
Estimated travel time.
trafficDelay
Traffic delay.
trafficLength
Traffic length.
departureTime
Departure time including the time zone.
arrivalTime
Arrival time including the time zone.
consumptionForWholeLength
Consumption for the whole route or leg.
consumptionUpToReachableOffset
Consumption for the route or leg up to the reachable offset.
remainingBudget
Remaining fuel or energy when reaching the end of the route or leg.
reachableOffset
Portion of the route or leg that can be driven with the available energy or fuel supply.
constructor(length: Distance, travelTime: Duration, trafficDelay: Duration = Duration.ZERO, trafficLength: Distance = Distance.ZERO, departureTimeWithZone: Calendar, arrivalTimeWithZone: Calendar, consumptionForWholeLength: Consumption? = null, consumptionUpToReachableOffset: Consumption? = null, remainingBudget: Consumption? = null, reachableOffset: Distance? = null)
Deprecated
This will be removed from future releases after 2026-07-26.