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

Route length.

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
open operator override fun equals(other: Any?): Boolean

Checks if this Summary object is equal to another object.

Link copied to clipboard
open override fun hashCode(): Int

Generates a hash code for this Summary object.

Link copied to clipboard
open override fun toString(): String

Returns a string representation of this Summary object.