TrafficSection

data class TrafficSection(val geometry: List<GeoPoint>, val routeOffset: Distance, val length: Distance, val simpleCategory: SimpleCategory = SimpleCategory.OTHER, val effectiveSpeedInKmh: Int, val delay: Duration, val magnitudeOfDelay: MagnitudeOfDelay? = null, val tec: Tec? = null) : Section

Represents a route section with a traffic event.

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

See also

Parameters

simpleCategory

Gets the type of the incident.

effectiveSpeedInKmh

Gets the effective speed of the incident in km/h, averaged over its entire length.

delay

Gets the delay caused by the incident.

magnitudeOfDelay

Gets the magnitude of delay caused by the incident.

tec

Gets the details of the traffic event.

Constructors

Link copied to clipboard
fun TrafficSection(geometry: List<GeoPoint>, routeOffset: Distance, length: Distance, simpleCategory: SimpleCategory = SimpleCategory.OTHER, effectiveSpeedInKmh: Int, delay: Duration, magnitudeOfDelay: MagnitudeOfDelay? = null, tec: Tec? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val geometry: List<GeoPoint>

List of coordinates representing section.

Link copied to clipboard
open override val length: Distance

Distance from the the first point of geometry to the last point.

Link copied to clipboard
Link copied to clipboard
open override val routeOffset: Distance

Distance from the start of the route to the first point of geometry.

Link copied to clipboard
Link copied to clipboard
val tec: Tec? = null