lib/geocoder/results/nominatim.rb in geocoder-1.4.1 vs lib/geocoder/results/nominatim.rb in geocoder-1.4.2
- old
+ new
@@ -2,12 +2,10 @@
module Geocoder::Result
class Nominatim < Base
def poi
- %w[building university school hospital mall hotel restaurant stadium bus_stop tram_stop].each do |key|
- return @data['address'][key] if @data['address'].key?(key)
- end
+ return @data['address'][place_type] if @data['address'].key?(place_type)
return nil
end
def house_number
@data['address']['house_number']