AI-generated Key Takeaways
-
GMSNavigationLaneShapeis 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 = 0Objective-C
GMSNavigationLaneShapeUnknown = 0 -
Continue straight.
Declaration
Swift
case straight = 1Objective-C
GMSNavigationLaneShapeStraight = 1 -
Slight left turn (10-45 degrees).
Declaration
Swift
case slightLeft = 2Objective-C
GMSNavigationLaneShapeSlightLeft = 2 -
Slight right turn (10-45 degrees).
Declaration
Swift
case slightRight = 3Objective-C
GMSNavigationLaneShapeSlightRight = 3 -
Normal left turn (45-135 degrees).
Declaration
Swift
case normalLeft = 4Objective-C
GMSNavigationLaneShapeNormalLeft = 4 -
Normal right turn (45-135 degrees).
Declaration
Swift
case normalRight = 5Objective-C
GMSNavigationLaneShapeNormalRight = 5 -
Sharp left turn (135-175 degrees).
Declaration
Swift
case sharpLeft = 6Objective-C
GMSNavigationLaneShapeSharpLeft = 6 -
Sharp right turn (135-175 degrees).
Declaration
Swift
case sharpRight = 7Objective-C
GMSNavigationLaneShapeSharpRight = 7 -
A left turn onto the opposite side of the same street (175-180 degrees).
Declaration
Swift
case uTurnLeft = 8Objective-C
GMSNavigationLaneShapeUTurnLeft = 8 -
A right turn onto the opposite side of the same street (175-180 degrees).
Declaration
Swift
case uTurnRight = 9Objective-C
GMSNavigationLaneShapeUTurnRight = 9