aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Harvey <andrew@alantgeo.com.au>2021-05-17 23:31:07 +1000
committerAndrew Harvey <andrew@alantgeo.com.au>2021-05-17 23:31:07 +1000
commitac3724fd311d6b9614523bb9753d46b361dde4b7 (patch)
tree8e80822bfa17405551be0ed318c242594c2efb6d
parent24f650fdc19febf60c3002c125da897199f4e8a4 (diff)
log match features in conflation
-rwxr-xr-xbin/conflate.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/conflate.js b/bin/conflate.js
index 7b7f09b..f986028 100755
--- a/bin/conflate.js
+++ b/bin/conflate.js
@@ -140,6 +140,7 @@ const conflate = new Transform({
})
if (matches.length) {
// matching number and street, high confidence
+ feature.properties._matches = matches.map(match => `${match.properties['@type']}/${match.properties['@id']}`).join(',')
outputStreams.exactMatch.write(feature)
} else {
// no exact match, probably can import