Skip to content
Snippets Groups Projects
Commit 1a5da344 authored by Alex Reisner's avatar Alex Reisner
Browse files

Add #poi to Nominatim result.

parent b5571ff1
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,12 @@ require 'geocoder/results/base'
module Geocoder::Result
class Nominatim < Base
def poi
%w[stadium bus_stop tram_stop].each do |key|
@data['address'][key] if @data['address'].key?(key)
end
end
def house_number
@data['address']['house_number']
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment