TrafficIncident

public struct TrafficIncident

Represents a traffic incident.

Important

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

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 maker: Marker
  • The section of the traffic incident

    Declaration

    Swift

    public let section: TrafficSection