How it works · Tech-Culture

How Google Maps Knows Traffic: Phones, Colours and ETAs

A red road on your screen is built from other people's phones. Here is what Google has said about how, and what is still a guess.

Wavy road stripes in green, yellow, orange and red, with small white dots for phones on the red stripe.

You open the app at ten past eight. The ring road is red. You leave, and ten minutes later it has turned orange. Nobody stood at the roadside with a clipboard. No camera on that stretch sent anything. The app just knew.

Most of the answer is in your pocket. Phones with location switched on tell Google how fast they are moving, and Google turns that into colours and arrival times. A few parts are published and a lot of parts are not. This post keeps the two apart. Each claim is marked: Google says, reported (said by journalists or the artist, not by Google), my reading (an inference), or not published.

Short version:

  • Phones that are navigating send anonymous speed and location. Google combines many of them into a picture of each road.
  • The colours show the speed of traffic. Google also says “normal” for a road comes from past traffic at that time and weekday. The exact rule that makes a colour is not published.
  • A trip time mixes live traffic with past patterns. DeepMind’s graph neural network improved ETAs by 16% to 51% depending on the city, in Google’s own figures. The measure is not defined.
  • In 2020 an artist pulled 99 phones in a wagon through Berlin and made empty streets show red. It shows that the picture is only as good as the phones in it.

Your phone is a speed sensor

The idea is old. In August 2009 Google wrote that when you use Maps with GPS on, “your phone sends anonymous bits of data back to Google describing how fast you’re moving”. It then combines “the speed of other phones on the road, across thousands of phones moving around a city at any given time” into “a pretty good picture of live traffic conditions” (Google blog, 2009).

Four cars on one road piece report 48, 52, 45 and 50 km/h, and many phones are combined into one road picture. Google says it uses anonymous speed and location. The speeds are made up.

That 2009 post is the best statement of the method Google has given. The current Help page for navigation data is shorter. It says that during navigation Google collects GPS location, details such as the route taken, and data from sensors such as the barometer. It says Google uses this to show real-time traffic and does not tie map updates to your Google Account or device (Google Maps Help). How the phone finds its own position in the first place, from satellites, Wi-Fi and cell towers, is in how your phone knows where you are.

Two details from 2009 are worth keeping. Google said it combines data when many people report from the same area, “to make it hard to tell one phone from another”. And it said it finds the start and end of every trip and permanently deletes those parts. Those are the claims of a 2009 post, so treat them as a statement of intent from that year, not a current audit.

Where does the rest of the data come from? Google’s Roads Management Insights docs list three sources: “aggregated, anonymized data from Google Maps”, data from partners such as local transport departments, and reports from people who report crashes or roadworks (Google Roads Management Insights).

Not published: how many phones a road needs before Google trusts it, how it tells a car from a bus or a bike, and how often it updates a road. Anyone who gives you these numbers is guessing.

From speeds to colours

The legend is simple. Google’s Help page says: green is “No traffic delays”, orange is “Medium amount of traffic”, red is “Traffic delays”, and “the darker the red, the slower the speed of traffic on the road” (Google Maps Help). Google’s Routes API describes the same three steps as NORMAL, SLOW and TRAFFIC_JAM (Routes API reference).

Google’s traffic colours: green no delays (NORMAL), orange medium traffic (SLOW), red delays (TRAFFIC_JAM), and darker red for slower traffic. Google does not publish the speed cut-offs between colours.

What the pages do not give is a number. There is no “red below 20 km/h”. I looked for one in the Help pages, the Routes API docs and the Roads Management Insights docs. None has a speed threshold.

There is a hint about what the colours are measured against. The Roads Management Insights docs say historical patterns are built from aggregated user data and capture “the ’normal’ traffic for a specific road at any given time and day of the week”. Put that next to a colour legend that talks about delays, and here is my reading: a colour says how far today’s speed is from what is normal for that road at that time.

Two roads, both with live speed 40 km per hour. On a motorway where 100 is normal, it is red. On a city street where 40 is normal, it is green. This is my reading, not a published rule, and the speeds are made up.

