TrafficEvent

public struct TrafficEvent

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.

Public

  • id

    Identifier of the traffic event.

    Declaration

    Swift

    public let id: String
  • Category of the traffic event.

    Declaration

    Swift

    public let category: Category?
  • Delay that this event adds to the affected roads.

    Declaration

    Swift

    public let delay: Measurement<UnitDuration>?
  • Traffic path from tail to head.

    Declaration

    Swift

    public let path: [CLLocationCoordinate2D]
  • Effect code for the event.

    Declaration

    Swift

    public let effectCode: EffectCode?
  • True if the event is on a one way road.

    Declaration

    Swift

    public let isOneWay: Bool
  • Driving side of the event.

    Declaration

    Swift

    public let drivingSide: DrivingSide
  • Causes as defined in TPEG2-TEC.

    Declaration

    Swift

    public let causes: [Cause]
  • The road type of the road at the start of the event.

    Declaration

    Swift

    public let roadType: RoadType
  • The road class of the road at the start of the event.

    Declaration

    Swift

    public let roadClass: RoadClass?
  • The sub class for the road class, if present.

    Declaration

    Swift

    public let roadSubclass: RoadSubClass?