我在调用 Google 的距离矩阵 API 时间歇性地收到 OVER_QUERY_LIMIT 错误。
启用计费后,它不应显示此错误,因为根据 API 文档,我每天可以发出 100,000 个请求。不过,我目前每天发出 2500-2600 个请求。
此外,Google Console 项目中的 API 统计报告不会在仪表板中显示距离矩阵 API 的任何数据,但是,它会显示其他 API 的数据。请参阅随附的屏幕截图。
错误信息:
{
"destination_addresses": [],
"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=_",
"origin_addresses": [],
"rows": [],
"status": "OVER_QUERY_LIMIT"
}