This would explain something you may have seen: a road where cars are still moving at a decent pace shows red at rush hour, or a slow lane in a town shows green. I cannot prove it. I did not find a Google page that states the rule, so treat the picture as a way to think about it, not as how Google does it.

How the arrival time is predicted

Live traffic alone is not enough for a long trip. Google’s 2020 post with DeepMind says live data “doesn’t account for the traffic a driver can expect to see 10, 20, or even 50 minutes into their drive”, so Maps uses machine learning to combine live conditions with historical patterns (DeepMind, 2020). Google’s example: the 280 freeway in Northern California typically carries traffic at 65 mph between 6 and 7 am (Google blog, 2020).

The Roads Management Insights docs describe the split. Short routes “depend largely on current, real-time information”. On longer routes the nearby road pieces use live data, and “more-distant segments rely more heavily on historical patterns”.

A route from now to 50 minutes ahead. Live traffic counts most near the start. Past patterns count more further along. The fading is an illustration, because Google does not publish the weights.

You can see the same idea in Google’s developer tools. The Routes API returns a duration that uses real-time traffic and a staticDuration that “consider[s] only historical traffic information” (Routes API). It also has a traffic model setting. BEST_GUESS is the best estimate, and live traffic matters more as the departure time gets closer to now. PESSIMISTIC gives a time that is longer than the real one on most days. OPTIMISTIC gives one that is shorter (TrafficModel).

History also goes stale. After the 2020 lockdowns changed how people moved, Google said it began “automatically prioritizing historical traffic patterns from the last two to four weeks”, and that it saw up to a 50 percent drop in worldwide traffic when lockdowns started.

The graph neural network

In 2020 DeepMind and the Google Maps team described how they changed the prediction model. This part is Google says, and it is unusually detailed.

Maps splits roads into “Supersegments”: several neighbouring pieces of road that share a lot of traffic. A graph neural network (a kind of machine learning model that works on dots joined by links) then predicts the travel time of each Supersegment. Each road piece is a dot. Links join pieces that follow each other on a road, or that meet at a junction.

Roads as a graph: each piece of road is a dot, lines join pieces that follow each other or meet at a junction, and a group of neighbours is a supersegment. A side street jam can spill onto the main road.

Why a graph and not a simple list of road pieces? DeepMind’s reason is that a jam on a side street can spill over onto a bigger road, and a graph lets the model look at roads that cross, not only the road ahead. They also say the model can then predict delays at turns and merges.

The 2021 paper from Google and DeepMind authors describes the model as deployed in production at Google Maps. Its abstract says it cut negative ETA outcomes by 40+% in cities like Sydney (Derrow-Pinion et al., CIKM 2021). That is a different measure from the 2020 blog’s numbers, so do not set the two side by side.

How big was the gain?

The 2020 post says Google’s predicted times “have been consistently accurate for over 97% of trips” already, and the work was about the rest. It states that the improvement was “up to 50%” in some cities. Its map gives a figure for each of 19 cities:

Bar chart of the ETA improvement Google and DeepMind reported for 19 cities, from 51 percent in Taichung City and 43 in Sydney to 16 in London and Copenhagen. Source: DeepMind, 3 September 2020.

Three things to read carefully:

  • The page never defines the measure. The map is titled “Google Maps ETA Improvements Around the World” and the text talks about “improve the accuracy of real time ETAs” and about “minimise the remaining inaccuracies”. I read it as a cut in the bad estimates, not a 51% gain in a 97% number. That is my reading.
  • The text and the map do not line up. The text says “up to 50%” for Berlin, Jakarta, São Paulo, Sydney, Tokyo and Washington. The map shows 21, 22, 23, 43 and 29, and Tokyo is not on it. “Up to” is a best case.
  • It is a company report from 2020. These are Google’s numbers, with no outside audit in the post. The paper from 2021 is the more careful source.

I took the 19 values by reading the figure on DeepMind’s page, because they are not given in the text.

The wagon: how the picture can be fooled

