2017-06-28 27 views
0

谷歌地圖JavaScript API報告說我已超過限制,但我確信我沒有。我得到這個錯誤:
You have exceeded your daily request quota for this API. For more information on usage limits and the Google Maps Javascript API services please see: https://developers.google.com/maps/documentation/javascript/usage谷歌地圖Javascript API報告我已超過限制

我的谷歌API信息中心給出了這些數字在過去的日子:

  • 谷歌Places API的Web服務:407
  • 谷歌地圖地理編碼API:70
  • 谷歌Maps JavaScript API:30

什麼可能導致這種情況?我怎麼能得到這個並再次運行,它正在殺死我的應用程序?

+0

您是否使用該項目的API密鑰? – xomena

回答

0

我遇到了你的問題,因爲我處於相同的位置,根據控制檯看似遠低於配額限制。

在開發者控制檯中,轉到信息中心,然後點擊Google Places API Web服務。然後在配額標籤中,滾動到底部,您會看到每天的請求。在這裏,我清楚地達到了每天1000個請求的限制,因此解釋了請求的阻止。

We now count Google Maps JavaScript API client-side requests towards the daily limit of the associated web service API.*

所以它的libraries=places和相關API的使用(例如自動提示在搜索框中),即觸發此。