module Geocoder

def lookup(query)


depending on the query contents.
Takes a search query and returns an IP or street address Lookup
Get a Lookup object (which communicates with the remote geocoding API).
#
def lookup(query)
  if ip_address?(query)
    get_lookup(ip_lookups.first)
  else
    get_lookup(Configuration.lookup || street_lookups.first)
  end
end