Class: AtlasEngine::Si::AddressImporter::OpenAddress::Mapper

Inherits:
AddressImporter::OpenAddress::DefaultMapper show all
Defined in:
app/countries/atlas_engine/si/address_importer/open_address/mapper.rb

Instance Method Summary collapse

Methods inherited from AddressImporter::OpenAddress::DefaultMapper

#initialize

Methods included from AddressImporter::OpenAddress::FeatureHelper

#geometry, #housenumber_and_unit, #normalize_zip, #openaddress_source_id, #province_code_from_name, #province_code_from_zip, #province_from_code

Constructor Details

This class inherits a constructor from AtlasEngine::AddressImporter::OpenAddress::DefaultMapper

Instance Method Details

#map(feature) ⇒ Object



12
13
14
# File 'app/countries/atlas_engine/si/address_importer/open_address/mapper.rb', line 12

def map(feature)
  super.merge(region4: feature["properties"]["district"])
end