Google Maps uses the combination of AI and machine learning along with numerous data sources like historical traffic analysis, governmental data, aggregate data of locations, real-time user feedback and the number of active devices in an area to gather information and predict traffic.