TrafficEvent
class TrafficEvent(var id: String, var category: Category? = null, var delay: Duration? = null, var length: Distance? = null, var path: List<GeoPoint> = emptyList(), var effectCode: EffectCode? = null, var isOneWay: Boolean, var drivingSide: DrivingSide, var causes: List<Cause> = emptyList(), var roadType: RoadType, var roadClass: RoadClass? = null, var roadSubclass: RoadSubClass? = null)
Representation of a traffic event. Traffic events represent unusual situations on the road, like traffic congestion, accidents or road works.
Important: This is a Public Preview API. It may be changed or removed at any time.
Constructors
Link copied to clipboard
constructor(id: String, category: Category?, delay: Duration?, length: Distance?, path: List<GeoPoint>, effectCode: EffectCode?, isOneWay: Boolean, drivingSide: DrivingSide, causes: List<Cause>, roadType: RoadType, roadClass: RoadClass?, roadSubclass: RoadSubClass?, turnAngle: Angle?)
constructor(id: String, category: Category? = null, delay: Duration? = null, length: Distance? = null, path: List<GeoPoint> = emptyList(), effectCode: EffectCode? = null, isOneWay: Boolean, drivingSide: DrivingSide, causes: List<Cause> = emptyList(), roadType: RoadType, roadClass: RoadClass? = null, roadSubclass: RoadSubClass? = null)