MapTrip SDK Android Manual 9.9.7
Traffic Class Reference

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...

+ Inheritance diagram for Traffic:

Public Member Functions

boolean equals (Object o)
 
TrfCategory getCategory ()
 
native String getCity ()
 
double getDelay ()
 
native String getDescription ()
 
native String getDirection ()
 
double getDistanceToDestination ()
 
native String getDistrict ()
 
Waypoint getEndPoint ()
 
double getLength ()
 
Polygon getPolyLine ()
 
native String getRoadNumber ()
 
double getSpeed ()
 
Waypoint getStartPoint ()
 
native String getStreet ()
 
native int getTmcCode ()
 

Static Public Member Functions

static String getEventDescriptionForEventCode (final int event1, final int event2, final int event3, final int event4, final int event5, final int lengthInMeter)
 

Detailed Description

Member Function Documentation

◆ equals()

boolean equals ( Object  o)
inherited

◆ getCategory()

TrfCategory getCategory ( )

Returns
Category of this event.

◆ getCity()

native String getCity ( )

Returns
city nearby this event.

◆ getDelay()

double 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()

Waypoint 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()

double getLength ( )

Returns
The length in meters

◆ getPolyLine()

Polygon getPolyLine ( )

Returns
Get the route part, that is affected by this event. Or ApiError.NO_ROUTE_BYPASSING_TRAFFIC_JAM, if the route has changed (by rerouting or update). Or ApiError.OBJ_NOT_FOUND, if the navigation has stopped.

◆ getRoadNumber()

native String getRoadNumber ( )

Returns
road number.

◆ getSpeed()

double getSpeed ( )

Returns
The delay in seconds.

◆ getStartPoint()

Waypoint getStartPoint ( )

Returns
First point of this event on the route.

◆ getStreet()

native String getStreet ( )

Returns
street name.

◆ getTmcCode()

native int getTmcCode ( )

Returns
The TMC code of this event.

The documentation for this class was generated from the following file: