Method: Qa::Authorities::Geonames#search

Defined in:
lib/qa/authorities/geonames.rb

#search(q) ⇒ Object



37
38
39
40
41
42
43
# File 'lib/qa/authorities/geonames.rb', line 37

def search(q)
  unless username
    Rails.logger.error "Questioning Authority tried to call geonames, but no username was set"
    return []
  end
  parse_authority_response(json(build_query_url(q)))
end