Tec

public struct Tec

The Tec class contains details of a traffic event.

Lifecycle

  • Initializes a announcement with all its initial values.

    Declaration

    Swift

    public init(causes: [Cause], effectCode: Int)

    Parameters

    causes

    A list of the causes of a traffic event.

    effectCode

    The effect of the incident on the traffic flow as defined in the TPEG2-TEC standard.

Public

  • A list of the causes of a traffic event.

    Declaration

    Swift

    public let causes: [Cause]
  • The effect of the incident on the traffic flow as defined in the TPEG2-TEC standard.

    Declaration

    Swift

    public let effectCode: Int