copy

fun copy(points: List<GeoPoint> = this.points, instructions: List<Instruction> = this.instructions, summary: Summary = this.summary, mapReferences: MapReferences? = this.mapReferences): RouteLeg

Deprecated

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

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

Return

The copied RouteLeg object.

Parameters

points

A list of GeoPoints that belong to the RouteLeg.

instructions

A list of Instructions that belong to the RouteLeg.

summary

A Summary of the route leg.

mapReferences

An optional MapReferences for the map data that belongs to RouteLeg.