Class: GeoSpider::Extractors::Master

Inherits:
Base
  • Object
show all
Defined in:
lib/geo-spider/extractors/master.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from GeoSpider::Extractors::Base

Instance Method Details

#locationsObject

TODO: Handle duplicates from different data sources



12
13
14
15
16
17
# File 'lib/geo-spider/extractors/master.rb', line 12

def locations
  microformat_locations = Extractors::Microformat.new(@element).locations
  postcode_locations = Extractors::Postcode.new(@element).locations
  
  (microformat_locations + postcode_locations).flatten
end