class Geocoder::Lookup::IpdataCo

def results(query)

def results(query)
  # don't look up a loopback or private address, just return the stored result
  return [reserved_result(query.text)] if query.internal_ip_address?
  # note: Ipdata.co returns plain text on bad request
  (doc = fetch_data(query)) ? [doc] : []
end