简体   繁体   English

红宝石地理编码器的宝石是否会消耗提供商规定的配额以获取经度/纬度和国家/地区代码?

[英]Does ruby geocoder gem consume quota imposed by providers to get latitude/longitude and country code?

While working with the geocoder gem I have found some condition based codes like: 在使用Geocoder gem时,我发现了一些基于条件的代码,例如:

def geocoder_lookup
  if country_code == "RU"
    :yandex
  elsif country_code == "CN"
    :baidu
  else
    :google
  end
end

All I want is to store latitude/longitude and country code. 我只想存储纬度/经度和国家/地区代码。 If I do that, does it consume my API quota? 如果这样做,是否会消耗我的API配额? If it does, does it consume extra quota for reverse geocoding? 如果可以,是否会为反向地理编码消耗额外的配额?

对于开发阶段,您无需担心,就好像您使用的是google一样。它们每天提供25000个请求,这些请求足够了,但是当您的应用程序处于活动状态并且用户数量在增加时...因此请求数量将也增加了,因此你会用完的配额,将不得不使用一个高级包,这也是不太costly.LOOK HERE

Yes. 是。 Geocoder consumes quota from whichever service you have configured it to use. Geocoder会使用您已配置使用的任何服务中的配额。

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

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