class Geocoder::Query

def lookup


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