Other Enumerations

The following enumerations are available globally.

  • 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.

    See more

    Declaration

    Swift

    public enum CongestionLevel : String, Codable, CaseIterable
  • A Weight enum represents the weight given to a specific Match by the Directions API. The default metric is a compound index called routability, which is duration-based with additional penalties for less desirable maneuvers.

    Declaration

    Swift

    public enum Weight : Equatable
  • A TransportType specifies the mode of transportation used for part of a route.

    See more

    Declaration

    Swift

    public enum TransportType : String, Codable
  • A ManeuverType specifies the type of maneuver required to complete the route step. You can pair a maneuver type with a ManeuverDirection to choose an appropriate visual or voice prompt to present the user.

    To avoid a complex series of if-else-if statements or switch statements, use pattern matching with a single switch statement on a tuple that consists of the maneuver type and maneuver direction.

    See more

    Declaration

    Swift

    public enum ManeuverType : String, Codable
  • A ManeuverDirection clarifies a ManeuverType with directional information. The exact meaning of the maneuver direction for a given step depends on the step’s maneuver type; see the ManeuverType documentation for details.

    See more

    Declaration

    Swift

    public enum ManeuverDirection : String, Codable
  • A road sign design standard.

    A sign standard can affect how a user interface should display information related to the road. For example, a speed limit from the RouteLeg.segmentMaximumSpeedLimits property may appear in a different-looking view depending on the RouteStep.speedLimitSign property.

    See more

    Declaration

    Swift

    public enum SignStandard : String, Codable