How Do Maps Know About Traffic? The Data Behind the Colours

How Do Maps Know About Traffic? The Data Behind the Colours

Open a maps app in a city and you will see roads coloured green, orange, and red. Somehow the app knows where the traffic is, how bad it is, and how long your journey will take. It feels like the app is watching the roads โ€” and in a way, it is. The secret is not cameras on every street, but the phones of millions of drivers, each quietly reporting how fast it is moving.

The main source is anonymous location data from phones using the maps app. When thousands of phones travel along a road at sixty kilometres an hour, the road is green. When they slow to ten, it turns red. No personal information is involved: the data is aggregated and anonymised, so the system sees a crowd of dots moving slowly, not you in your car. The more people using the app in an area, the more accurate the picture โ€” which is why traffic data is excellent in big cities and thin on quiet country roads.

There are other sources too. Some cities share data from road sensors, cameras, and traffic lights. Ride-hailing and delivery fleets contribute their vehicles' speeds. Roadworks and closures come from official feeds and from user reports โ€” the button that lets you report an accident, a hazard, or a speed camera is feeding the same system. Together these sources build a live picture of the road network that updates every few minutes.

Your arrival time estimate uses this live data plus history. The app knows that a particular road is slow every weekday at eight in the morning, because it has been slow at that time for years. It combines that pattern with the current conditions to predict your journey time, and it keeps updating as you drive. If a crash happens ahead, it reroutes you before you reach the queue. The prediction is usually accurate within a few minutes on a familiar route, which is remarkable given how many variables are involved.

There are limits. A sudden event โ€” a crash that happened thirty seconds ago โ€” takes a few minutes to appear. A road with very few users may show no traffic data at all. And the system can be fooled: in 2020, an artist famously created a fake traffic jam by pulling a cart full of phones down an empty street, turning it red on the map. These are edge cases, but they are a reminder that the colours are an estimate built from data, not a live camera feed.

Understanding the data behind the colours helps you use it better. Trust the red on a busy motorway, but leave a margin for the unexpected. Report hazards when you see them โ€” you are improving the map for everyone behind you. And remember that the system only works because millions of people share anonymous movement data, which is a fair trade for a service that saves us all hours of sitting in traffic every year.

Frequently Asked Questions

How do maps apps detect traffic jams?

They aggregate anonymous speed data from phones using the app. Slow-moving phones on a road mean congestion.

Is my location shared for traffic data?

The data is anonymised and aggregated. The system sees overall speeds on a road, not individual drivers.

Why is traffic data missing on some roads?

Too few app users travel there, so there is not enough data to show a reliable colour. Quiet rural roads often have no traffic layer.

More location guides

โ† Back to home