Browse Source

pass config to controller in nearby router setup

pull/546/head
Diana Shkolnikov 9 years ago
parent
commit
afc585bb87
  1. 2
      routes/v1.js

2
routes/v1.js

@ -105,7 +105,7 @@ function addRoutes(app, peliasConfig) {
nearby: createRouter([
sanitisers.nearby.middleware,
middleware.calcSize(),
controllers.search(undefined, reverseQuery),
controllers.search(peliasConfig, undefined, reverseQuery),
postProc.distances('point.'),
// reverse confidence scoring depends on distance from origin
// so it must be calculated first

Loading…
Cancel
Save