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 |
void |
setDistance(int distance)
设置距离
Set distance. |
void |
setLatitude(double latitude)
设置事件点的纬度
Set the latitude of the event point |
void |
setLongitude(double longitude)
设置事件点的经度
Set the longitude of the event point |
void |
setNotifyType(int notifyType)
设置通知事件类型
Set notification event type |
void |
setReason(java.lang.String reason)
设置事件的主要原因
Set the main reason for the event |
void |
setRoadName(java.lang.String roadName)
设置事件点的路名
Set the road name of the event point |
void |
setSubTitle(java.lang.String subTitle)
设置事件原因的补充说明
Set supplementary description of the event reason |
void |
setSuccess(boolean success)
设置是否成功避开
Set whether successfully avoided |
public int getNotifyType()
具体类型请参考AMapNaviRouteNotifyDataType
Please refer to AMapNaviRouteNotifyDataType for specific types
public void setNotifyType(int notifyType)
notifyType - 请参考AMapNaviRouteNotifyDataTypeAMapNaviRouteNotifyDataTypepublic boolean isSuccess()
public void setSuccess(boolean success)
success - public int getDistance()
-1:代表距离无效
-1: represents invalid distance
0:代表当前已处在信息发生的范围内
0: represents that the current position is within the range where the information occurs
public void setDistance(int distance)
-1:代表距离无效
-1: represents invalid distance
0:代表当前已处在信息发生的范围内
0: represents that the current position is within the range where the information occurs
distance - public double getLatitude()
public void setLatitude(double latitude)
latitude - 事件点的纬度public double getLongitude()
public void setLongitude(double longitude)
longitude - public java.lang.String getRoadName()
public void setRoadName(java.lang.String roadName)
roadName - public java.lang.String getReason()
public void setReason(java.lang.String reason)
reason - 事件的主要原因public java.lang.String getSubTitle()
public void setSubTitle(java.lang.String subTitle)
subTitle - 事件原因的补充说明