1
votes

While working with the geocoder gem I have found some condition based codes like:

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? If it does, does it consume extra quota for reverse geocoding?

2

2 Answers

0
votes

for development phase you dont need to wory about this as if you are using google .they provide something 25000/day requests which is sufficient but when your application is live and when the number of users are increasing ...so the number of request will also increase,hence you will run out of the quota and will have to use a premium package which is also not very costly.LOOK HERE

0
votes

Yes. Geocoder consumes quota from whichever service you have configured it to use.