From e951a19c356e0591501d588ff65e6bb87b1c9508 Mon Sep 17 00:00:00 2001 From: stefanocudini Date: Wed, 12 Oct 2022 11:09:25 +0200 Subject: [PATCH] fix here reformat --- geocoder/utils/formatters.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/geocoder/utils/formatters.js b/geocoder/utils/formatters.js index f398e6a8..ced35b8b 100644 --- a/geocoder/utils/formatters.js +++ b/geocoder/utils/formatters.js @@ -67,7 +67,7 @@ module.exports = (config, _) => { //const items = _.get(data,'body.Response.View[0].Result'); const items = _.get(data,'items'); - console.log('HERE RETURN',JSON.stringify(items,null,4)) + //console.log('HERE RETURN',JSON.stringify(items,null,4)) return _.compact(_.map(items, item => { @@ -79,9 +79,8 @@ module.exports = (config, _) => { let lat = _.get(item,"position.lat") , lon = _.get(item,"position.lng") , text = _.get(item,"address.label"); -console.log(item.id,lat,lon,text) - if (lat && lon) { + if (lat && lon) { return createHit({ id: item.id, text,