sdk-traffic / com.tomtom.online.sdk.traffic.incidents.response / IncidentMagnitude

IncidentMagnitude

class IncidentMagnitude

The magnitude of the delay associated with an incident. These values correspond to incident colors in traffic tiles.

Enum Values

UNKNOWN

MINOR

MODERATE

MAJOR

UNDEFINED

Functions

fromInt

static fun fromInt(value: Int): IncidentMagnitude

Static method used to search trough enum and retrieve incident magnitude based on passed value. If the value is valid then proper IncidentMagnitude is returned, otherwise IllegalArgumentException is thrown.

getValue

fun getValue(): Int

Getter of the current incident magnitude used in IncidentMagnitude#fromInt(int) for searching purposes.