com.amap.api.navi.model

## 类 NaviCongestionInfo

- java.lang.Object
- - com.amap.api.navi.model.NaviCongestionInfo

-     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)`

  - ### 方法概要

    - ### 从类继承的方法 java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 字段详细资料

    - #### inCongestionArea

          public boolean inCongestionArea

      当前自车位置是否在拥堵区域内
      Whether the current vehicle position is within the congestion area.

      如一段路拥堵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.

    - #### remainDistance

          public int remainDistance

      离自车位置最近的拥堵区域的总长度（单位：米)
      Total length of the congestion area closest to the vehicle position (unit: meters).

      如果当前自车位置已在拥堵区域内，表示的就是剩余的拥堵距离
      If the current vehicle position is already within the congestion area, this represents the remaining congestion distance

    - #### remainTime

          public 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

    - #### status

          public int status

      拥堵程度
      Congestion level.

      2-缓慢, 3-拥堵, 4-非常拥堵
      2-slow, 3-congested, 4-very congested

    - #### beginSegmentIndex

          public int beginSegmentIndex

      该拥堵区域的起始Segment的索引
      Index of the starting Segment of this congestion area

    - #### beginLinkIndex

          public int beginLinkIndex

      该拥堵区域的起始Segment中起始link的索引
      Index of the starting link in the starting Segment of this congestion area

    - #### endSegmentIndex

          public int endSegmentIndex

      该拥堵区域的结束Segment的索引
      Index of the ending Segment of this congestion area

    - #### endLinkIndex

          public int endLinkIndex

      该拥堵区域的结束Segment中结束link的索引
      Index of the ending link in the ending Segment of this congestion area

    - #### beginCoorIndex

          public int beginCoorIndex

      拥堵起点区域最近（拥堵起始点前）的形状点索引

  - ### 构造器详细资料

    - #### NaviCongestionInfo

          public NaviCongestionInfo(CoreNaviCongestionInfo congestionInfo)