Browse Source

renamed import, added comment

pull/1002/head
Stephen Hess 7 years ago
parent
commit
81be065418
  1. 5
      helper/geojsonify.js

5
helper/geojsonify.js

@ -2,7 +2,7 @@
const GeoJSON = require('geojson');
const extent = require('@mapbox/geojson-extent');
const logger = require('pelias-logger').get('geojsonify');
const addDetails = require('./geojsonify_place_details');
const collectDetails = require('./geojsonify_place_details');
const _ = require('lodash');
const Document = require('pelias-model').Document;
@ -58,7 +58,8 @@ function geojsonifyPlace(params, place) {
logger.warn(`doc ${doc.gid} does not contain name.default`);
}
_.assign(doc, addDetails(params, place));
// extend doc with all the details info
_.assign(doc, collectDetails(params, place));
return doc;
}

Loading…
Cancel
Save