As part of the launch of the Google Maps Platform the free tier pricing plans have changed.
This effectively means the number of free requests per day reduces from 2500 by about half to around 1300 (measured as up to 40,000 per month).
This means you can now only get away with 4 travel time sensors rather than up to 8, assuming you are not making any other calls to the platform.
My suggestion is to add configuration variables for:
poll interval (allowing to select how many mins between polls to the platform - currently hardcoded to 5mins)
activity window (set time/days where the polling is active eg: polling only between 6am and 10pm, or only poll work travel times on week days)
These changes should allow for good control of the polling and allow lots more sensors to be added and fit within the free tier.
Better yet is to extend the travel time sensor to allow multiple origins and destinations to be specified. If you look at the actual API and pricing they clearly state up to 25 origins and 25 destination are considered a SINGLE API request.
So if HA exposed this fully; and not a call per origin/destination pair; we’d all be happy… as we can make a single API call every 5 minutes without breaking out of the free tier.