diff options
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/conflate.js | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/bin/conflate.js b/bin/conflate.js index 286d249..99b7080 100755 --- a/bin/conflate.js +++ b/bin/conflate.js @@ -167,8 +167,8 @@ const conflate = new Transform({                )              return feature.properties['addr:street'] === osmStreet -              && osmHouseNumber !== null && feature.properties['addr:housenumber'] === osmHouseNumber -              && (('addr:unit' in feature.properties && osmUnit !== null) ? feature.properties['addr:unit'] === osmUnit : true) +              && osmHouseNumber !== null && feature.properties['addr:housenumber'].replaceAll(' ', '') === osmHouseNumber.replaceAll(' ', '') // ignoring whitespace when comparing house numbers +              && (('addr:unit' in feature.properties && osmUnit !== null) ? feature.properties['addr:unit'].replaceAll(' ', '') === osmUnit.replaceAll(' ', '') : true)            })            if (matches.length) {              // matching unit, number, street, high confidence | 
