api - 超过 Google Geocode API 使用限制后如何解锁?

标签 api drupal-7 openlayers google-geocoder

现在已经搜索了 2 天的答案,但运气不佳。

我正在开发一个 Drupal 7 站点,该站点的 Geofield 字段是使用 Google Geocoder API 从地址字段自动填充的,但几天前它停止工作:

Exception: Google API returned bad status.\nStatus: OVER_QUERY_LIMIT in geocoder_google() (line 52 of /home/.../modules/geocoder/plugins/geocoder_handler/google.inc).



我可以删除向 Google API 发送过多请求的邻近搜索过滤器,但我无法继续,因为每次尝试向数据库添加新记录时都会遇到上述错误(它只进行一次查找以获取来自地址字段的地理编码但失败)。有什么方法可以从 Google 的 API 中取消阻止我的网站或重置我的使用情况?我添加了一个 API key ,但无济于事。直到最近,这一切都很好,我想这是我在不知不觉中超过了使用限制的时候。

我的 API 经验有限,并且是 Drupal/PHP 初学者,所以请温柔一点!如果需要,很乐意提供更多信息、代码、错误消息等。正在使用的相关 Drupal 7 模块是 OpenLayers、OpenLayers Proximity、Geofield、GeoPHP 和 Geocoder。感谢任何人都可以提供的任何帮助。

最佳答案

来自 Google Geocode Documentation :

Use of the Google Geocoding API is subject to a query limit of 2,500 geolocation requests per day. (User of Google Maps API for Business may perform up to 100,000 requests per day.) This limit is enforced to prevent abuse and/or repurposing of the Geocoding API, and this limit may be changed in the future without notice. Additionally, we enforce a request rate limit to prevent abuse of the service. If you exceed the 24-hour limit or otherwise abuse the service, the Geocoding API may stop working for you temporarily. If you continue to exceed this limit, your access to the Geocoding API may be blocked.



所以,我猜你得等24小时,或者升级到商业版。

关于api - 超过 Google Geocode API 使用限制后如何解锁?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14399329/

相关文章:

api - 如何获取 Expedia Affiliate Network 的 CID(客户 ID)?

php - 如何使用 node_load 并呈现上下文链接

javascript - 设置 openlayers 弹出窗口大小的正确方法是什么?

javascript - 如何在带有 node.js 的 express.js 上使用 twitter api 显示最后 20 条推文?

java - 如何获取超过 50 个 Jira 问题?

Python向API发送请求

php - 防止 CKEditor 修复/更正(无效的)HTML 代码

php - 如何使用 Magento Core API 为特定用户获取购物车?

Openlayers 6 功能级别的 z 索引

javascript - 在传递到 OpenLayers 3 中样式函数的第一行上绘制箭头