From 6e9cce8262887a8ec6e6e6a30d5b6dda86b0243d Mon Sep 17 00:00:00 2001 From: Joxit Date: Wed, 20 Jan 2021 13:37:36 +0100 Subject: [PATCH] feat(import): map field used in #402 --- lib/streams/recordStream.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/streams/recordStream.js b/lib/streams/recordStream.js index ebf402ac7..5586f50e8 100644 --- a/lib/streams/recordStream.js +++ b/lib/streams/recordStream.js @@ -79,7 +79,10 @@ function geojsonStream(stream) { LON: _.get(geojson, 'geometry.coordinates[0]'), LAT: _.get(geojson, 'geometry.coordinates[1]'), POSTCODE: _.get(geojson, 'properties.postcode'), - UNIT:_.get(geojson, 'properties.unit') + UNIT:_.get(geojson, 'properties.unit'), + DISTRICT:_.get(geojson, 'properties.district'), + REGION:_.get(geojson, 'properties.region'), + CITY:_.get(geojson, 'properties.city') }; } catch(e) { logger.error(e);