aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/reduceOverlap.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/reduceOverlap.js b/bin/reduceOverlap.js
index aa18125..bc3dbd0 100755
--- a/bin/reduceOverlap.js
+++ b/bin/reduceOverlap.js
@@ -129,7 +129,7 @@ const reduce = new Transform({
debugStreams.oneUnitOneNonUnit.write(feature)
})
}
- this.push(allOtherUnits[0])
+ this.push(featureGroup.filter(f => 'addr:unit' in f.properties)[0])
} else {
nonUnitFeature.properties['addr:flats'] = unitsToRanges(allOtherUnits)
// TODO should we set addr:flats:prefix from addr:unit:prefix?