diff options
author | Andrew Harvey <andrew@alantgeo.com.au> | 2021-05-05 21:09:19 +1000 |
---|---|---|
committer | Andrew Harvey <andrew@alantgeo.com.au> | 2021-05-05 21:09:19 +1000 |
commit | 5c96d0c4157c81648f53e6d7398fcd8e37bf2bfd (patch) | |
tree | 8238637f351c939b4ed6fa299216fbc52635b5bc | |
parent | a219a8abad1110b3dcf9b7d95291b9a42f6f8880 (diff) |
omit addr:unit:prefix since it complicates the processing and it is not clear if it is even desired
-rwxr-xr-x | bin/reduceDuplicates.js | 2 | ||||
-rw-r--r-- | lib/toOSM.js | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/bin/reduceDuplicates.js b/bin/reduceDuplicates.js index abd5810..ab2cea6 100755 --- a/bin/reduceDuplicates.js +++ b/bin/reduceDuplicates.js @@ -45,7 +45,7 @@ const index = new Transform({ } const key = [ - feature.properties['addr:unit:prefix'], + // feature.properties['addr:unit:prefix'], feature.properties['addr:unit'], feature.properties['addr:housenumber'], feature.properties['addr:street'], diff --git a/lib/toOSM.js b/lib/toOSM.js index afa8057..1e30f4d 100644 --- a/lib/toOSM.js +++ b/lib/toOSM.js @@ -111,6 +111,7 @@ module.exports = (sourceFeature, options) => { if (bld_unit) { // building unit type (Unit, Shop, Suite...) // only included if a unit value is set + /* currently ommitted if (sourceProperties.BLGUNTTYP) { if (sourceProperties.BLGUNTTYP in buildingUnitType) { outputProperties['addr:unit:prefix'] = capitalCase(buildingUnitType[sourceProperties.BLGUNTTYP]) @@ -120,6 +121,7 @@ module.exports = (sourceFeature, options) => { } } } + */ outputProperties['addr:unit'] = bld_unit } |