Browse Source

removed redundant for pelias-labels

pull/680/head
Stephen Hess 8 years ago
parent
commit
942a8ff0a3
  1. 10
      routes/v1.js

10
routes/v1.js

@ -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([

Loading…
Cancel
Save