Skip to content

Commit 72f1e1e

Browse files
authored
Merge pull request #1702 from ChaelCodes/add-atreet-address-to-nominatim
Add `street_address` to nominatim result
2 parents 8143fce + d4280c2 commit 72f1e1e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/geocoder/results/nominatim.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ def address
1616
@data['display_name']
1717
end
1818

19+
def street_address
20+
[house_number, street].compact.join(' ')
21+
end
22+
1923
def street
2024
%w[road pedestrian highway].each do |key|
2125
return address_data[key] if address_data.key?(key)

0 commit comments

Comments
 (0)