sdk-traffic / com.tomtom.online.sdk.traffic.flow.response / FunctionalRoadClass

FunctionalRoadClass

class FunctionalRoadClass

Represents the road type of the traffic flow segment.

Enum Values

INVALID

MOTORWAY

MAJOR_ROAD

OTHER_MAJOR_ROAD

SECONDARY_ROAD

LOCAL_CONNECTING_ROAD

LOCAL_ROAD_OF_HIGH_IMPORTANCE

LOCAL_ROAD

Functions

fromInt

static fun fromInt(value: Int): FunctionalRoadClass

Static method used for searching through enum to check if passed value is valid. If no proper value is found method returns FunctionalRoadClass#INVALID.

getValue

fun getValue(): Int

Getter for the value of the current type of road. Also used for searching purposes in FunctionalRoadClass#fromInt(int).