class Geocoder::Lookup::Opencagedata

def query_url_params(query)

def query_url_params(query)
  params = {
    :q => query.sanitized_text,
    :language => (query.language || configuration.language)
  }.merge(super)
  [:countrycode, :min_confidence, :no_dedupe, :no_annotations, :no_record, :limit].each do |option|
    unless (option_value = query.options[option]).nil?
      params[option] = option_value
    end
  end
  unless (bounds = query.options[:bounds]).nil?
    params[:bounds] = bounds.map{ |point| "%f,%f" % point }.join(',')
  end
  params
end