public class NaviCongestionInfo
extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
int |
beginCoorIndex
拥堵起点区域最近(拥堵起始点前)的形状点索引
|
int |
beginLinkIndex
该拥堵区域的起始Segment中起始link的索引
Index of the starting link in the starting Segment of this congestion area |
int |
beginSegmentIndex
该拥堵区域的起始Segment的索引
Index of the starting Segment of this congestion area |
int |
endLinkIndex
该拥堵区域的结束Segment中结束link的索引
Index of the ending link in the ending Segment of this congestion area |
int |
endSegmentIndex
该拥堵区域的结束Segment的索引
Index of the ending Segment of this congestion area |
boolean |
inCongestionArea
当前自车位置是否在拥堵区域内
Whether the current vehicle position is within the congestion area. |
int |
remainDistance
离自车位置最近的拥堵区域的总长度(单位:米)
Total length of the congestion area closest to the vehicle position (unit: meters). |
int |
remainTime
预计通过该拥区域的时长(单位:秒)
Estimated time to pass through this congestion area (unit: seconds) 如果当前自车位置已在拥堵区域内,表示的就是剩余拥堵段的通过时长 If the current vehicle position is already within the congestion area, this represents the passing time of the remaining congestion section |
int |
status
拥堵程度
Congestion level. |
| 构造器和说明 |
|---|
NaviCongestionInfo(CoreNaviCongestionInfo congestionInfo) |
public boolean inCongestionArea
如一段路拥堵2公里,中间可能有200米是畅通的,当自车处于这200米时,该值为false.
For example, if a road is congested for 2 kilometers, there may be 200 meters in the middle that is clear. When the vehicle is in this 200-meter section, this value is false.
public int remainDistance
如果当前自车位置已在拥堵区域内,表示的就是剩余的拥堵距离
If the current vehicle position is already within the congestion area, this represents the remaining congestion distance
public int remainTime
如果当前自车位置已在拥堵区域内,表示的就是剩余拥堵段的通过时长
If the current vehicle position is already within the congestion area, this represents the passing time of the remaining congestion section
public int status
2-缓慢, 3-拥堵, 4-非常拥堵
2-slow, 3-congested, 4-very congested
public int beginSegmentIndex
public int beginLinkIndex
public int endSegmentIndex
public int endLinkIndex
public int beginCoorIndex