I'm getting a NoMethodError today when using Google Geocode. Here's a sample from my Rails console:
--[BEGIN]--
Loading development environment.>> gg = GoogleGeocode.new(GOOGLE_MAPS_KEY)=> #<GoogleGeocode:0x32f8854
@key="[censored]", @url=#<URI::HTTP:0x197c18c URL:http://maps.google.com/maps/>>>>
gg.locate("90210")NoMethodError: You have a nil object when you didn't expect it!The error occurred while
evaluating nil.text from ./script/../config/../config/../vendor/google_geocode.rb:60:in `parse_response'
from ./script/../config/../config/../vendor/rc_rest.rb:104:in `get' from /usr/local/lib/ruby/1.8/open-uri.rb:135:in
`open_uri' from /usr/local/lib/ruby/1.8/open-uri.rb:528:in `open' from
./script/../config/../config/../vendor/rc_rest.rb:99:in `get' from
./script/../config/../config/../vendor/google_geocode.rb:51:in `locate' from (irb):2
--[END]--
Any ideas? It's almost as if the Google server isn't responding to the request.
Thank you. |