目录

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

[h2]getDetail

Method

public List<IncidentDetail> getDetail()

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

Returns

Type

Description

List<IncidentDetail>

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

[h2]getDisToStart

Method

public double getDisToStart()

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

Returns

Type

Description

double

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

[h2]getEventCode

Method

public int getEventCode()

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

Returns

Type

Description

int

返回事件的code。

[h2]getEventLevel

Method

public String getEventLevel()

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

Returns

Type

Description

String

事件层级。

[h2]getIfCallback

Method

public int getIfCallback()

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

Returns

Type

Description

int

是否需要通知APP

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

[h2]getIfPass

Method

public int getIfPass()

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

Returns

Type

Description

int

是否通过事件点

  • 0 未通过
  • 1 通过

[h2]getIncidentId

Method

public String getIncidentId()

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

Returns

Type

Description

String

返回事件Id。

[h2]getJamIncidentStatus

Method

public int getJamIncidentStatus()

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

Returns

Type

Description

int

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

  • 0:否
  • 1:是

[h2]getJamLength

Method

public double getJamLength()

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

Returns

Type

Description

double

拥堵路段剩余长度

公制单位:m

英制单位:ft

[h2]getJamTime

Method

public int getJamTime()

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

Returns

Type

Description

int

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

[h2]getLinkIndexes

Method

public List<Integer> getLinkIndexes()

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

Returns

Type

Description

List<Integer>

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

[h2]getPoints

Method

public List<NaviLatLng> getPoints()

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

Returns

Type

Description

List<NaviLatLng>

返回轨迹点的集合。

[h2]getServiceDescriptionTypes

Method

public List<String> getServiceDescriptionTypes()

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

Returns

Type

Description

List<String>

返回服务区描述集合。

[h2]getSdPlusEndIndex

Method

public int getSdPlusEndIndex()

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

Returns

Type

Description

int

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

[h2]getSdPlusStartIndex

Method

public int getSdPlusStartIndex()

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

Returns

Type

Description

int

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

[h2]getSource

Method

public int getSource()

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

Returns

Type

Description

int

事件数据来源。

[h2]getType

Method

public int getType()

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

Returns

Type

Description

int

返回事件类型的值

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

[h2]toString

Method

public String toString()

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

Returns

Type

Description

String

返回String对象。