class Geocoder::Lookup::Pickpoint
def results(query)
def results(query) return [] unless doc = fetch_data(query) if !doc.is_a?(Array) && doc['message'] == 'Unauthorized' raise_error(Geocoder::InvalidApiKey, 'Unauthorized') end doc.is_a?(Array) ? doc : [doc] end