Question and accepted answer - since 2012.
From October 2015, you can get routes and predict travel times for future trips.
You can provide departure_time a route request. Please note that this function only works when connected using the API key.
It is based on historical data, and when traveling in the near future, it uses data about real traffic.
https://developers.google.com/maps/documentation/directions/intro#RequestParameters
source share