Browse Source

Merge pull request #1095 from pelias/fix-address-reverse

fix: Avoid querying PIP service for non-coarse reverse
pull/1099/head
Julian Simioni 7 years ago committed by GitHub
parent
commit
581a8ebfb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      routes/v1.js

2
routes/v1.js

@ -138,7 +138,7 @@ function addRoutes(app, peliasConfig) {
// fallback to coarse reverse when regular reverse didn't return anything
const coarseReverseShouldExecute = all(
isPipServiceEnabled, not(hasRequestErrors), not(hasResponseData)
isPipServiceEnabled, not(hasRequestErrors), not(hasResponseData), not(isOnlyNonAdminLayers)
);
const libpostalShouldExecute = all(

Loading…
Cancel
Save