Austin Traffic Counts
Millions of rows of raw city traffic-sensor data, turned into clean hourly volumes on real roads and checked against the state’s published counts.
The Challenge
Cities publish years of traffic-sensor data, and almost nobody can use it as published. The City of Austin’s archive has millions of 15-minute counts from radar and cameras, with timestamps that change meaning halfway through, counts that hit a hard ceiling, duplicates, sensors with no location, and no note of any of it. I wanted to show what it takes to turn a public feed like that into something a product or an analyst can trust: one clean table, every row accounted for, and a number that says how far to trust it.
My Approach
I built a pipeline in Python and DuckDB that fetches the data a month at a time and checks every file against the source’s own row count. It flags problems instead of deleting rows, with fifteen rules and their thresholds in one config file, and every clean row traces back to its raw file. It rolls counts up the way each sensor actually measures, links every sensor to an OpenStreetMap road by street name and direction of travel, and then checks the result against independent numbers: FHWA’s hourly counters and TxDOT’s published yearly counts.
By the numbers
Every number on this page is computed by the pipeline from public data and exported to the page. Nothing is typed in by hand.
The data
- City of Austin radar counts: 6,834,237 rows, one per lane every 15 minutes, from 19 sites, 2017-06-18 to 2021-09-08.
- FHWA permanent counters: hourly volumes from the federal Travel Monitoring Analysis System, 12 counters in Travis County, 2025.
- TxDOT yearly counts as the published reference, and OpenStreetMap roads (extract of 2026-12-04) to put every count on a road.
What was wrong with it
None of this is in the documentation. Each one turned up because the pipeline checks the data against itself before trusting it.
How the pipeline handles it
- Fetch one month at a time. Each file is checked against the portal’s own row count and fingerprinted, so a rerun skips what it already has and a short download fails loudly.
- Flag, never delete. Fifteen rules, each with a threshold in one config file. A row with no flags is usable; a wrong speed or label keeps the count usable. Rows in always equals rows out.
- Trace every row. Each clean row carries the raw file and record ID it came from.
- Roll up by what the hardware measures. Radar lanes add up to a two-way road total; camera movements add up to the traffic entering from each approach.
- Put it on the map. 50 of 51 sensor directions link to an OpenStreetMap road, matched on street name and direction of travel.
- Check it against someone else’s numbers before calling it clean.
Does it hold up?
Two separate questions. First, is the method right? Turning FHWA’s hourly counts into yearly averages the standard way lands a median 1.9% from what TxDOT publishes for the same counters. Second, is the city data right? The city radar reads a median 26.2% below the nearest TxDOT station on the same street, across 7 site-years. The two count at different points on the street, so some gap is expected; a consistent shortfall fits the 255 ceiling and is worth knowing before anyone builds on these counts.
What the clean data shows
Where the roads are filling up
The city’s sensors cover a few corridors; TxDOT’s published counts cover most major roads in the county. Comparing each road’s traffic with a rough capacity (its lanes times a planning figure per lane) and with its own trend since 2010 gives a screen: 87 km of major road is already full and still growing, 249 km is full with no clear growth, and 162 km is on course to fill by 2035.
Getting there meant catching three more problems: stations that count a whole freeway landing on the express lane beside it, a station whose count jumped fourfold in one year because it had been redefined, and one-direction counts compared with both directions’ lanes. Each now has a rule and a threshold in the config. It’s a screen of where to look, not a forecast of what to build: a road already at capacity can’t show growth in its counts.
Who’s on them
Counts show where cars are, not where trips start and end. The Census’s home-to-work records fill that in: working residents of the five-county metro went from 859,741 to 1,211,275 between 2014 and 2024, and jobs from 888,816 to 1,335,677. Along the worst corridors the growth is sharper: commutes lined up with North Mopac Expressway’s full stretch rose 30%, and with Hamilton Pool Road’s, 131%.
Sources
Data: Austin Transportation and Public Works, City of Austin, Texas Open Data Portal (public domain); Federal Highway Administration, Travel Monitoring Analysis System; Texas Department of Transportation; U.S. Census Bureau, LEHD Origin-Destination Employment Statistics. Roads, water and towns © OpenStreetMap contributors (ODbL). Not endorsed by the City of Austin, FHWA or TxDOT.