Method: Geocoder::Query#lookup
- Defined in:
- lib/geocoder/query.rb
#lookup ⇒ Object
Get a Lookup object (which communicates with the remote geocoding API) appropriate to the Query text.
34 35 36 37 38 39 40 41 |
# File 'lib/geocoder/query.rb', line 34 def lookup if ![:street_address] and ([:ip_address] or ip_address?) name = [:ip_lookup] || Configuration.ip_lookup || Geocoder::Lookup.ip_services.first else name = [:lookup] || Configuration.lookup || Geocoder::Lookup.street_services.first end Lookup.get(name) end |