Skip to content
supercarto
Esc
↑↓navigate↵open⌘Jpreview
On this page

get_traffic

Live congestion with a provider key; labelled free-flow without one.

advertised only with a key

get_traffic(from, to, mode) — congestion level and a realistic arrival time for a drive, from the worst segment rather than an average.

Exists, or doesn’t

Traffic needs a credential, so get_traffic is absent from the tool list until TOMTOM_API_KEY or HERE_API_KEY is set. With no key the routing path still reports speed, but labels it:

supercarto traffic --from 37.7749,-122.4194 --to 37.7849,-122.4194
traffic: unknown (no flow source configured)
free-flow estimate: 244s, ignores congestion
note: set TOMTOM_API_KEY or HERE_API_KEY for live conditions

Last updated on

Was this page helpful?