目录

JamSegment

Class Info

public class JamSegment

Segment traffic condition information class.

Public Method Summary

Qualifier and Type

Method Name and Description

int

getDuration()

Obtains the estimated pass-through time.

NaviLatLng

getEndCoord()

Obtains the longitude and latitude of the position where the end point of the traffic condition segment is located.

float

getEndCrdRelative()

Obtains the relative index of the position where the end point of the traffic condition segment is located.

float

getSegmentLength()

Obtains the length of the traffic condition segment.

int

getSegmentStatus()

Obtains the traffic condition type of the segment.

NaviLatLng

getStartCoord()

Obtains the longitude and latitude of the position where the start point of the traffic condition segment is located.

float

getStartCrdRelative()

Obtains the relative index of the position where the start point of the traffic condition segment is located.

String

toString()

Obtains the object print information.

Public Methods

[h2]getDuration

Method

public int getDuration()

Obtains the estimated pass-through time.

Returns

Type

Description

int

Estimated pass-through time, in 0.1s.

[h2]getEndCoord

Method

public NaviLatLng getEndCoord()

Obtains the longitude and latitude of the position where the end point of the traffic condition segment is located.

Returns

Type

Description

NaviLatLng

Longitude and latitude of the position where the end point of the traffic condition segment is located.

[h2]getEndCrdRelative

Method

public float getEndCrdRelative()

Obtains the relative index of the position where the end point of the traffic condition segment is located.

Returns

Type

Description

float

Relative index of the position where the end point of the traffic condition segment is located.

[h2]getSegmentLength

Method

public float getSegmentLength()

Obtains the length of the traffic condition segment.

Returns

Type

Description

float

Length of the traffic condition segment, in meters.

[h2]getSegmentStatus

Method

public int getSegmentStatus()

Obtains the traffic condition type of the segment.

Returns

Type

Description

int

Traffic condition type of the segment. For details, please refer to TrafficStatus.

[h2]getStartCoord

Method

public NaviLatLng getStartCoord()

Obtains the longitude and latitude of the position where the start point of the traffic condition segment is located.

Returns

Type

Description

NaviLatLng

Longitude and latitude of the position where the start point of the traffic condition segment is located.

[h2]getStartCrdRelative

Method

public float getStartCrdRelative()

Obtains the relative index of the position where the start point of the traffic condition segment is located.

Returns

Type

Description

float

Relative index of the position where the start point of the traffic condition segment is located.

[h2]toString

Method

public String toString()

Obtains the object print information.

Returns

Type

Description

String

Object print information.