Google 地方 API 使用限制错误

Google Place API Usage Limit Error

我正在使用 Angular6 开发 Web 应用程序。我昨天激活了 Google Place API 帐户。我通过 ngx-google-places-autocomplete 插件使用它。成功集成后,我多次收到 HTTP 状态 200 的以下错误:

"You have exceeded your daily request quota for this API."

这有点奇怪,因为我的 200 美元信用配额太高了。我搜索 internet/SO,发现请求率也很重要。因此,我检查了我的 Google 帐户中的指标:

从屏幕截图可以清楚地看出我没有超过每日配额,而且我的每秒请求率也很低。但我仍然收到此错误。

有人可以帮忙吗!

仔细按照以下说明操作后,我的问题已解决: https://developers.google.com/maps/documentation/javascript/error-messages?utm_source=maps_js&utm_medium=degraded&utm_campaign=billing#api-key-and-billing-errors

API Key and Billing Errors

A darkened map, or ‘negative’ Street View image, watermarked with “for development purposes only” is returned when any of the following is true:

  • The request is missing an API key.

  • Billing has not been enabled on your account.

  • The provided billing method is invalid (for example an expired credit card).

  • A self-imposed daily limit has been exceeded.

就我而言,我使用的是未启用计费的 Google 项目的 API 密钥。