From 6853fd209fa80f8788951e6105ccfe8e5c8b30c6 Mon Sep 17 00:00:00 2001 From: Andrew Harvey Date: Thu, 13 May 2021 14:29:27 +1000 Subject: additional logging --- bin/reduceOverlap.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/reduceOverlap.js b/bin/reduceOverlap.js index bc3dbd0..c5da852 100755 --- a/bin/reduceOverlap.js +++ b/bin/reduceOverlap.js @@ -131,7 +131,7 @@ const reduce = new Transform({ } this.push(featureGroup.filter(f => 'addr:unit' in f.properties)[0]) } else { - nonUnitFeature.properties['addr:flats'] = unitsToRanges(allOtherUnits) + nonUnitFeature.properties['addr:flats'] = unitsToRanges(allOtherUnits, featureGroup) // TODO should we set addr:flats:prefix from addr:unit:prefix? this.push(nonUnitFeature) } @@ -149,7 +149,7 @@ const reduce = new Transform({ const feature = cloneDeep(featureGroup[0]) delete feature.properties['addr:unit'] - feature.properties['addr:flats'] = unitsToRanges(units) + feature.properties['addr:flats'] = unitsToRanges(units, featureGroup) this.push(feature) } } else if (featureGroup.length === 1) { -- cgit v1.2.3