Google has a team of engineers who work on algorithms that estimate traffic congestion. They use data from GPS devices, traffic cameras, and other sources to create a model of traffic flow. This model is used to predict traffic congestion and provide real-time updates.