Browse Source

coarse geocoder endpoint: using admin0, admin1, admin2 and neighborhood layers/datasets only

pull/63/head
Harish Krishna 10 years ago
parent
commit
ec9d2245ff
  1. 3
      app.js
  2. 11
      helper/queryMixer.json

3
app.js

@ -37,6 +37,9 @@ app.get( '/suggest', sanitisers.suggest.middleware, controllers.suggest() );
app.get( '/suggest/nearby',
sanitisers.suggest.middleware,
controllers.suggest(undefined, undefined, require('./helper/queryMixer').suggest_nearby) );
app.get( '/suggest/coarse',
sanitisers.suggest.middleware,
controllers.suggest(undefined, undefined, require('./helper/queryMixer').coarse) );
// search API
app.get( '/search', sanitisers.search.middleware, controllers.search() );

11
helper/queryMixer.json

@ -24,5 +24,16 @@
"precision": [],
"fuzzy": "AUTO"
}
],
"coarse": [
{
"layers": ["admin0","admin1","admin2","neighborhood"],
"precision": []
},
{
"layers": ["admin0","admin1","admin2","neighborhood"],
"precision": [],
"fuzzy": "AUTO"
}
]
}
Loading…
Cancel
Save