Tec

public struct Tec

The Tec class contains details of a traffic event.

Important

This is a Public Preview API. It may be changed or removed at any time.

Lifecycle

  • Initializes a announcement with all its initial values.

    Declaration

    Swift

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

    Parameters

    causes

    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

  • 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