Does anyone know of a public API for historical traffic data?
Some quick googling pulls up an API from Yahoo which offers real-time data, but I'd be curious if anyone hosts a service for historical data - i.e., what was the "severity" (one of the attributes the Yahoo API returns) for a given location at a given date and time.
(I'm going to guess that such a thing doesn't exist today, or at least no public options, as this would be an immense amount of data to store, but it never hurts to ask...)
There is no historical traffic information available. The closest our experts could suggest is a paid product https://cloud.google.com/maps-platform/routes/.
Google Maps traffic information is available via the Distance Matrix API, and to access it, the only thing you need to do is to get a developer key from Google. You can call the service up to 2,500 times in a 24-hour period for free, which should be fine for most advertisers.
The Traffic API is a suite of web services designed for developers to create web and mobile applications around real-time traffic. These web services can be used via RESTful APIs.
The Google Directions API allows you to query the api with a particular route and returns a JSON string or XML element as a result. This result includes the element - ' duration_in_traffic ' This indicates the total duration of the particular leg of the journey, taking into account current traffic conditions. (
While yahoo has shut down its traffic apis, there are a number of companies providing traffic information.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With