Summary
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.
Constructors
Link copied to clipboard
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)
Properties
Link copied to clipboard
Arrival time including the time zone.
Link copied to clipboard
Consumption for the whole route or leg.
Link copied to clipboard
Consumption for the route or leg up to the reachable offset.
Link copied to clipboard
Departure time including the time zone.
Link copied to clipboard
Portion of the route or leg that can be driven with the current energy or fuel supply.
Link copied to clipboard
Remaining fuel or energy when reaching the end of the route or leg.
Link copied to clipboard
Traffic delay.
Link copied to clipboard
Traffic length.
Link copied to clipboard
Estimated travel time.
Functions
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
Link copied to clipboard
Link copied to clipboard
fun copy(length: Distance = this.length, travelTime: Duration = this.travelTime, trafficDelay: Duration = this.trafficDelay, trafficLength: Distance = this.trafficLength, departureTimeWithZone: Calendar = this.departureTimeWithZone, arrivalTimeWithZone: Calendar = this.arrivalTimeWithZone, consumptionForWholeLength: Consumption? = this.consumptionForWholeLength, consumptionUpToReachableOffset: Consumption? = this.consumptionUpToReachableOffset, remainingBudget: Consumption? = this.remainingBudget, reachableOffset: Distance? = this.reachableOffset): Summary
Creates a copy of this Summary
object with optional parameter overrides.