The traffic class contains traffic related functionality like handling of Traffic Message Channel (TMC) information.
It allows to configure TMC devices, get traffic information and configure how to react on it. The TMC information contains the start and end location as TMC code or coordinate point as well as detailed information about the traffic event itself.
More...
|
| static String | getEventDescriptionForEventCode (final int event1, final int event2, final int event3, final int event4, final int event5, final int lengthInMeter) |
| |
◆ equals()
| boolean equals |
( |
Object |
o | ) |
|
|
inherited |
◆ getCategory()
- Returns
- Category of this event.
◆ getCity()
| native String getCity |
( |
| ) |
|
- Returns
- city nearby this event.
◆ getDelay()
- Returns
- The delay in seconds.
◆ getDescription()
| native String getDescription |
( |
| ) |
|
- Returns
- description in the current language.
◆ getDirection()
| native String getDirection |
( |
| ) |
|
- Returns
- the direction towards this event leads to.
◆ getDistanceToDestination()
| double getDistanceToDestination |
( |
| ) |
|
- Returns
- Distance from the start point of this event to the destination of the route in meters.
◆ getDistrict()
| native String getDistrict |
( |
| ) |
|
- Returns
- district nearby this event.
◆ getEndPoint()
- Returns
- Last point of this event on the route.
◆ getEventDescriptionForEventCode()
| static String getEventDescriptionForEventCode |
( |
final int |
event1, |
|
|
final int |
event2, |
|
|
final int |
event3, |
|
|
final int |
event4, |
|
|
final int |
event5, |
|
|
final int |
lengthInMeter |
|
) |
| |
|
static |
- Parameters
-
| event1 | - 1st traffic event |
| event2 | - 2nd traffic event |
| event3 | - 3rd traffic event |
| event4 | - 4th traffic event |
| event5 | - 5th traffic event |
| lengthInMeter | - length of the events |
| evendesc | - textual description |
- Returns
- Textual event description in the language set for the SDK (see Language)
◆ getLength()
- Returns
- The length in meters
◆ getPolyLine()
◆ getRoadNumber()
| native String getRoadNumber |
( |
| ) |
|
◆ getSpeed()
- Returns
- The delay in seconds.
◆ getStartPoint()
- Returns
- First point of this event on the route.
◆ getStreet()
| native String getStreet |
( |
| ) |
|
◆ getTmcCode()
| native int getTmcCode |
( |
| ) |
|
- Returns
- The TMC code of this event.
The documentation for this class was generated from the following file: