I use the GAS built into Google's spreadsheet to act as a mileage log. After the user enters their origin and destination, my script automatically calculates the distance and enters it into the spreadsheet. It works great, except for half the time when it tells me:
{error_message = You have exceeded your daily request quota for this API. We recommend registering for a key in the Google Developers console: https://console.developers.google.com/apis/credentials? project = _ , routes = [], status = OVER_QUERY_LIMIT}
I’m definitely not getting anywhere near the daily quota. The relevant part of my code is as follows:
var directions = Maps.newDirectionFinder()
.setOrigin(orig)
.setDestination(dest)
.getDirections();
It throws an error on .getDirection (). I would really appreciate an understanding of this issue.
source
share