public class AMapLaneInfo
extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
int[] |
backgroundLane
背景车道
Background lanes. |
int[] |
frontLane
前景车道
Foreground lanes. |
int |
laneCount
车道个数
Number of lanes |
| 构造器和说明 |
|---|
AMapLaneInfo() |
| 限定符和类型 | 方法和说明 |
|---|---|
char[] |
getLaneTypeIdArray()
获取车道类型数组,数组大小固定为2
Get the lane type array, with a fixed array size of 2. |
boolean |
isRecommended()
道路是否被推荐
Whether the road is recommended |
public int[] backgroundLane
道路背景数据数组,可用于装载官方的DriveWayView,并显示。在AMapNaviListener.showLaneInfo(AMapLaneInfo)回调中使用。
车道类型枚举详情请见 LaneAction
Road background data array, which can be used to load the official DriveWayView and display it. Used in the AMapNaviListener.showLaneInfo(AMapLaneInfo) callback.
For lane type enumeration details, see LaneAction
public int[] frontLane
道路推荐数据数组,可用于装载官方的DriveWayView,并显示。在AMapNaviListener.showLaneInfo(AMapLaneInfo)回调中使用。
车道类型枚举详情请见 LaneAction
Road recommendation data array, which can be used to load the official DriveWayView and display it. Used in the AMapNaviListener.showLaneInfo(AMapLaneInfo) callback.
For lane type enumeration details, see LaneAction
public int laneCount
public boolean isRecommended()
public char[] getLaneTypeIdArray()
在AMapNaviListener.showLaneInfo(AMapLaneInfo[],byte[],byte[])回调中调用。
数组中元素代表车道转向类型,第一个元素表示该车道可以执行的动作,第二个元素表示用户需要执行的动作,若为F表示不推荐用户选择该车道。
如:
[4,0] 表示该车道为直行和右转车道,用户可以选择该车道直行
[1,F] 表示该车道为左转车道,用户不可以选择该车道
数组枚举如下:
0 直行车道
1 左转车道
2 左转或直行车道
3 右转车道
4 右转或直行车道
5 左掉头车道
6 左转或者右转车道
7 左转或右转或直行车道
8 右转掉头车道
9 直行或左转掉头车道
A 直行或右转掉头车道
B 左转或左掉头车道
C 右转或右掉头车道
F 不可以选择该车道
Called in the AMapNaviListener.showLaneInfo(AMapLaneInfo[],byte[],byte[]) callback.
Elements in the array represent lane turn types. The first element indicates the actions that can be performed on the lane, and the second element indicates the actions the user needs to perform. If it is F, it means the user is not recommended to choose this lane.
For example:
[4,0] indicates that the lane is a straight and right turn lane, and the user can choose to go straight on this lane
[1,F] indicates that the lane is a left turn lane, and the user cannot choose this lane
Array enumeration as follows:
0 Straight lane
1 Left turn lane
2 Left turn or straight lane
3 Right turn lane
4 Right turn or straight lane
5 Left U-turn lane
6 Left turn or right turn lane
7 Left turn or right turn or straight lane
8 Right turn U-turn lane
9 Straight or left turn U-turn lane
A Straight or right turn U-turn lane
B Left turn or left U-turn lane
C Right turn or right U-turn lane
F This lane cannot be selected