The green, yellow and red routes that Google Maps uses to indicate clear, slow-moving, or heavily congested traffic are a great help when you're trying to determine the fastest way to your destination, but how does Google know the traffic conditions between where you are and where you're trying to go?
Google Maps bases its traffic views and faster-route recommendations on two different kinds of information: historical data about the average time it takes to travel a particular section of road at specific times on specific days and real-time data sent by sensors and smartphones that report how fast cars are moving right then [source: Barth].
Early versions of Google Maps relied only on data from traffic sensors, most of which were installed by government transportation agencies or private companies that specialize in compiling traffic data. Using radar, active infrared or laser radar technology, the sensors are able to detect the size and speed of passing vehicles and then wirelessly transmit that information to a server [sources: Machay, Palmer].
Data from these sensors can be used to provide real-time traffic updates, and, once collected, the information becomes part of the pool of historical data used to predict traffic volume on future dates. However, sensor data was largely limited to highways and primary roads because the sensors were typically installed only on the most heavily traveled or traffic-prone routes [sources: Machay, Matthews, Palmer].
Beginning in 2009, Google turned to crowdsourcing to improve the accuracy of its traffic predictions. When Android phone users turn on their Google Maps app with GPS location enabled, the phone sends back bits of data, anonymously, to Google that let the company know how fast their cars are moving. Google Maps continuously combines the data coming in from all the cars on the road and sends it back by way of those colored lines on the traffic layers [source: Barth].
As more and more drivers use the app, the traffic predictions become more reliable because Google Maps can look at the average speed of cars traveling along the same route without misinterpreting someone's morning coffee stop as a traffic jam. If Google Maps doesn't have enough data to estimate the traffic flow for a particular section of road, that section will appear in gray on the traffic layer [source: Google Help].
With its acquisition of Waze in 2013, Google added a human element to its traffic calculations. Drivers use the Waze app to report traffic incidents including accidents, disabled vehicles, slowdowns and even speed traps [sources: Palmer, Waze]. These real-time reports appear as individual points on Google Maps, with small icons representing things like construction signs, crashed cars or speed cameras.