Summary
class Summary constructor(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, totalTollPrices: List<TollPrice>? = null)
The route summary contains the high-level route data.
Parameters
length
Route length.
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.
totalTollPrices
List of total toll prices of the route. It will be presented in different currencies, e.g., it might be TollPrice(2.35, "EUR"), TollPrice(3.00, "GBP"). Note: If there is no toll information available, totalTollPrices will be null. If the calculated toll price is zero, it will be an empty list.
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)
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, totalTollPrices: List<TollPrice>? = null)