copy

fun RangeCalculationOptions.copy(origin: ItineraryPoint = this.origin, budgets: Set<Budget> = this.budgets, vehicle: Vehicle = this.vehicle, costModel: CostModel? = this.costModel, departAt: Date? = this.departAt, routeToInclude: Route? = this.routeToInclude, queryOptions: QueryOptions = this.queryOptions): RangeCalculationOptions

Copies this object while allowing to change some properties.

Return

A copy of this object with properties changed as specified.

See also

for a description of the parameters.

Throws

if the set of budgets is empty or if the budgets are not of the same type, or if the vehicle's consumption is not set for the given budget type.