class Geocoder::Lookup::Base
def make_api_request(query)
return the response object.
Make an HTTP(S) request to a geocoding API and
#
def make_api_request(query) timeout(configuration.timeout) do uri = URI.parse(query_url(query)) args = [uri.host, uri.port] args = args.push(uri.user, uri.password) unless uri.user.nil? or uri.password.nil? opts = {} opts[:use_ssl] = use_ssl? http_client.start(*args, opts) do |client| client.get(uri.request_uri, configuration.http_headers) end end end