TrafficOptions interface

The options for setting traffic on the map.

Extends

Properties

flow

The type of traffic flow to display:
"none" is to display no traffic flow data
"relative" is the speed of the road relative to free-flow

incidents

Whether to display incidents on the map. default false

Property Details

flow

Warning

This API is now deprecated.

"absolute" is the absolute speed of the road

The type of traffic flow to display:
"none" is to display no traffic flow data
"relative" is the speed of the road relative to free-flow

flow?: "none" | "relative" | "absolute" | "relative-delay"

Property Value

"none" | "relative" | "absolute" | "relative-delay"

incidents

Whether to display incidents on the map. default false

incidents?: boolean

Property Value

boolean