I want to show average traffic layer on google map like this.
But, this map shows the real time data of traffic, instead i want to show average traffic over some period of time on google map, is it possible? or any other maps api can help?
Please star this issue issue tracker link to vote and get update for this feature.
At the bottom, tap Directions. At the bottom, tap the white bar to display: The current traffic on your route. Typical traffic by the hour and any slowdowns on the way.
FYI Google traffic data API now available for free users.
If you want to see general traffic information, you can use the traffic overlay feature in your Google Maps app. We then combine this database with historical traffic patterns with live traffic conditions and use machine learning to generate predictions based on both data sets.
If you check the Google Maps documentation, the only information that you can find here about traffic is the Traffic Layer. But this traffic layer add a real-time traffic information(if supported) in your maps. But on the Google Maps website, there is a typical traffic that you can use to see the information about traffic in any given day and time.
But I think this typical traffic is not yet available in Google Maps API. So what can I suggest you is to make a feature request about this information.
For more information, check this SO question if it can help you to your problem.
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