In early 2020 the Berlin artist Simon Weckert pulled a handcart carrying 99 second-hand smartphones along city streets. His page describes the work as 99 phones “transported in a handcart to generate virtual traffic jam in Google Maps”. Reports at the time (Vice on 3 February 2020, 9to5Google) say each phone had its own SIM card and had Maps running navigation, and that streets with no cars showed red (Weckert, Vice, 9to5Google).

The 99-phone wagon in three steps, as reported. A wagon rolling slowly on a quiet street made it show red. A stopped wagon did not make a jam. A real car driving through returned the street to normal.

Two details in the reports tell you how the system behaves:

  • The wagon had to keep moving. 9to5Google reports that a stopped wagon did not produce a jam. My reading: phones sitting still look like parked cars, not slow traffic.
  • A real car reset it. The same report says a vehicle driving through brought the street back to normal. A single passing car was enough, as reported.

Google’s reply, reported at the time, was: “Whether via car or cart or camel, we love seeing creative uses of Google Maps as it helps us make maps work better over time.” 9to5Google also reports that Google said many devices in one place normally count as evidence of a jam.

Here is what I could not find: any Google statement about how it tells phones in a cart from phones in cars, or whether the trick works today. Not published. Do not trust a blog that says Google “fixed” it or “never fixed” it, because neither claim is sourced.

Weckert’s own aim, as reported, was to show that this kind of data can be bent. His page says the work can “turn a green street red”. He also said, as quoted at the time, that virtual traffic can send real cars to other routes and so make a real jam elsewhere. That is the practical lesson. A crowd-sourced number is a vote. Votes can be wrong, and the system’s job is to decide when it believes a crowd.

What is known and what is not

QuestionStatusSource
Do phones send speed and location?Google says2009 blog, navigation data Help page
Is the data anonymous?Google says so. I cannot check it2009 blog, Help page
What do the colours mean?Google saysMaps Help
What speed makes a road red?Not publishednone
Is “normal” the past traffic for that road, time and weekday?Google saysRoads Management Insights docs
Do colours compare live speed to normal?My readingnone
Do trip times mix live and past data?Google saysDeepMind, Google blog, 2020
Does the graph neural network cut errors by 16% to 51%?Google reportsDeepMind, 2020
What does that percentage measure?Not defined on the pageDeepMind, 2020
Did 99 phones make a red street?Reported, with the artist’s own pageWeckert, Vice, 9to5Google
Does Google filter out fake crowds?Not publishednone

Questions people ask

How does Google Maps know there is traffic? Phones running Maps send anonymous speed and location, and Google combines many of them for each road. It also uses partner data, such as local transport departments, and reports from users about crashes or roadworks.

Does Google Maps use my location when I am not navigating? The Help page I read describes collection during navigation. It says denying the location permission turns off real-time features such as turn-by-turn navigation. I did not find a statement about other times, so check the page and your own settings.

What do the colours on Google Maps mean? Green is no traffic delays, orange is a medium amount of traffic, red is delays, and darker red is slower still. Google does not publish the speeds behind each colour.

How does Google Maps predict my arrival time? It combines live traffic with past patterns for each road and time. The further ahead a part of the trip is, the more it leans on history. Since 2020 a graph neural network from DeepMind has helped with the prediction.

Can one phone, or a hundred, change traffic on Google Maps? One phone cannot do much. In 2020 an artist did it with 99 phones moving together in a cart. Google has not said how it guards against that.

Cheat sheet

Google Maps traffic cheat sheet: phones with location on send anonymous speed, and a graph neural network predicts trip times, reportedly 16 to 51 percent better. Colour cut-offs are not published.

Update, November 2026

Google’s Roads Management Insights docs now list a fourth speed category, TRAFFIC_JAM_HEAVY, for a heavy jam shown as dark red. It is available from 8 October 2026 in the newer offset-based format, and the older format reports those jams as TRAFFIC_JAM. The docs still give no speed thresholds.

Further reading

Written by Rafi Loom

Backend engineer who builds high-volume systems that move money. More about Rafi