sdk-maps / com.tomtom.online.sdk.map / TrafficExtensions

TrafficExtensions

interface TrafficExtensions

Traffic extensions

Functions

getTrafficRasterFlowStyle

abstract fun getTrafficRasterFlowStyle(): TrafficFlowType.RasterTrafficFlowType!

Get information about current traffic vector flow style settings.

getTrafficVectorFlowStyle

abstract fun getTrafficVectorFlowStyle(): TrafficFlowType.VectorTrafficFlowType!

Get information about current traffic vector flow style settings.

isTrafficFlowEnabled

abstract fun isTrafficFlowEnabled(): Boolean

Get information about current traffic flow settings.

isTrafficIncidentsEnabled

abstract fun isTrafficIncidentsEnabled(): Boolean

Get information about current traffic incidents settings.

isTrafficRasterFlowEnabled

abstract fun isTrafficRasterFlowEnabled(): Boolean

Get information about current traffic raster flow settings.

isTrafficVectorFlowEnabled

abstract fun isTrafficVectorFlowEnabled(): Boolean

Get information about current traffic vector flow settings.

turnOffTraffic

abstract fun turnOffTraffic(): Unit

Turn off information about traffic.

turnOffTrafficFlowTiles

abstract fun turnOffTrafficFlowTiles(): Unit

Turn off traffic flow tiles.

turnOffTrafficIncidents

abstract fun turnOffTrafficIncidents(): Unit

Turn off all traffic incidents.

turnOnRasterTrafficFlowTiles

abstract fun turnOnRasterTrafficFlowTiles(): Unit

Set traffic tiles to raster. Default traffic style is RelativeTrafficFlowStyle.

abstract fun turnOnRasterTrafficFlowTiles(trafficFlowTilesStyle: TrafficFlowType.RasterTrafficFlowType!): Unit

Set traffic tiles flow to raster. The default and recommended method is VectorTrafficFlowType. Specify the style by AbsoluteTrafficFlowStyle, RelativeTrafficFlowStyle, RelativeDelayTrafficFlowStyle

turnOnRasterTrafficIncidents

abstract fun turnOnRasterTrafficIncidents(): Unit

Turn on raster incidents.

turnOnTrafficFlowTiles

abstract fun turnOnTrafficFlowTiles(): Unit

Turn on traffic flow tiles.

turnOnTrafficIncidents

abstract fun turnOnTrafficIncidents(): Unit

Turn on all traffic incidents.

turnOnVectorTrafficFlowTiles

abstract fun turnOnVectorTrafficFlowTiles(): Unit

Set traffic tiles to vector. Default traffic style is RelativeTrafficFlowStyle.

abstract fun turnOnVectorTrafficFlowTiles(trafficFlowTilesStyle: TrafficFlowType.VectorTrafficFlowType!): Unit

Set traffic tiles to vector. This is the default and recommended value. Specify the style by: AbsoluteTrafficFlowStyle RelativeTrafficFlowStyle, RelativeDelayTrafficFlowStyle ReducedSensitivityTrafficFlowStyle

turnOnVectorTrafficIncidents

abstract fun turnOnVectorTrafficIncidents(): Unit

Turn on vector incidents.

Inheritors

TrafficSettings

interface TrafficSettings : TrafficExtensions, OnMapTapListener, Persistable, TomtomMapCallback.OnMapChangedListener

Settings for manipulating traffic settings related to traffic (e.g. flows). To obtain this interface, call TomtomMap#getTrafficSettings()