目录

MapNaviBranch

Class Info

public class MapNaviBranch

Road link branch entity class.

Public Field Summary

Qualifier and Type

Field and Description

Value

public static final int

ENTER_BRANCH

Enter branch.

1

public static final int

EXIT_BRANCH

Exit branch.

2

Public Method Summary

Qualifier and Type

Method Name and Description

int

getAttr()

Obtains attributes of the current branch.

List<NaviLatLng>

getCoords()

Obtains a list of coordinate points on the branch road in the route planning scope.

String

getCurRoadID()

Obtains the road ID of the current branch.

int

getDir4k()

Obtains the direction of the current branch (4K).

int

getDirection()

Obtains the direction of the current branch.

float

getDistance()

Obtains the length of the branch link.

List<Integer>

getEnterBranchIndexs()

Obtains a list of indexes of entrance branch links.

int

getIndex()

Obtains the index of the current branch.

List<MapNaviBranch>

getNextBranches()

Obtains the index and reference of the branch connected to the current route.

List<Integer>

getNextBranchIndexs()

Obtains a list of indexes of exit branch links.

Public Fields

[h2]ENTER_BRANCH

Fields

public static final int ENTER_BRANCH

Enter branch.

ENTER_BRANCH: 1

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

[h2]EXIT_BRANCH

Fields

public static final int EXIT_BRANCH

Exit branch.

EXIT_BRANCH: 2

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

Public Methods

[h2]getAttr

Method

public int getAttr()

Obtains attributes of the current branch.

Returns

Type

Description

int

Attributes of the current branch.

  • 0: Others
  • 1: enter branch
  • 2: exit branch

[h2]getCoords

Method

public List<NaviLatLng> getCoords()

Obtains a list of coordinate points on the branch road in the route planning scope.

Returns

Type

Description

List<NaviLatLng>

A list of coordinate points on the branch road.

[h2]getCurRoadID

Method

public String getCurRoadID()

Obtains the road ID of the current branch.

Returns

Type

Description

String

Road ID of the current branch.

[h2]getDir4k

Method

public int getDir4k()

Obtains the direction of the current branch (4K).

Returns

Type

Description

int

Direction of the current branch. (It is used for 4K bypass weakening.)

  • 0: bidirectional
  • 1: forward direction
  • 2: reverse direction
  • 3: unknown

[h2]getDirection

Method

public int getDirection()

Obtains the direction of the current branch.

Returns

Type

Description

int

Direction of the current branch.

  • 1: forward direction
  • 2: reverse direction

[h2]getDistance

Method

public float getDistance()

Obtains the length of the branch link.

Returns

Type

Description

float

Length of the branch link, in meters.

[h2]getEnterBranchIndexs

Method

public List<Integer> getEnterBranchIndexs()

Obtains a list of indexes of entrance branch links.

Returns

Type

Description

List<Integer>

List of indexes of entrance branch links.

[h2]getIndex

Method

public int getIndex()

Obtains the index of the current branch.

Returns

Type

Description

int

Index of the current branch.

[h2]getNextBranches

Method

public List<MapNaviBranch> getNextBranches()

Obtains the index and reference of the branch connected to the current route.

Returns

Type

Description

List<MapNaviBranch>

Index and reference of the branch connected to the current route.

[h2]getNextBranchIndexs

Method

public List<Integer> getNextBranchIndexs()

Obtains a list of indexes of exit branch links.

Returns

Type

Description

List<Integer>

List of indexes of exit branch links.