class Geocoder::Lookup::Yandex

def query_url_params(query)

def query_url_params(query)
  if query.reverse_geocode?
    q = query.coordinates.reverse.join(",")
  else
    q = query.sanitized_text
  end
  params = {
    :geocode => q,
    :format => "json",
    :plng => "#{query.language || configuration.language}", # supports ru, uk, be
    :key => configuration.api_key
  }
  unless (bounds = query.options[:bounds]).nil?
    params[:bbox] = bounds.map{ |point| "%f,%f" % point }.join('~')
  end
  params.merge(super)
end