copy
fun copy(geometry: List<GeoPoint> = this.geometry, routeOffset: Distance = this.routeOffset, length: Distance = this.length, lanes: List<Lane> = this.lanes, laneSeparators: List<LaneSeparator> = this.laneSeparators): LaneSection
Deprecated
This API is deprecated and will be removed with the next major release.
Replace with
LaneSection(geometry, routeOffset, length, lanes, laneSeparators)
Content copied to clipboard
Creates a copy of the object, with the option to modify some of its properties.
Return
A copy of the object, with optionally modified properties.
Parameters
geometry
List of GeoPoints representing the section.
routeOffset
Distance from the start of the route to the start point of the sectionLocation.
length
Distance from the the start point to the end point of the sectionLocation.
lanes
Ordered list of lanes in the section.
laneSeparators
Ordered list of lane separators in the section.