|
|
@ -88,7 +88,7 @@ const PlaceHolder = require('../service/configurations/PlaceHolder'); |
|
|
|
function addRoutes(app, peliasConfig) { |
|
|
|
function addRoutes(app, peliasConfig) { |
|
|
|
const esclient = elasticsearch.Client(peliasConfig.esclient); |
|
|
|
const esclient = elasticsearch.Client(peliasConfig.esclient); |
|
|
|
|
|
|
|
|
|
|
|
const pipConfiguration = new PointInPolygon(peliasConfig.api.services.placeholder); |
|
|
|
const pipConfiguration = new PointInPolygon(peliasConfig.api.services.pip); |
|
|
|
const pipService = serviceWrapper(pipConfiguration); |
|
|
|
const pipService = serviceWrapper(pipConfiguration); |
|
|
|
const isPipServiceEnabled = _.constant(pipConfiguration.isEnabled()); |
|
|
|
const isPipServiceEnabled = _.constant(pipConfiguration.isEnabled()); |
|
|
|
|
|
|
|
|
|
|
|