copy
fun copy(geometry: List<GeoPoint> = this.geometry, routeOffset: Distance = this.routeOffset, length: Distance = this.length, simpleCategory: SimpleCategory = this.simpleCategory, effectiveSpeedInKmh: Int = this.effectiveSpeedInKmh, delay: Duration = this.delay, magnitudeOfDelay: MagnitudeOfDelay? = this.magnitudeOfDelay, tec: Tec? = this.tec, id: String? = this.id): TrafficSection
Deprecated
This API is deprecated and will be removed with the next major release.
Replace with
TrafficSection(geometry, routeOffset, length, simpleCategory, effectiveSpeedInKmh, delay, magnitudeOfDelay, tec, id)
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.
simpleCategory
Type of the incident.
effectiveSpeedInKmh
Effective speed of the incident in km/h, averaged over its entire length.
delay
Duration of the delay caused by the incident.
magnitudeOfDelay
Magnitude of delay caused by the incident.
tec
Details of the traffic event.
id
ID of the traffic event from which the traffic section was created.