copy

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

Deprecated

This API is deprecated and will be removed with the next major release.

Creates a copy of this Summary object with optional parameter overrides.

Return

The copied Summary object.

Parameters

length

The new route length, defaults to the current value.

travelTime

The new estimated travel time, defaults to the current value.

trafficDelay

The new traffic delay, defaults to the current value.

trafficLength

The new traffic length, defaults to the current values.

departureTimeWithZone

The new departure time including the time zone, defaults to the current value.

arrivalTimeWithZone

The new arrival time including the time zone, defaults to the current value.

consumptionForWholeLength

The new consumption for the whole route or leg, defaults to the current value.

consumptionUpToReachableOffset

The new consumption for the route or leg up to the reachable offset, defaults to the current value.

remainingBudget

The new remaining fuel or energy when reaching the end of the route or leg, defaults to the current value.

reachableOffset

The new portion of the route or leg that can be driven with the current energy or fuel supply, defaults to the current value.