lib/geocoder/lookups/yandex.rb in geocoder-1.5.1 vs lib/geocoder/lookups/yandex.rb in geocoder-1.5.2

- old
+ new

@@ -48,11 +48,11 @@ q = query.sanitized_text end params = { :geocode => q, :format => "json", - :plng => "#{query.language || configuration.language}", # supports ru, uk, be - :key => configuration.api_key + :lang => "#{query.language || configuration.language}", # supports ru, uk, be, default -> ru + :apikey => configuration.api_key } unless (bounds = query.options[:bounds]).nil? params[:bbox] = bounds.map{ |point| "%f,%f" % point }.join('~') end params.merge(super)