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