ManeuverDirection

@objc(MBManeuverDirection)
public enum ManeuverDirection : Int, CustomStringConvertible

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.

  • The step does not have a particular maneuver direction associated with it.

    This maneuver direction is used as a workaround for bridging to Objective-C which does not support nullable enumeration-typed values.

    Declaration

    Swift

    case none
  • The maneuver requires a sharp turn to the right.

    Declaration

    Swift

    case sharpRight
  • The maneuver requires a turn to the right, a merge to the right, or an exit on the right, or the destination is on the right.

    Declaration

    Swift

    case right
  • The maneuver requires a slight turn to the right.

    Declaration

    Swift

    case slightRight
  • The maneuver requires no notable change in direction, or the destination is straight ahead.

    Declaration

    Swift

    case straightAhead
  • The maneuver requires a slight turn to the left.

    Declaration

    Swift

    case slightLeft
  • The maneuver requires a turn to the left, a merge to the left, or an exit on the left, or the destination is on the right.

    Declaration

    Swift

    case left
  • The maneuver requires a sharp turn to the left.

    Declaration

    Swift

    case sharpLeft
  • The maneuver requires a U-turn when possible.

    Use the difference between the step’s initial and final headings to distinguish between a U-turn to the left (typical in countries that drive on the right) and a U-turn on the right (typical in countries that drive on the left). If the difference in headings is greater than 180 degrees, the maneuver requires a U-turn to the left. If the difference in headings is less than 180 degrees, the maneuver requires a U-turn to the right.

    Declaration

    Swift

    case uTurn
  • Declaration

    Swift

    public var description: String { get }