TrafficIncident

public struct TrafficIncident

Represents a traffic incident.

Lifecycle

  • Initializes traffic incident.

    Declaration

    Swift

    public init(
        line: Line,
        marker: Marker,
        section: TrafficSection
    )

    Parameters

    line

    The line of the traffic incident.

    marker

    The marker of the traffic incident placed at the start of the line.

    section

    The section of the traffic incident.

Public

  • The line of the traffic incident.

    Declaration

    Swift

    public let line: Line
  • The marker of the traffic incident placed at the start of the line.

    Declaration

    Swift

    public let marker: Marker
  • The section of the traffic incident

    Declaration

    Swift

    public let section: TrafficSection