lib/geocoder/results/nominatim.rb in geocoder-1.3.0 vs lib/geocoder/results/nominatim.rb in geocoder-1.3.1

- old
+ new

@@ -76,9 +76,14 @@ def place_type @data['type'] end + def viewport + south, north, west, east = @data['boundingbox'].map(&:to_f) + [south, west, north, east] + end + def self.response_attributes %w[place_id osm_type osm_id boundingbox license polygonpoints display_name class type stadium] end