ruby-on-railsgeocoder

Geocoder.configure returns no method error


I am trying to configure geocoder with geocoder 0.9.11 in rails 7. Every time I call Geocoder.configure in initializers/Geocoder.rb and in console it returns a no method error. I originally have a timeout error using the free lookup like yandex, but I cannot manage to get at Geocoder.configure which I assume is now different in newer geocoder versions? If this is in fact the problem that the free service is just too slow, are there premium services I can use?

Geocoder configure and timeout errors


Solution

  • Why on earth would you be using such an old gem? Unsurprisingly, the Geocoder.configure API was not present back in 2011, hence why you're getting the NoMethodError.