com.amap.api.navi.model

## 类 AMapNaviRouteNotifyData

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

-     public class AMapNaviRouteNotifyData
      extends java.lang.Object

  导航过程中关于路线的通知
  Notifications about routes during navigation

  从以下版本开始:
    6.2.0

- - ### 构造器概要

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

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `int` | `getDistance()` 获取事件点与当前点的距离 Get the distance between the event point and the current point.
    `double` | `getLatitude()` 获取事件点的纬度 Get the latitude of the event point
    `double` | `getLongitude()` 获取事件点的经度 Get the longitude of the event point
    `int` | `getNotifyType()` 获取通知类型 Get notification type.
    `java.lang.String` | `getReason()` 获取事件的主要原因，例如：道路封闭、限行、禁行 Get the main reason for the event, for example: road closure, traffic restriction, prohibition
    `java.lang.String` | `getRoadName()` 获取事件点的路名 Get the road name of the event point
    `java.lang.String` | `getSubTitle()` 获取事件原因的补充说明，例如：前方XX路道路封闭 Get supplementary description of the event reason, for example: road closure on XX road ahead
    `boolean` | `isSuccess()` 是否成功避开 Whether successfully avoided

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

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

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

    - #### AMapNaviRouteNotifyData

          public AMapNaviRouteNotifyData()

  - ### 方法详细资料

    - #### getNotifyType

          public int getNotifyType()

      获取通知类型
      Get notification type.

      具体类型请参考`AMapNaviRouteNotifyDataType`
      Please refer to `AMapNaviRouteNotifyDataType` for specific types

      返回:
        通知类型
        Notification type
      从以下版本开始:
        6.2.0

    - #### isSuccess

          public boolean isSuccess()

      是否成功避开
      Whether successfully avoided
      返回:
        true:已经避开 false:无法避开
        true: already avoided false: cannot avoid

    - #### getDistance

          public int getDistance()

      获取事件点与当前点的距离
      Get the distance between the event point and the current point.

      -1：代表距离无效
      -1: represents invalid distance
      0：代表当前已处在信息发生的范围内
      0: represents that the current position is within the range where the information occurs

      返回:
        事件点与当前点的距离
        Distance between the event point and the current point
      从以下版本开始:
        6.2.0

    - #### getLatitude

          public double getLatitude()

      获取事件点的纬度
      Get the latitude of the event point
      返回:
        事件点的纬度
        Latitude of the event point
      从以下版本开始:
        6.2.0

    - #### getLongitude

          public double getLongitude()

      获取事件点的经度
      Get the longitude of the event point
      返回:
        事件点的经度
        Longitude of the event point

    - #### getRoadName

          public java.lang.String getRoadName()

      获取事件点的路名
      Get the road name of the event point
      返回:
        事件点的路名
        Road name of the event point
      从以下版本开始:
        6.2.0

    - #### getReason

          public java.lang.String getReason()

      获取事件的主要原因，例如：道路封闭、限行、禁行
      Get the main reason for the event, for example: road closure, traffic restriction, prohibition
      返回:
        事件的主要原因，例如：道路封闭、限行、禁行
        Main reason for the event, for example: road closure, traffic restriction, prohibition

    - #### getSubTitle

          public java.lang.String getSubTitle()

      获取事件原因的补充说明，例如：前方XX路道路封闭
      Get supplementary description of the event reason, for example: road closure on XX road ahead
      返回:
        事件原因的补充说明，例如：前方XX路道路封闭
        Supplementary description of the event reason, for example: road closure on XX road ahead
      从以下版本开始:
        6.2.0