Class Info |
|---|
public class JamSegment Segment traffic condition information class. |
Qualifier and Type | Method Name and Description |
|---|---|
int | Obtains the estimated pass-through time. |
| Obtains the longitude and latitude of the position where the end point of the traffic condition segment is located. | |
float | Obtains the relative index of the position where the end point of the traffic condition segment is located. |
float | Obtains the length of the traffic condition segment. |
int | Obtains the traffic condition type of the segment. |
| Obtains the longitude and latitude of the position where the start point of the traffic condition segment is located. | |
float | 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. |
Method |
|---|
public int getDuration() Obtains the estimated pass-through time. |
Returns
Type | Description |
|---|---|
int | Estimated pass-through time, in 0.1s. |
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 |
|---|---|
Longitude and latitude of the position where the end point of the traffic condition segment is located. |
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. |
Method |
|---|
public float getSegmentLength() Obtains the length of the traffic condition segment. |
Returns
Type | Description |
|---|---|
float | Length of the traffic condition segment, in meters. |
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. |
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 |
|---|---|
Longitude and latitude of the position where the start point of the traffic condition segment is located. |
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. |