|
|
@ -88,7 +88,7 @@ function addRoutes(app, peliasConfig) { |
|
|
|
postProc.renamePlacenames(), |
|
|
|
postProc.renamePlacenames(), |
|
|
|
postProc.parseBoundingBox(), |
|
|
|
postProc.parseBoundingBox(), |
|
|
|
postProc.normalizeParentIds(), |
|
|
|
postProc.normalizeParentIds(), |
|
|
|
postProc.assignLabels(require('pelias-labels')), |
|
|
|
postProc.assignLabels(), |
|
|
|
postProc.geocodeJSON(peliasConfig, base), |
|
|
|
postProc.geocodeJSON(peliasConfig, base), |
|
|
|
postProc.sendJSON |
|
|
|
postProc.sendJSON |
|
|
|
]), |
|
|
|
]), |
|
|
@ -104,7 +104,7 @@ function addRoutes(app, peliasConfig) { |
|
|
|
postProc.parseBoundingBox(), |
|
|
|
postProc.parseBoundingBox(), |
|
|
|
postProc.normalizeParentIds(), |
|
|
|
postProc.normalizeParentIds(), |
|
|
|
postProc.geocodeJSON(peliasConfig, base), |
|
|
|
postProc.geocodeJSON(peliasConfig, base), |
|
|
|
postProc.assignLabels(require('pelias-labels')), |
|
|
|
postProc.assignLabels(), |
|
|
|
postProc.sendJSON |
|
|
|
postProc.sendJSON |
|
|
|
]), |
|
|
|
]), |
|
|
|
reverse: createRouter([ |
|
|
|
reverse: createRouter([ |
|
|
@ -122,7 +122,7 @@ function addRoutes(app, peliasConfig) { |
|
|
|
postProc.parseBoundingBox(), |
|
|
|
postProc.parseBoundingBox(), |
|
|
|
postProc.normalizeParentIds(), |
|
|
|
postProc.normalizeParentIds(), |
|
|
|
postProc.geocodeJSON(peliasConfig, base), |
|
|
|
postProc.geocodeJSON(peliasConfig, base), |
|
|
|
postProc.assignLabels(require('pelias-labels')), |
|
|
|
postProc.assignLabels(), |
|
|
|
postProc.sendJSON |
|
|
|
postProc.sendJSON |
|
|
|
]), |
|
|
|
]), |
|
|
|
nearby: createRouter([ |
|
|
|
nearby: createRouter([ |
|
|
@ -140,7 +140,7 @@ function addRoutes(app, peliasConfig) { |
|
|
|
postProc.parseBoundingBox(), |
|
|
|
postProc.parseBoundingBox(), |
|
|
|
postProc.normalizeParentIds(), |
|
|
|
postProc.normalizeParentIds(), |
|
|
|
postProc.geocodeJSON(peliasConfig, base), |
|
|
|
postProc.geocodeJSON(peliasConfig, base), |
|
|
|
postProc.assignLabels(require('pelias-labels')), |
|
|
|
postProc.assignLabels(), |
|
|
|
postProc.sendJSON |
|
|
|
postProc.sendJSON |
|
|
|
]), |
|
|
|
]), |
|
|
|
place: createRouter([ |
|
|
|
place: createRouter([ |
|
|
@ -152,7 +152,7 @@ function addRoutes(app, peliasConfig) { |
|
|
|
postProc.parseBoundingBox(), |
|
|
|
postProc.parseBoundingBox(), |
|
|
|
postProc.normalizeParentIds(), |
|
|
|
postProc.normalizeParentIds(), |
|
|
|
postProc.geocodeJSON(peliasConfig, base), |
|
|
|
postProc.geocodeJSON(peliasConfig, base), |
|
|
|
postProc.assignLabels(require('pelias-labels')), |
|
|
|
postProc.assignLabels(), |
|
|
|
postProc.sendJSON |
|
|
|
postProc.sendJSON |
|
|
|
]), |
|
|
|
]), |
|
|
|
status: createRouter([ |
|
|
|
status: createRouter([ |
|
|
|