目录

LaneDirection

Class Info

public class LaneDirection

Lane direction highlight information class.

Public Constructor Summary

Constructor Name

LaneDirection()

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.

Public Field Summary

Qualifier and Type

Field and Description

value

public static final int

SHAPE_UNKNOWN

Unknown direction.

0x1

public static final int

SHAPE_STRAIGHT

Straight.

0x2

public static final int

SHAPE_SLIGHT_LEFT

Left front.

0x3

public static final int

SHAPE_SLIGHT_RIGHT

Right front.

0x4

public static final int

SHAPE_NORMAL_LEFT

Left turn.

0x5

public static final int

SHAPE_NORMAL_RIGHT

Right turn.

0x6

public static final int

SHAPE_SHARP_LEFT

Rear left.

0x7

public static final int

SHAPE_SHARP_RIGHT

Rear right.

0x8

public static final int

SHAPE_U_TURN_LEFT

Left U-turn.

0x9

public static final int

SHAPE_U_TURN_RIGHT

Right U-turn.

0xA

Public Method Summary

Qualifier and Type

Method Name and Description

int

getShape()

Obtains the lane direction.

boolean

isRecommended()

Checks whether to highlight the lane.

String

toString()

Obtains a character string of the lane direction and parameter indicating whether to highlight the lane.

Public Constructors

[h2]LaneDirection

Constructor

public LaneDirection()

Parameterless constructor for the LaneDirection class.

[h2]LaneDirection(int shape, boolean isRecommended)

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.

  • true: yes
  • false: no

Public Fields

[h2]SHAPE_UNKNOWN

Fields

public static final int SHAPE_UNKNOWN

Unknown direction.

KIND_INNER_LINK: 0x1

For other constant values, please refer to Constant-values.

[h2]SHAPE_STRAIGHT

Fields

public static final int SHAPE_STRAIGHT

Straight.

KIND_INNER_LINK: 0x2

For other constant values, please refer to Constant-values.

[h2]SHAPE_SLIGHT_LEFT

Fields

public static final int SHAPE_SLIGHT_LEFT

Left front.

KIND_INNER_LINK: 0x3

For other constant values, please refer to Constant-values.

[h2]SHAPE_SLIGHT_RIGHT

Fields

public static final int SHAPE_SLIGHT_RIGHT

Right front.

KIND_INNER_LINK: 0x4

For other constant values, please refer to Constant-values.

[h2]SHAPE_NORMAL_LEFT

Fields

public static final int SHAPE_NORMAL_LEFT

Left turn.

KIND_INNER_LINK: 0x5

For other constant values, please refer to Constant-values.

[h2]SHAPE_NORMAL_RIGHT

Fields

public static final int SHAPE_NORMAL_LEFT

Right turn.

KIND_INNER_LINK: 0x6

For other constant values, please refer to Constant-values.

[h2]SHAPE_SHARP_LEFT

Fields

public static final int SHAPE_SHARP_LEFT

Rear left.

KIND_INNER_LINK: 0x7

For other constant values, please refer to Constant-values.

[h2]SHAPE_SHARP_RIGHT

Fields

public static final int SHAPE_SHARP_RIGHT

Rear right.

KIND_INNER_LINK: 0x8

For other constant values, please refer to Constant-values.

[h2]SHAPE_U_TURN_LEFT

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.

[h2]SHAPE_U_TURN_RIGHT

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.

Public Methods

[h2]getShape

Method

public int getShape()

Obtains the lane direction.

Returns

Type

Description

int

Lane direction.

[h2]isRecommended

Method

public boolean isRecommended()

Checks whether to highlight the lane.

Returns

Type

Description

boolean

Whether to highlight the lane.

true: yes

false: no

[h2]toString

Method

public String toString()

Obtains a character string of the lane direction and parameter indicating whether to highlight the lane.

Returns

Type

Description

String

Character string of the lane direction and parameter indicating whether to highlight the lane.