We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
class
1 parent 5d5b3e3 commit c741d4aCopy full SHA for c741d4a
1 file changed
lib/geocoder/results/nominatim.rb
@@ -70,14 +70,20 @@ def coordinates
70
[@data['lat'].to_f, @data['lon'].to_f]
71
end
72
73
+ def place_class
74
+ @data['class']
75
+ end
76
+
77
def self.response_attributes
78
%w[place_id osm_type osm_id boundingbox license
79
polygonpoints display_name class type stadium]
80
81
82
response_attributes.each do |a|
- define_method a do
- @data[a]
83
+ unless method_defined?(a)
84
+ define_method a do
85
+ @data[a]
86
87
88
89
0 commit comments