com.amap.api.navi.model

## 类 AMapNaviStep

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

-     public class AMapNaviStep
      extends java.lang.Object

  路段类
  Route segment class

- - ### 构造器概要

    构造器
    构造器和说明
    `AMapNaviStep()`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `int` | `getChargeLength()` 获取该路段收费路段距离 Get the distance of toll road segment in this route segment.
    `java.util.List<NaviLatLng>` | `getCoords()` 获取该路段坐标点集 Get the coordinate point set of this route segment
    `int` | `getEndIndex()` 获取该路段终点index Get the end index of this route segment
    `int` | `getIconType()` 获取当前路段的转向动作类型 Get the turn action type of the current route segment
    `int` | `getLength()` 获取该路段长度 Get the length of this route segment
    `java.util.List<AMapNaviLink>` | `getLinks()` 获取该路段Link集 Get the Link set of this route segment
    `int` | `getStartIndex()` 获取该路段起点index Get the start index of this route segment
    `int` | `getTime()` 获取该路段耗时 Get the time consumption of this route segment
    `int` | `getTollCost()` 获取该路段的收费金额 Get the toll cost of this route segment.
    `int` | `getTrafficLightCount()` 获取该路段红绿灯总数 Get the total number of traffic lights in this route segment
    `int` | `getTrafficLightNumber()` 获取该路段中红绿灯总数 Get the total number of traffic lights in this route segment
    `boolean` | `isArriveWayPoint()` 该路段是否经过途经点 Whether this route segment passes through a waypoint.

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

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

- - ### 构造器详细资料

    - #### AMapNaviStep

          public AMapNaviStep()

  - ### 方法详细资料

    - #### getStartIndex

          public int getStartIndex()

      获取该路段起点index
      Get the start index of this route segment
      返回:
        该路段起点index
        Start index of this route segment

    - #### getEndIndex

          public int getEndIndex()

      获取该路段终点index
      Get the end index of this route segment
      返回:
        该路段终点index
        End index of this route segment

    - #### getLength

          public int getLength()

      获取该路段长度
      Get the length of this route segment
      返回:
        该路段长度 单位:米
        Length of this route segment, unit: meters

    - #### getTime

          public int getTime()

      获取该路段耗时
      Get the time consumption of this route segment
      返回:
        该路段耗时
        Time consumption of this route segment

    - #### getChargeLength

          public int getChargeLength()

      获取该路段收费路段距离
      Get the distance of toll road segment in this route segment.

      注意：该接口仅驾车模式有效
      Note: This interface is only valid in driving mode

      返回:
        该路段收费路段距离
        Distance of toll road segment in this route segment

    - #### getCoords

          public java.util.List<NaviLatLng> getCoords()

      获取该路段坐标点集
      Get the coordinate point set of this route segment
      返回:
        该路段坐标点集
        Coordinate point set of this route segment

    - #### getLinks

          public java.util.List<AMapNaviLink> getLinks()

      获取该路段Link集
      Get the Link set of this route segment
      返回:
        该路段Link集
        Link set of this route segment

    - #### getIconType

          public int getIconType()

      获取当前路段的转向动作类型
      Get the turn action type of the current route segment
      返回:
        转向动作类型，请参考`IconType`
        Turn action type, please refer to `IconType`
      从以下版本开始:
        1.7.0

    - #### getTollCost

          public int getTollCost()

      获取该路段的收费金额
      Get the toll cost of this route segment.

      注意：该接口仅驾车模式有效
      Note: This interface is only valid in driving mode

      返回:
      从以下版本开始:
        7.1.0

    - #### getTrafficLightCount

          public int getTrafficLightCount()

      获取该路段红绿灯总数
      Get the total number of traffic lights in this route segment
      返回:
      从以下版本开始:
        7.1.0

    - #### getTrafficLightNumber

          public int getTrafficLightNumber()

      获取该路段中红绿灯总数
      Get the total number of traffic lights in this route segment
      返回:
        该路段红绿灯总数
        Total number of traffic lights in this route segment
      从以下版本开始:
        1.7.0

    - #### isArriveWayPoint

          public boolean isArriveWayPoint()

      该路段是否经过途经点
      Whether this route segment passes through a waypoint.

      注意：该接口仅驾车模式有效
      Note: This interface is only valid in driving mode

      返回:
      从以下版本开始:
        7.1.0