Summary

data class Summary(    val length: Distance,     val travelTime: Duration,     val trafficDelay: Duration = Duration.ZERO,     val trafficLength: Distance = Distance.ZERO,     val departureTimeWithZone: DateTime,     val arrivalTimeWithZone: DateTime,     val batteryConsumption: Energy? = null,     val fuelConsumption: Volume? = 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.

batteryConsumption

Battery consumption using an electric engine.

fuelConsumption

Fuels consumption using a combustion engine.

Constructors

Link copied to clipboard
fun Summary(    length: Distance,     travelTime: Duration,     trafficDelay: Duration = Duration.ZERO,     trafficLength: Distance = Distance.ZERO,     departureTimeWithZone: DateTime,     arrivalTimeWithZone: DateTime,     batteryConsumption: Energy? = null,     fuelConsumption: Volume? = null)

Properties

Link copied to clipboard
val arrivalTimeWithZone: DateTime
Link copied to clipboard
val batteryConsumption: Energy? = null
Link copied to clipboard
val departureTimeWithZone: DateTime
Link copied to clipboard
val fuelConsumption: Volume? = null
Link copied to clipboard
val length: Distance
Link copied to clipboard
val trafficDelay: Duration
Link copied to clipboard
val trafficLength: Distance
Link copied to clipboard
val travelTime: Duration