class Geocoder::Lookup::LocationIq

def query_url(query)

def query_url(query)
  method = query.reverse_geocode? ? "reverse.php" : "search.php"
  host = configuration[:host] || "locationiq.org/v1"
  "#{protocol}://#{host}/#{method}?key=#{configuration.api_key}&" + url_query_string(query)
end