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