title: Ruby On Rails Geokit gem geocoding returning nil
body: <p>I am struggling with using the geokit gem in a Ruby on Rails application when supplied with an address to return anything other than nil.</p>
  
  <p>I've read the previous articles here on Stack Overflow, the GitHub repo for the gem and other internet articles and I believe that I am following the examples.</p>
  
  <p>This is code from my terminal window where I placed a <code>binding.pry</code> in my controller.rb file</p>
  
  <pre><code>    20:
      21:   location_a = Geokit::Geocoders::GoogleGeocoder.geocode("140 Market St, San Francisco, CA")
      22:   location_b = GoogleGeocoder.geocode("140 Market St, San Francisco, CA")
      23:
   =&gt; 24:   binding.pry
      25:
      26: end
  
  [1] pry(#&lt;BrewsController&gt;)&gt; location_a
  =&gt; #&lt;Geokit::GeoLoc:0x00007fa0d659f208
   @all=[#&lt;Geokit::GeoLoc:0x00007fa0d659f208 ...&gt;],
   @city=nil,
   @country_code=nil,
   @full_address=nil,
   @lat=nil,
   @lng=nil,
  </code></pre>
  
  <p>I read to put these at the top of my controller.rb file:</p>
  
  <pre><code>  require 'geokit'
    include Geokit::Geocoders
  </code></pre>
  
  <p>I have these lines of code in the <code>config/initializers/geokit_config.rb</code> file:</p>
  
  <pre><code>Geokit::Geocoders::GoogleGeocoder.api_key = "my-key-I-will-not-put-here"
  Geokit::Geocoders::provider_order = [:google]
  </code></pre>
  
  <p>I have the gems installed:</p>
  
  <pre><code>/Users/slathyd/.gem/ruby/2.4.5/gems/geokit-1.13.1
  /Users/slathyd/.gem/ruby/2.4.5/gems/geokit-rails-2.3.1
  </code></pre>
  
  <p>This is my <code>Gemfile</code></p>
  
  <pre><code>gem 'geokit'
  gem 'geokit-rails'
  </code></pre>
  
  <p>If anyone could tell me what I'm doing wrong and how to fix it, I would greatly appreciate it.  Cheers.</p>