public class AMapNaviLink
extends java.lang.Object
| 构造器和说明 |
|---|
AMapNaviLink() |
| 限定符和类型 | 方法和说明 |
|---|---|
java.util.List<NaviLatLng> |
getCoords()
获取该Link道路坐标点集
Get the coordinate point set of this Link road |
int |
getLength()
获取该Link道路长度
Get the road length of this Link |
int |
getLinkType()
获取道路类型
Get road type. |
int |
getOwnershipType()
获取Link的ownership类型, 注意:只针对驾车
Get the ownership type of Link, Note: Only for driving. |
int |
getRoadClass()
获取该Link道路等级
Get the road grade of this Link. |
java.lang.String |
getRoadName()
获取该Link道路名称
Get the road name of this Link |
int |
getRoadType()
获取该Link道路类型
Get the road type of this Link. |
int |
getTime()
获取该Link道路耗时.
|
int |
getTrafficFineStatus() |
boolean |
getTrafficLights()
获取该Link道路是否有红绿灯(一个Link最多一个红绿灯)
Get whether this Link road has traffic lights (a Link has at most one traffic light) |
int |
getTrafficStatus()
获取路况状态:0-未知状态,1-通畅,2-缓行,3-阻塞,4-严重阻塞
Get traffic status: 0-Unknown status, 1-Smooth, 2-Slow, 3-Congested, 4-Severely congested. |
public java.lang.String getRoadName()
public int getLength()
public java.util.List<NaviLatLng> getCoords()
public int getTime()
public int getRoadClass()
* 0 高速公路
* 0 Expressway
* 1 国道
* 1 National highway
* 2 省道
* 2 Provincial highway
* 3 县道
* 3 County road
* 4 乡公路
* 4 Township road
* 5 县乡村内部道路
* 5 County, township and village internal roads
* 6 主要大街、城市快速道
* 6 Main streets, urban expressways
* 7 主要道路
* 7 Main roads
* 8 次要道路
* 8 Secondary roads
* 9 普通道路
* 9 Ordinary roads
* 10 非导航道路
* 10 Non-navigation roads
public boolean getTrafficLights()
public int getRoadType()
1 主路
1 Main road
2 路口内部道路
2 Intersection internal road
3 JCT道路
3 JCT road
4 环岛
4 Roundabout
5 服务区
5 Service area
6 匝道
6 Ramp
7 辅路
7 Auxiliary road
8 匝道与JCT
8 Ramp and JCT
9 出口
9 Exit
10 入口
10 Entrance
11 A类右转专用道
11 Type A right-turn only lane
12 B类右转专用道
12 Type B right-turn only lane
13 A类左转专用道
13 Type A left-turn only lane
14 B类左转专用道
14 Type B left-turn only lane
15 普通道路
15 Ordinary road
16 左右转专用道
16 Left and right turn only lane
56 服务区与匝道
56 Service area and ramp
53 服务区与JCT
53 Service area and JCT
58 服务区与匝道以及JCT
58 Service area, ramp and JCT
public int getOwnershipType()
0 公共道路
0 Public road
1 内部道路
1 Internal road
2 私有道路
2 Private road
3 地下停车场道路
3 Underground parking road
4 立体停车场道路
4 Stereoscopic parking road
AMapOwnershipTypeAMapOwnershipTypepublic int getLinkType()
0-普通道路 1-航道 2-隧道 3-桥梁 4-地下交通通道
0-Ordinary road 1-Waterway 2-Tunnel 3-Bridge 4-Underground traffic passage
注意:该接口仅驾车模式有效
Note: This interface is only valid in driving mode
public int getTrafficStatus()
注意:该接口仅驾车模式有效
Note: This interface is only valid in driving mode
TrafficStatusTrafficStatuspublic int getTrafficFineStatus()