Method: Geocoder::Result::Opencagedata#poi
- Defined in:
- lib/geocoder/results/opencagedata.rb
#poi ⇒ Object
6 7 8 9 10 11 |
# File 'lib/geocoder/results/opencagedata.rb', line 6 def poi %w[stadium bus_stop tram_stop].each do |key| return @data['components'][key] if @data['components'].key?(key) end return nil end |