Cause

public struct Cause

Represents information about the cause of a traffic event.

  • Initalizer

    Declaration

    Swift

    public init(mainCauseCode: Int)

    Parameters

    mainCauseCode

    The main cause of the traffic event as defined in the TPEG2-TEC standard.

  • The main cause of the traffic event as defined in the TPEG2-TEC standard.

    Declaration

    Swift

    public let mainCauseCode: Int