LaneDirection.LaneShape

  • LaneDirection.LaneShape is 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, and U_TURN_RIGHT.

  • Each constant has an associated integer value indicating the degree of the turn, for example, STRAIGHT is represented by 1 and NORMAL_LEFT by 4.

  • The UNKNOWN constant 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.Annotation interface, such as annotationType(), equals(), hashCode(), and toString().

public static abstract @interface LaneDirection.LaneShape implements Annotation

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).

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

No turn.

Constant Value: 1

public static final int UNKNOWN

Shape is unknown.

Constant Value: 0

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