alexreisner/geocoder — Issue #190: Fail to reverse geocode coordinates (54.525933398628226,15.255118700000025)
Author: antonrd
Created: 2012-03-03 13:34:30+00:00
State: open

When trying to reverse geocode the locations with coordinates (54.525933398628226,15.255118700000025) using the google maps reverse geocoding utility getting this error trace:

NoMethodError: undefined method `address' for nil:NilClass
from gems/geocoder-1.1.0/lib/geocoder/stores/active_record.rb:239:in `block in reverse_geocode'
from gems/ruby-1.9.2-p290@telenoo/gems/geocoder-1.1.0/lib/geocoder/stores/base.rb:111:in `do_lookup'
from gems/geocoder-1.1.0/lib/geocoder/stores/active_record.rb:237:in `reverse_geocode'
from (irb):7
from gems/railties-3.2.1/lib/rails/commands/console.rb:47:in `start'
from gems/railties-3.2.1/lib/rails/commands/console.rb:8:in `start'
from gems/railties-3.2.1/lib/rails/commands.rb:41:in `'
from script/rails:6:in `require'
from script/rails:6:in `

'

Looks like a nil result object is returned by the 'Geocoder.search' method.
Do you think I am doing something wrong or is there some other problem?