简体   繁体   English

Rails 地理编码器 gem | Google API 错误:超过查询限制

[英]Rails geocoder gem | Google API error: over query limit

I know there are others questions with the same problem but i don't find the solution in them.我知道还有其他问题存在同样的问题,但我没有在其中找到解决方案。 In my rails project(it is in development) when i try to send address for the first time at day the geocoder don't search lat and long.在我的 rails 项目(正在开发中)中,当我第一次尝试在当天发送地址时,地理编码器不会搜索经纬度。 In the terminal i'm receive the message: Google API error: over query limit.在终端中,我收到消息:Google API 错误:超过查询限制。 I did not reach the google query limit per/hour, per/day and don't know how resolve this.我没有达到每小时、每天的谷歌查询限制,不知道如何解决这个问题。

The limit is frequently by IP.限制通常由 IP 决定。 Are you running your app on shared infrastructure (such as Heroku)?您是否在共享基础架构(例如 Heroku)上运行您的应用程序? You could also try geocoding client-side, which uses the user's IP as opposed to your server's.您还可以尝试对客户端进行地理编码,它使用用户的 IP,而不是您的服务器的 IP。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM