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, val id: String? = null) : Section
Represents a route section with a traffic event.
See also
Constructors
Link copied to clipboard
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)
Properties
Link copied to clipboard
Gets the effective speed of the incident in km/h, averaged over its entire length.
Link copied to clipboard
Gets the magnitude of delay caused by the incident.
Link copied to clipboard
Distance from the start of the route to the first point of geometry.
Link copied to clipboard
Gets the type of the incident.