sdk-maps / com.tomtom.online.sdk.map.traffic / TrafficFlow

TrafficFlow

open class TrafficFlow : Serializable

Traffic flow data which can be taken from vector tile.

Constructors

<init>

TrafficFlow()

Traffic flow data which can be taken from vector tile.

Properties

isTollRoad

var isTollRoad: Optional<Boolean!>!

roadType

var roadType: Optional<String!>!

trafficLevel

var trafficLevel: Optional<Double!>!

trafficRoadCoverage

var trafficRoadCoverage: Optional<String!>!

travelMode

var travelMode: Optional<String!>!

Functions

getIsTollRoad

open fun getIsTollRoad(): Optional<Boolean!>!

Gets the value which indicates if the road is a toll road.

getRoadType

open fun getRoadType(): Optional<String!>!

Gets the tag value that describes the road type.

getTrafficLevel

open fun getTrafficLevel(): Optional<Double!>!

Gets the value which indicates the traffic speed. Absolute values in kph are used when the traffic type is set to absolute. Fractional values are used when the traffic type is set to relative or relative-delay.

getTrafficRoadCoverage

open fun getTrafficRoadCoverage(): Optional<String!>!

Gets the tag value which describes if the traffic is assigned to the whole road (one-way road), or only to one side (two-way road).

getTravelMode

open fun getTravelMode(): Optional<String!>!

Gets the tag presence and indicates the existence of one of the following: bridge, tunnel, skyway, ferry by boat (ferry), ferry by rail (rail). If the tag is not present, then the road is a regular road.