AI-generated Key Takeaways
-
LaneDirection.LaneShapeis an annotation interface defining a set of values that specify the shape of the road path continuing from a lane. -
It provides constants representing various turn directions like
STRAIGHT,NORMAL_LEFT,NORMAL_RIGHT,SHARP_LEFT,SHARP_RIGHT,SLIGHT_LEFT,SLIGHT_RIGHT,U_TURN_LEFT, andU_TURN_RIGHT. -
Each constant has an associated integer value indicating the degree of the turn, for example,
STRAIGHTis represented by 1 andNORMAL_LEFTby 4. -
The
UNKNOWNconstant with a value of 0 is used when the shape of the road path is not known. -
It inherits methods from the
java.lang.annotation.Annotationinterface, such asannotationType(),equals(),hashCode(), andtoString().
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
Constants
public static final int NORMAL_LEFT
Normal left turn (45-135 degrees).
public static final int NORMAL_RIGHT
Normal right turn (45-135 degrees).
public static final int SHARP_LEFT
Sharp left turn (135-175 degrees).
public static final int SHARP_RIGHT
Sharp right turn (135-175 degrees).
public static final int SLIGHT_LEFT
Slight left turn (10-45 degrees).
public static final int SLIGHT_RIGHT
Slight right turn (10-45 degrees).
public static final int STRAIGHT
No turn.
public static final int UNKNOWN
Shape is unknown.
public static final int U_TURN_LEFT
A left turn onto the opposite side of the same street (175-180 degrees).
public static final int U_TURN_RIGHT
A right turn onto the opposite side of the same street (175-180 degrees).