Class: GeoSpider::Extractors::Master
- Defined in:
- lib/geo-spider/extractors/master.rb
Instance Method Summary collapse
-
#locations ⇒ Object
TODO: Handle duplicates from different data sources.
Methods inherited from Base
Constructor Details
This class inherits a constructor from GeoSpider::Extractors::Base
Instance Method Details
#locations ⇒ Object
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 |