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. |
void |
setCoords(java.util.List<NaviLatLng> coors)
设置该Link道路坐标点集
Set the coordinate point set of this Link road |
void |
setLength(int length)
设置该Link道路长度,单位:米
Set the road length of this Link, unit: meters |
void |
setLinkType(int linkType)
设置道路类型
Set road type. |
void |
setOwnership(int ownership) |
void |
setRoadClass(int roadClass)
设置该Link道路等级
Set the road grade of this Link. |
void |
setRoadName(java.lang.String roadName)
设置该Link道路名称
Set the road name of this Link |
void |
setRoadType(int roadType)
设置该Link道路类型
Set the road type of this Link. |
void |
setTime(int time)
设置该Link道路耗时
Set the time consumed by this Link road |
void |
setTrafficFineStatus(int trafficFineStatus)
设置路况状态
Set traffic status |
void |
setTrafficLights(boolean trafficLights)
设置该Link道路是否有红绿灯
Set whether this Link road has traffic lights |
void |
setTrafficStatus(int trafficStatus)
设置路况状态
Set traffic status |
public java.lang.String getRoadName()
public void setRoadName(java.lang.String roadName)
roadName - 该Link道路名称public int getLength()
public void setLength(int length)
length - 该Link道路长度public java.util.List<NaviLatLng> getCoords()
public void setCoords(java.util.List<NaviLatLng> coors)
coors - 该Link道路坐标点集public int getTime()
public void setTime(int time)
time - 该Link道路耗时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 void setRoadClass(int roadClass)
* 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 void setTrafficLights(boolean trafficLights)
trafficLights - 该Link道路是否有红绿灯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 void setRoadType(int roadType)
1 主路
1 Main road
2 内部道路
2 Internal road
3 高架
3 Viaduct
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 void setOwnership(int ownership)
ownership - 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 void setLinkType(int linkType)
0-普通道路
0-Ordinary road
1-航道
1-Waterway
2-隧道
2-Tunnel
3-桥梁
3-Bridge
4-地下交通通道
4-Underground traffic passage
linkType - public int getTrafficStatus()
注意:该接口仅驾车模式有效
Note: This interface is only valid in driving mode
TrafficStatusTrafficStatuspublic void setTrafficStatus(int trafficStatus)
trafficStatus - public int getTrafficFineStatus()
public void setTrafficFineStatus(int trafficFineStatus)
trafficFineStatus -