sdk-traffic / com.tomtom.online.sdk.traffic.flow.query / FlowSegmentSpeedUnit

FlowSegmentSpeedUnit

class FlowSegmentSpeedUnit

Represents the speed unit.

Enum Values

KMPH

MPH

Functions

fromInt

static fun fromInt(value: Int): FlowSegmentSpeedUnit

Static method used to search if the passed value is a valid speed unit type and returns FlowSegmentSpeedUnit. If the value passed is invalid, then IllegalArgumentException is thrown.

getValue

fun getValue(): Int

Getter used to retrieve the current type of speed unit. Also used in FlowSegmentSpeedUnit#fromInt(int).