copy

fun copy(id: RouteId = this.id, summary: Summary = this.summary, legs: List<RouteLeg> = this.legs, routeStops: List<RouteStop> = this.routeStops, sections: Sections = this.sections, modificationHistory: RouteModificationHistory = this.modificationHistory, forkPoints: List<ForkPoint> = this.forkPoints, guidanceProgressOffset: Distance = this.guidanceProgressOffset, computedAs: ComputedAs = this.computedAs, routePoints: List<RoutePoint> = this.routePoints, planningReason: PlanningReason = this.planningReason): Route

Deprecated

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

Creates a copy of the object, with the option to modify some of its properties.

Parameters

id

Unique ID.

summary

A collection of data fields representing the properties of the route.

legs

List of route legs.

routeStops

List containing every route stop along the route, including origin and destination.

sections

Information about sections of the route.

modificationHistory

Information about route creation and the last route update.

forkPoints

List containing fork points with other routes.

guidanceProgressOffset

The offset where incremental computation of route contents was paused.

computedAs

Determines if the route was computed as primary or as a path alternative with regards to the given cost model.

routePoints

Optional extended representation of the route. Route points do not contain duplicates on leg intersections.

planningReason

The reason why the route was planned.