GoogleNavigation Framework Reference

  • GMSNavigationLaneShape is an enum defining the shape of a traffic lane for navigation purposes.

  • It provides values for various lane directions, including straight, left/right turns with different angles, and U-turns.

  • Each lane shape is represented by an integer value, accessible through both Swift and Objective-C.

  • Developers can use this enum to understand and display the intended path of a lane during navigation.

GMSNavigationLaneShape

enum GMSNavigationLaneShape : NSInteger {}

A set of values describing the shape of a lane.

  • Unknown lane shape.

    Declaration

    Swift

    case unknown = 0

    Objective-C

    GMSNavigationLaneShapeUnknown = 0
  • Continue straight.

    Declaration

    Swift

    case straight = 1

    Objective-C

    GMSNavigationLaneShapeStraight = 1
  • Slight left turn (10-45 degrees).

    Declaration

    Swift

    case slightLeft = 2

    Objective-C

    GMSNavigationLaneShapeSlightLeft = 2
  • Slight right turn (10-45 degrees).

    Declaration

    Swift

    case slightRight = 3

    Objective-C

    GMSNavigationLaneShapeSlightRight = 3
  • Normal left turn (45-135 degrees).

    Declaration

    Swift

    case normalLeft = 4

    Objective-C

    GMSNavigationLaneShapeNormalLeft = 4
  • Normal right turn (45-135 degrees).

    Declaration

    Swift

    case normalRight = 5

    Objective-C

    GMSNavigationLaneShapeNormalRight = 5
  • Sharp left turn (135-175 degrees).

    Declaration

    Swift

    case sharpLeft = 6

    Objective-C

    GMSNavigationLaneShapeSharpLeft = 6
  • Sharp right turn (135-175 degrees).

    Declaration

    Swift

    case sharpRight = 7

    Objective-C

    GMSNavigationLaneShapeSharpRight = 7
  • A left turn onto the opposite side of the same street (175-180 degrees).

    Declaration

    Swift

    case uTurnLeft = 8

    Objective-C

    GMSNavigationLaneShapeUTurnLeft = 8
  • A right turn onto the opposite side of the same street (175-180 degrees).

    Declaration

    Swift

    case uTurnRight = 9

    Objective-C

    GMSNavigationLaneShapeUTurnRight = 9