diff --git a/lib/geocoder/lookups/geocoder_ca.rb b/lib/geocoder/lookups/geocoder_ca.rb index 9969e48c750dabc2f7c55c0be5c5b6d2b959cbb7..afaf147caad696e9501e2c80ca5d7a4a69820253 100644 --- a/lib/geocoder/lookups/geocoder_ca.rb +++ b/lib/geocoder/lookups/geocoder_ca.rb @@ -22,9 +22,9 @@ module Geocoder::Lookup params = { :geoit => "xml", :jsonp => 1, - :callback => "test" + :callback => "test", + :auth => Geocoder::Configuration.api_key } - params.update({:auth => Geocoder::Configuration.api_key}) if Geocoder::Configuration.api_key.present? if reverse lat,lon = query.split(',') params[:latt] = lat