文档管理中心

Incident

展开

Class Info

public class Incident

蚯蚓线显示路况事件:修路、封路、交通事件。

Public Method Summary

展开

Qualifier and Type

Method Name and Description

List<IncidentDetail>

getDetail()

获取路况事件详情。

double

getDisToStart()

获取距离起点的距离。

int

getEventCode()

获取事件的code。

String

getEventLevel()

获取事件层级。

int

getIfCallback()

获取是否需要回调通知APP。

int

getIfPass()

获取是否通过事件点。

String

getIncidentId()

获取事件Id。

int

getJamIncidentStatus()

获取是否为拥堵路段车祸事件点。

double

getJamLength()

获取拥堵路段长度。

int

getJamTime()

获取拥堵路段时间。

List<Integer>

getLinkIndexes()

获取事件包含的所有link索引。

List<NaviLatLng>

getPoints()

获取轨迹点的集合。

List<String>

getServiceDescriptionTypes()

获取服务区描述。

int

getSdPlusEndIndex()

路况事件终点映射到SD+大图内的行点索引

int

getSdPlusStartIndex()

路况事件起点映射到SD+大图内的行点索引。

int

getSource()

获取事件数据来源。

int

getType()

获取事件类型。

String

toString()

转换为String对象。

Public Methods

getDetail

展开

Method

public List<IncidentDetail> getDetail()

您调用此API可以获取路况事件详情。

Returns

展开

Type

Description

List<IncidentDetail>

路况事件详情列表,参见IncidentDetail

getDisToStart

展开

Method

public double getDisToStart()

您调用此API可以获取距离起点的距离。

Returns

展开

Type

Description

double

距离起点的距离,单位:米。

getEventCode

展开

Method

public int getEventCode()

您调用此API可以获取事件的code。

Returns

展开

Type

Description

int

返回事件的code。

getEventLevel

展开

Method

public String getEventLevel()

您调用此API可以获取事件层级。

Returns

展开

Type

Description

String

事件层级。

getIfCallback

展开

Method

public int getIfCallback()

您调用此API可以获取是否需要回调通知APP。

Returns

展开

Type

Description

int

是否需要通知APP

  • 0 不需要通知APP
  • 1 通知APP

getIfPass

展开

Method

public int getIfPass()

您调用此API可以获取是否通过事件点。

Returns

展开

Type

Description

int

是否通过事件点

  • 0 未通过
  • 1 通过

getIncidentId

展开

Method

public String getIncidentId()

您调用此API可以获取事件Id。

Returns

展开

Type

Description

String

返回事件Id。

getJamIncidentStatus

展开

Method

public int getJamIncidentStatus()

您调用此API可以获取是否为拥堵路段车祸事件点。

Returns

展开

Type

Description

int

是否为拥堵路段车祸事件点

  • 0:否
  • 1:是

getJamLength

展开

Method

public double getJamLength()

您调用此API可以获取拥堵路段长度。

Returns

展开

Type

Description

double

拥堵路段剩余长度

公制单位:m

英制单位:ft

getJamTime

展开

Method

public int getJamTime()

您调用此API可以获取拥堵路段时间。

Returns

展开

Type

Description

int

拥堵路段时间,单位:分钟。

getLinkIndexes

展开

Method

public List<Integer> getLinkIndexes()

您调用此API可以获取事件包含的所有link索引。

Returns

展开

Type

Description

List<Integer>

返回事件包含的所有link索引。

getPoints

展开

Method

public List<NaviLatLng> getPoints()

您调用此API可以获取轨迹点的集合。

Returns

展开

Type

Description

List<NaviLatLng>

返回轨迹点的集合。

getServiceDescriptionTypes

展开

Method

public List<String> getServiceDescriptionTypes()

您调用此API可以获取服务区描述。

Returns

展开

Type

Description

List<String>

返回服务区描述集合。

getSdPlusEndIndex

展开

Method

public int getSdPlusEndIndex()

您调用此API可以获取路况事件终点映射到SD+大图内的行点索引。

Returns

展开

Type

Description

int

路况事件终点映射到SD+大图内的行点索引。

getSdPlusStartIndex

展开

Method

public int getSdPlusStartIndex()

您调用此API可以获取路况事件起点映射到SD+大图内的行点索引。

Returns

展开

Type

Description

int

路况事件起点映射到SD+大图内的行点索引。

getSource

展开

Method

public int getSource()

您调用此API可以获取事件数据来源。

Returns

展开

Type

Description

int

事件数据来源。

getType

展开

Method

public int getType()

您调用此API可以获取事件类型。

Returns

展开

Type

Description

int

返回事件类型的值

  • 0 交通事故
  • 1 道路施工
  • 5 道路封闭

toString

展开

Method

public String toString()

您调用此API可以转换为String对象。

Returns

展开

Type

Description

String

返回String对象。

搜索
请输入您想要搜索的关键词