TrafficSection
constructor(sectionLocation: SectionLocation, routeOffset: Distance, length: Distance, simpleCategory: SimpleCategory = SimpleCategory.OTHER, effectiveSpeedInKmh: Int, delay: Duration, magnitudeOfDelay: MagnitudeOfDelay? = null, tec: Tec? = null, id: String? = null)
constructor(geometry: List<GeoPoint>, routeOffset: Distance, length: Distance, simpleCategory: SimpleCategory = SimpleCategory.OTHER, effectiveSpeedInKmh: Int, delay: Duration, magnitudeOfDelay: MagnitudeOfDelay? = null, tec: Tec? = null, id: String? = null)
Deprecated
This API is deprecated and will be removed with the next major release.
Constructs a TrafficSection object with the given parameters.
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.