class Geocoder::Lookup::Ip2locationLite
def results(query)
def results(query) return [] unless configuration[:file] i2l = Ip2location.new.open(configuration[:file].to_s) result = i2l.get_all(query.to_s) result.nil? ? [] : [result] end
def results(query) return [] unless configuration[:file] i2l = Ip2location.new.open(configuration[:file].to_s) result = i2l.get_all(query.to_s) result.nil? ? [] : [result] end