Method: AtlasEngine::AddressImporter::OpenAddress::FeatureHelper#openaddress_source_id
- Defined in:
- app/models/atlas_engine/address_importer/open_address/feature_helper.rb
#openaddress_source_id(feature) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'app/models/atlas_engine/address_importer/open_address/feature_helper.rb', line 12 def openaddress_source_id(feature) objid, hash = feature["properties"].values_at("id", "hash") if objid.present? # OA indicates an OpenAddresses-provided ID "OA-#{objid}" elsif hash.present? # Which may come from a different field, hence the hash sign "OA##{hash}" else # AT signifies an Atlas-calculated hash "AT-#{signature(feature)}" end end |