LaneDirection.LaneShape
Stay organized with collections
Save and categorize content based on your preferences.
A set of values that specify the shape of the road path continuing from the Lane.
Constant Summary
int |
NORMAL_LEFT |
Normal left turn (45-135 degrees). |
int |
NORMAL_RIGHT |
Normal right turn (45-135 degrees). |
int |
SHARP_LEFT |
Sharp left turn (135-175 degrees). |
int |
SHARP_RIGHT |
Sharp right turn (135-175 degrees). |
int |
SLIGHT_LEFT |
Slight left turn (10-45 degrees). |
int |
SLIGHT_RIGHT |
Slight right turn (10-45 degrees). |
int |
STRAIGHT |
No turn. |
int |
UNKNOWN |
Shape is unknown. |
int |
U_TURN_LEFT |
A left turn onto the opposite side of the same street (175-180 degrees). |
int |
U_TURN_RIGHT |
A right turn onto the opposite side of the same street (175-180 degrees). |
Inherited Method Summary
From interface
java.lang.annotation.Annotation
abstract
Class<? extends Annotation>
|
annotationType()
|
abstract
boolean
|
equals(Object arg0)
|
abstract
int
|
hashCode()
|
abstract
String
|
toString()
|
Constants
public
static
final
int
NORMAL_LEFT
Normal left turn (45-135 degrees).
Constant Value:
4
public
static
final
int
NORMAL_RIGHT
Normal right turn (45-135 degrees).
Constant Value:
5
public
static
final
int
SHARP_LEFT
Sharp left turn (135-175 degrees).
Constant Value:
6
public
static
final
int
SHARP_RIGHT
Sharp right turn (135-175 degrees).
Constant Value:
7
public
static
final
int
SLIGHT_LEFT
Slight left turn (10-45 degrees).
Constant Value:
2
public
static
final
int
SLIGHT_RIGHT
Slight right turn (10-45 degrees).
Constant Value:
3
public
static
final
int
STRAIGHT
public
static
final
int
UNKNOWN
public
static
final
int
U_TURN_LEFT
A left turn onto the opposite side of the same street (175-180 degrees).
Constant Value:
8
public
static
final
int
U_TURN_RIGHT
A right turn onto the opposite side of the same street (175-180 degrees).
Constant Value:
9
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-28 UTC.
[null,null,["Last updated 2025-08-28 UTC."],[[["\u003cp\u003e\u003ccode\u003eLaneDirection.LaneShape\u003c/code\u003e is an annotation interface defining a set of values that specify the shape of the road path continuing from a lane.\u003c/p\u003e\n"],["\u003cp\u003eIt provides constants representing various turn directions like \u003ccode\u003eSTRAIGHT\u003c/code\u003e, \u003ccode\u003eNORMAL_LEFT\u003c/code\u003e, \u003ccode\u003eNORMAL_RIGHT\u003c/code\u003e, \u003ccode\u003eSHARP_LEFT\u003c/code\u003e, \u003ccode\u003eSHARP_RIGHT\u003c/code\u003e, \u003ccode\u003eSLIGHT_LEFT\u003c/code\u003e, \u003ccode\u003eSLIGHT_RIGHT\u003c/code\u003e, \u003ccode\u003eU_TURN_LEFT\u003c/code\u003e, and \u003ccode\u003eU_TURN_RIGHT\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eEach constant has an associated integer value indicating the degree of the turn, for example, \u003ccode\u003eSTRAIGHT\u003c/code\u003e is represented by 1 and \u003ccode\u003eNORMAL_LEFT\u003c/code\u003e by 4.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eUNKNOWN\u003c/code\u003e constant with a value of 0 is used when the shape of the road path is not known.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits methods from the \u003ccode\u003ejava.lang.annotation.Annotation\u003c/code\u003e interface, such as \u003ccode\u003eannotationType()\u003c/code\u003e, \u003ccode\u003eequals()\u003c/code\u003e, \u003ccode\u003ehashCode()\u003c/code\u003e, and \u003ccode\u003etoString()\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# LaneDirection.LaneShape\n\npublic static abstract @interface **LaneDirection.LaneShape** implements Annotation \nA set of values that specify the shape of the road path continuing from the Lane. \n\n### Constant Summary\n\n|-----|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------|\n| int | [NORMAL_LEFT](/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/LaneDirection.LaneShape#NORMAL_LEFT) | Normal left turn (45-135 degrees). |\n| int | [NORMAL_RIGHT](/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/LaneDirection.LaneShape#NORMAL_RIGHT) | Normal right turn (45-135 degrees). |\n| int | [SHARP_LEFT](/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/LaneDirection.LaneShape#SHARP_LEFT) | Sharp left turn (135-175 degrees). |\n| int | [SHARP_RIGHT](/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/LaneDirection.LaneShape#SHARP_RIGHT) | Sharp right turn (135-175 degrees). |\n| int | [SLIGHT_LEFT](/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/LaneDirection.LaneShape#SLIGHT_LEFT) | Slight left turn (10-45 degrees). |\n| int | [SLIGHT_RIGHT](/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/LaneDirection.LaneShape#SLIGHT_RIGHT) | Slight right turn (10-45 degrees). |\n| int | [STRAIGHT](/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/LaneDirection.LaneShape#STRAIGHT) | No turn. |\n| int | [UNKNOWN](/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/LaneDirection.LaneShape#UNKNOWN) | Shape is unknown. |\n| int | [U_TURN_LEFT](/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/LaneDirection.LaneShape#U_TURN_LEFT) | A left turn onto the opposite side of the same street (175-180 degrees). |\n| int | [U_TURN_RIGHT](/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/LaneDirection.LaneShape#U_TURN_RIGHT) | A right turn onto the opposite side of the same street (175-180 degrees). |\n\n### Inherited Method Summary\n\nFrom interface java.lang.annotation.Annotation \n\n|----------------------------------------|---------------------|\n| abstract Class\\\u003c? extends Annotation\\\u003e | annotationType() |\n| abstract boolean | equals(Object arg0) |\n| abstract int | hashCode() |\n| abstract String | toString() |\n\nConstants\n---------\n\n#### public static final int\n**NORMAL_LEFT**\n\nNormal left turn (45-135 degrees). \nConstant Value: 4 \n\n#### public static final int\n**NORMAL_RIGHT**\n\nNormal right turn (45-135 degrees). \nConstant Value: 5 \n\n#### public static final int\n**SHARP_LEFT**\n\nSharp left turn (135-175 degrees). \nConstant Value: 6 \n\n#### public static final int\n**SHARP_RIGHT**\n\nSharp right turn (135-175 degrees). \nConstant Value: 7 \n\n#### public static final int\n**SLIGHT_LEFT**\n\nSlight left turn (10-45 degrees). \nConstant Value: 2 \n\n#### public static final int\n**SLIGHT_RIGHT**\n\nSlight right turn (10-45 degrees). \nConstant Value: 3 \n\n#### public static final int\n**STRAIGHT**\n\nNo turn. \nConstant Value: 1 \n\n#### public static final int\n**UNKNOWN**\n\nShape is unknown. \nConstant Value: 0 \n\n#### public static final int\n**U_TURN_LEFT**\n\nA left turn onto the opposite side of the same street (175-180 degrees). \nConstant Value: 8 \n\n#### public static final int\n**U_TURN_RIGHT**\n\nA right turn onto the opposite side of the same street (175-180 degrees). \nConstant Value: 9"]]