Summary

fun Summary(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)

Parameters

length

Route length in meters.

travelTime

Estimated travel time.

trafficDelay

Traffic delay.

trafficLength

Traffic length.

departureTimeWithZone

Departure time including the time zone.

arrivalTimeWithZone

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 current energy or fuel supply.