Skip to content

Commit

Permalink
fix here reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanocudini committed Oct 12, 2022
1 parent aaf9abe commit e951a19
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions geocoder/utils/formatters.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {

Expand All @@ -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,
Expand Down

0 comments on commit e951a19

Please sign in to comment.