目录

MapNaviBranch

Class Info

public class MapNaviBranch

道路Link分支实体类。

Public Field Summary

Qualifier and Type

Field and Description

Value

public static final int

ENTER_BRANCH

一阶进入鱼骨图。

1

public static final int

EXIT_BRANCH

一阶退出鱼骨图。

2

Public Method Summary

Qualifier and Type

Method Name and Description

int

getAttr()

获取当前鱼骨图的属性。

List<NaviLatLng>

getCoords()

获取当前道路规划范围内分支道路的坐标点集合。

String

getCurRoadID()

获取当前鱼骨图roadId。

int

getDir4k()

获取当前鱼骨图的方向(4K)。

int

getDirection()

获取当前鱼骨图的方向。

float

getDistance()

鱼骨图link长度。

List<Integer>

getEnterBranchIndexs()

进入鱼骨图link索引集合。

int

getIndex()

获取当前鱼骨图索引。

List<MapNaviBranch>

getNextBranches()

获取与当前路线相连的鱼骨图索引和引用。

List<Integer>

getNextBranchIndexs()

获取退出鱼骨图link索引集合。

Public Fields

[h2]ENTER_BRANCH

Fields

public static final int ENTER_BRANCH

一阶进入鱼骨图。

ENTER_BRANCH:1,其余常量值参阅:Constant-values。

[h2]EXIT_BRANCH

Fields

public static final int EXIT_BRANCH

一阶退出鱼骨图。

EXIT_BRANCH:2,其余常量值参阅:Constant-values。

Public Methods

[h2]getAttr

Method

public int getAttr()

获取当前鱼骨图的属性。

Returns

Type

Description

int

鱼骨图的属性

  • 0:其他场景
  • 1:一阶进入鱼骨图
  • 2:一阶退出鱼骨图

[h2]getCoords

Method

public List<NaviLatLng> getCoords()

获取当前道路规划范围内分支道路的坐标点集合。

Returns

Type

Description

List<NaviLatLng>

返回分支道路的坐标点集合。

[h2]getCurRoadID

Method

public String getCurRoadID()

获取当前鱼骨图roadId。

Returns

Type

Description

String

当前鱼骨图roadId。

[h2]getDir4k

Method

public int getDir4k()

获取当前鱼骨图方向。

Returns

Type

Description

int

鱼骨图的方向(4k旁路弱化使用)

  • 0:双向
  • 1:正向
  • 2:反向
  • 3:未知

[h2]getDirection

Method

public int getDirection()

获取当前鱼骨图的方向。

Returns

Type

Description

int

当前鱼骨图的方向

  • 1:正向
  • 2:反向

[h2]getDistance

Method

public float getDistance()

获取鱼骨图Link长度。

Returns

Type

Description

float

鱼骨图Link长度,单位:米。

[h2]getEnterBranchIndexs

Method

public List<Integer> getEnterBranchIndexs()

获取进入鱼骨图Link索引集合。

Returns

Type

Description

List<Integer>

进入鱼骨图Link索引集合。

[h2]getIndex

Method

public int getIndex()

获取当前鱼骨图索引。

Returns

Type

Description

int

当前鱼骨图索引。

[h2]getNextBranches

Method

public List<MapNaviBranch> getNextBranches()

获取与当前路线相连的鱼骨图索引和引用。

Returns

Type

Description

List<MapNaviBranch>

返回与当前道路相连的鱼骨图索引和引用。

[h2]getNextBranchIndexs

Method

public List<Integer> getNextBranchIndexs()

获取退出鱼骨图link索引集合。

Returns

Type

Description

List<Integer>

退出鱼骨图link索引集合。