目录

JamSegment

Class Info

public class JamSegment

路况分段原始信息类。

Public Method Summary

Qualifier and Type

Method Name and Description

int

getDuration()

获取预计通行时间。

NaviLatLng

getEndCoord()

获取该段路况终点所在位置的经纬度坐标。

float

getEndCrdRelative()

获取该段路况终点所在位置的相对索引。

float

getSegmentLength()

获取该段路况长度。

int

getSegmentStatus()

获取分段路况类型。

NaviLatLng

getStartCoord()

获取该段路况起点所在位置的经纬度坐标。

float

getStartCrdRelative()

获取该段路况起点所在位置的相对索引。

String

toString()

获取对象打印信息。

Public Methods

[h2]getDuration

Method

public int getDuration()

获取预计通行时间。

Returns

Type

Description

int

预计通行时间,单位: 0.1s。

[h2]getEndCoord

Method

public NaviLatLng getEndCoord()

获取该段路况终点所在位置的经纬度坐标。

Returns

Type

Description

NaviLatLng

该段路况终点所在位置的经纬度坐标。

[h2]getEndCrdRelative

Method

public float getEndCrdRelative()

获取该段路况终点所在位置的相对索引。

Returns

Type

Description

float

该段路况终点所在位置的相对索引。

[h2]getSegmentLength

Method

public float getSegmentLength()

获取该段路况长度。

Returns

Type

Description

float

该段路况长度,单位:米。

[h2]getSegmentStatus

Method

public int getSegmentStatus()

获取分段路况类型。

Returns

Type

Description

int

分段路况类型,参见TrafficStatus。

[h2]getStartCoord

Method

public NaviLatLng getStartCoord()

获取该段路况起点所在位置的经纬度坐标。

Returns

Type

Description

NaviLatLng

该段路况起点所在位置的经纬度坐标。

[h2]getStartCrdRelative

Method

public float getStartCrdRelative()

获取该段路况起点所在位置的相对索引。

Returns

Type

Description

float

该段路况起点所在位置的相对索引。

[h2]toString

Method

public String toString()

获取对象打印信息。

Returns

Type

Description

String

对象打印信息。