Skip to content
Snippets Groups Projects
Commit b7515a1a authored by Hưng Đào's avatar Hưng Đào Committed by Alex Reisner
Browse files

Place of interest can be referred from `place_type` for Nominatim result (#1141)

parent fd75cabf
No related branches found
No related tags found
No related merge requests found
...@@ -4,9 +4,7 @@ module Geocoder::Result ...@@ -4,9 +4,7 @@ module Geocoder::Result
class Nominatim < Base class Nominatim < Base
def poi def poi
%w[building university school hospital mall hotel restaurant stadium bus_stop tram_stop].each do |key| return @data['address'][place_type] if @data['address'].key?(place_type)
return @data['address'][key] if @data['address'].key?(key)
end
return nil return nil
end 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