class Geocoder::Lookup::Base

def fetch_raw_data(query, reverse = false)


Fetches a raw search result (JSON string).
#
def fetch_raw_data(query, reverse = false)
  timeout(Geocoder::Configuration.timeout) do
    url = query_url(query, reverse)
    unless cache and response = cache[url]
      response = http_client.get_response(URI.parse(url)).body
      if cache
        cache[url] = response
      end
    end
    response
  end
end