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)

Constructs a TrafficSection object with the given parameters.

Parameters

sectionLocation

Information about the location of a section on a route's geometry.

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.


constructor(sectionLocation: SectionLocation, routeOffset: Distance, length: Distance, simpleCategory: SimpleCategory = SimpleCategory.OTHER, effectiveSpeed: Speed, delay: Duration, magnitudeOfDelay: MagnitudeOfDelay? = null, tec: Tec? = null, id: String? = null)

Important: This is a Public Preview API. It may be changed or removed at any time.

Constructs a TrafficSection object with the given parameters.

Parameters

sectionLocation

Information about the location of a section on a route's geometry.

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.

effectiveSpeed

Effective speed of the incident, 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.