class Geocoder::Query

def lookup


appropriate to the Query text.
Get a Lookup object (which communicates with the remote geocoding API)
#
def lookup
  if ip_address?
    name = Configuration.ip_lookup || Geocoder::Lookup.ip_services.first
  else
    name = Configuration.lookup || Geocoder::Lookup.street_services.first
  end
  Lookup.get(name)
end