ManeuverDirection

public enum ManeuverDirection : 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.

  • The maneuver requires a sharp turn to the right.

    Declaration

    Swift

    case sharpRight = "sharp right"
  • 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 = "slight right"
  • The maneuver requires no notable change in direction, or the destination is straight ahead.

    Declaration

    Swift

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

    Declaration

    Swift

    case slightLeft = "slight left"
  • 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 = "sharp left"
  • 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 = "uturn"