Maps.newDirectionFinder() Exceeded Daily Request Quota

◇◆丶佛笑我妖孽 提交于 2019-12-08 11:04:45

问题


I am using a GAS embedded into a Google spreadsheet to act as a mileage log. After the user enters their origin and destination, my script automatically calculates the distance and inputs it into the spreadsheet. It works perfectly, except half the time it tells me:

{error_message=You have exceeded your daily request quota for this API. We recommend registering for a key at the Google Developers Console: https://console.developers.google.com/apis/credentials?project=_, routes=[], status=OVER_QUERY_LIMIT}

I am definitely nowhere near the daily request quota. The relevant part of my code is as follows:

var directions = Maps.newDirectionFinder()
    .setOrigin(orig)
    .setDestination(dest)
    .getDirections();

It throws the error at .getDirection(). I would greatly appreciate any insight into this problem.


回答1:


add a key to the request as recommended (it is now required).



来源:https://stackoverflow.com/questions/40229484/maps-newdirectionfinder-exceeded-daily-request-quota

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!