CongestionLevel

public enum CongestionLevel : String, Codable, CaseIterable

A CongestionLevel indicates the level of traffic congestion along a road segment relative to the normal flow of traffic along that segment. You can color-code a route line according to the congestion level along each segment of the route.

  • There is not enough data to determine the level of congestion along the road segment.

    Declaration

    Swift

    case unknown
  • low

    The road segment has little or no congestion. Traffic is flowing smoothly.

    Low congestion levels are conventionally highlighted in green or not highlighted at all.

    Declaration

    Swift

    case low
  • The road segment has moderate, stop-and-go congestion. Traffic is flowing but speed is impeded.

    Moderate congestion levels are conventionally highlighted in yellow.

    Declaration

    Swift

    case moderate
  • The road segment has heavy, bumper-to-bumper congestion. Traffic is barely moving.

    Heavy congestion levels are conventionally highlighted in orange.

    Declaration

    Swift

    case heavy
  • The road segment has severe congestion. Traffic may be completely stopped.

    Severe congestion levels are conventionally highlighted in red.

    Declaration

    Swift

    case severe