Browse Source

add new confidence score middleware to routes

pull/674/head
Diana Shkolnikov 8 years ago
parent
commit
3cd342f2e7
  1. 2
      routes/v1.js

2
routes/v1.js

@ -37,6 +37,7 @@ var postProc = {
trimByGranularity: require('../middleware/trimByGranularity'),
distances: require('../middleware/distance'),
confidenceScores: require('../middleware/confidenceScore'),
confidenceScoresFallback: require('../middleware/confidenceScoreFallback'),
confidenceScoresReverse: require('../middleware/confidenceScoreReverse'),
dedupe: require('../middleware/dedupe'),
localNamingConventions: require('../middleware/localNamingConventions'),
@ -78,6 +79,7 @@ function addRoutes(app, peliasConfig) {
postProc.trimByGranularity(),
postProc.distances('focus.point.'),
postProc.confidenceScores(peliasConfig),
postProc.confidenceScoresFallback(),
postProc.dedupe(),
postProc.localNamingConventions(),
postProc.renamePlacenames(),

Loading…
Cancel
Save