Summary

data class Summary(val length: Distance, val travelTime: Duration, val trafficDelay: Duration = Duration.ZERO, val trafficLength: Distance = Distance.ZERO, val departureTimeWithZone: Calendar, val arrivalTimeWithZone: Calendar, val consumptionForWholeLength: Consumption? = null, val consumptionUpToReachableOffset: Consumption? = null, val remainingBudget: Consumption? = null, val reachableOffset: Distance? = null)

The route summary contains the high-level route data.

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.

Constructors

Link copied to clipboard
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)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard