public class AMapNaviRouteNotifyData
extends java.lang.Object
| 构造器和说明 |
|---|
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 |
public int getNotifyType()
具体类型请参考AMapNaviRouteNotifyDataType
Please refer to AMapNaviRouteNotifyDataType for specific types
public boolean isSuccess()
public int getDistance()
-1:代表距离无效
-1: represents invalid distance
0:代表当前已处在信息发生的范围内
0: represents that the current position is within the range where the information occurs
public double getLatitude()
public double getLongitude()
public java.lang.String getRoadName()
public java.lang.String getReason()
public java.lang.String getSubTitle()