Class Info |
|---|
public class LaneDirection Lane direction highlight information class. |
Constructor Name |
|---|
| Parameterless constructor for the LaneDirection class. |
LaneDirection(int shape, boolean isRecommended) Creates a LaneDirection instance based on the passed lane direction and the parameter indicating whether to highlight the lane. |
Qualifier and Type | Field and Description | value |
|---|---|---|
public static final int | Unknown direction. | 0x1 |
public static final int | Straight. | 0x2 |
public static final int | Left front. | 0x3 |
public static final int | Right front. | 0x4 |
public static final int | Left turn. | 0x5 |
public static final int | Right turn. | 0x6 |
public static final int | Rear left. | 0x7 |
public static final int | Rear right. | 0x8 |
public static final int | Left U-turn. | 0x9 |
public static final int | Right U-turn. | 0xA |
Constructor |
|---|
public LaneDirection() Parameterless constructor for the LaneDirection class. |
Constructor |
|---|
public LaneDirection(int shape, boolean isRecommended) Creates a LaneDirection instance based on the passed lane direction and the parameter indicating whether to highlight the lane. |
Parameters
Name | Description |
|---|---|
shape | Lane direction. For details, please refer to shape types. |
isRecommended | Indicates whether to highlight the lane.
|
Fields |
|---|
public static final int SHAPE_UNKNOWN Unknown direction. KIND_INNER_LINK: 0x1 For other constant values, please refer to Constant-values. |
Fields |
|---|
public static final int SHAPE_STRAIGHT Straight. KIND_INNER_LINK: 0x2 For other constant values, please refer to Constant-values. |
Fields |
|---|
public static final int SHAPE_SLIGHT_LEFT Left front. KIND_INNER_LINK: 0x3 For other constant values, please refer to Constant-values. |
Fields |
|---|
public static final int SHAPE_SLIGHT_RIGHT Right front. KIND_INNER_LINK: 0x4 For other constant values, please refer to Constant-values. |
Fields |
|---|
public static final int SHAPE_NORMAL_LEFT Left turn. KIND_INNER_LINK: 0x5 For other constant values, please refer to Constant-values. |
Fields |
|---|
public static final int SHAPE_NORMAL_LEFT Right turn. KIND_INNER_LINK: 0x6 For other constant values, please refer to Constant-values. |
Fields |
|---|
public static final int SHAPE_SHARP_LEFT Rear left. KIND_INNER_LINK: 0x7 For other constant values, please refer to Constant-values. |
Fields |
|---|
public static final int SHAPE_SHARP_RIGHT Rear right. KIND_INNER_LINK: 0x8 For other constant values, please refer to Constant-values. |
Fields |
|---|
public static final int SHAPE_U_TURN_LEFT Left U-turn. KIND_INNER_LINK: 0x9 For other constant values, please refer to Constant-values. |
Fields |
|---|
public static final int SHAPE_U_TURN_RIGHT Right U-turn. KIND_INNER_LINK: 0xA For other constant values, please refer to Constant-values. |
Method |
|---|
public int getShape() Obtains the lane direction. |
Returns
Type | Description |
|---|---|
int | Lane direction. |