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

TrafficFlowType

@DeprecatedSince(2020, 6) interface TrafficFlowType
Deprecated: Deprecated in Java

The style to be used to render the tile. When style is absolute, the colors will reflect the absolute speed measured. Calls using relative style return the speed relative to free-flow, highlighting areas of congestion. Relative-delay displays relative speeds only where they are different from the free flow speeds. Reduced-sensitivity displays relative speeds but larger difference from free flow (depending on FRC) is required for segment to change the color. There are various types of traffic flow to use. - absolute: reflect the absolute speed - relative: speed relative to free-flow, highlighting areas of congestion - relative-delay: relative speed values different from the ones for the free flow - reduced-sensitivity: - only for raster.

Types

AbsoluteTrafficFlowStyle

open class AbsoluteTrafficFlowStyle : TrafficFlowType.BaseTrafficFlowStyle, TrafficFlowType.RasterTrafficFlowType, TrafficFlowType.VectorTrafficFlowType

Absolute style. The colors will reflect the absolute speed measured.

BaseTrafficFlowStyle

open class BaseTrafficFlowStyle : TrafficFlowType

Base for styles.

RasterTrafficFlowType

interface RasterTrafficFlowType : TrafficFlowType

Base for raster styles.

ReducedSensitivityTrafficFlowStyle

open class ReducedSensitivityTrafficFlowStyle : TrafficFlowType.BaseTrafficFlowStyle, TrafficFlowType.RasterTrafficFlowType

Reduced-sensitivity traffic styler displays relative speeds but a larger difference from freeflow (depending on FRC) is required for segment to change the color.

RelativeDelayTrafficFlowStyle

open class RelativeDelayTrafficFlowStyle : TrafficFlowType.BaseTrafficFlowStyle, TrafficFlowType.RasterTrafficFlowType, TrafficFlowType.VectorTrafficFlowType

Relative-delay traffic style displays relative speeds only where they are different from the freeflow speeds.

RelativeTrafficFlowStyle

open class RelativeTrafficFlowStyle : TrafficFlowType.BaseTrafficFlowStyle, TrafficFlowType.RasterTrafficFlowType, TrafficFlowType.VectorTrafficFlowType

Relative style returns the speed relative to free-flow, highlighting areas of congestion.

VectorTrafficFlowType

interface VectorTrafficFlowType : TrafficFlowType

Base for vector styles.

Functions

getTrafficStyle

abstract fun getTrafficStyle(): String!

The style to be used to render the tile. When style is absolute, the colors will reflect the absolute speed measured. Calls using the relative style to return the speed relative to free-flow, highlighting areas of congestion. Relative-delay displays relative speeds only where they are different from the free flow speeds. Reduced-sensitivity displays relative speeds but a larger difference from free flow (depending on FRC) is required for the segment to change the color. There are various types of traffic flow to use. - absolute: reflect the absolute speed - relative: speed relative to free-flow, highlighting areas of congestion - relative-delay: Relative speed values different from the ones for the free flow. - reduced-sensitivity: Only for raster.

Inheritors

BaseTrafficFlowStyle

open class BaseTrafficFlowStyle : TrafficFlowType

Base for styles.

RasterTrafficFlowType

interface RasterTrafficFlowType : TrafficFlowType

Base for raster styles.

VectorTrafficFlowType

interface VectorTrafficFlowType : TrafficFlowType

Base for vector styles.