Stephen Hess
3764b928c5
reordered predicates, added comments
8 years ago
Stephen Hess
6e693db87e
added support for non-coarse req.clean.layers
8 years ago
Stephen Hess
bc57876f70
added PointInPolygon service definitino
8 years ago
Stephen Hess
c129dec3bf
switch to _.defaultTo since it's more descriptive
8 years ago
Stephen Hess
f473503929
corrected config service
8 years ago
Stephen Hess
1f6b6b1ed0
finished conversion to use generic http/json service
8 years ago
Stephen Hess
988305686a
pass empty object to Placeholder when not in config
8 years ago
Stephen Hess
9ec1840594
moved sorting above deduping since the latter trims
8 years ago
Stephen Hess
1711b6e325
added predicate for only sorting when results are admins-only
8 years ago
Stephen Hess
471f565997
converted placeholder to microservice-wrapper
8 years ago
Stephen Hess
49fd5655c0
fixed case of require file... Macs, amirite?
8 years ago
Stephen Hess
3bf40fe51e
refactored ServiceConfiguration to be a class
8 years ago
Stephen Hess
1f6fefb3eb
converted placeholder controller to use generic service
8 years ago
Stephen Hess
f38987d7b9
removed hardcoded URL in favor of config URL
8 years ago
Stephen Hess
f14400ebce
added placeholder service support to API for admin-only queries
...
Adds a controller, service (which could probably be made more generic and share with pointinpolygon), and predicates for determining when placeholder should be called.
This also renames `is_pip_service_enabled.js` to `is_service_enabled.js` since it's generic. If placeholder returns a non-empty response then `res.data` is populated, otherwise `res.data` is not populated, allowing fallback to existing production behavior.
8 years ago
Diana Shkolnikov
afe0e90f45
move interpolation before deduping
8 years ago
missinglink
8d774ab6d3
language service
8 years ago
missinglink
ae2c0e7671
negotiate HTTP locales for incoming browser requests
8 years ago
Stephen Hess
f06704985e
renamed predicates to be more accurate
8 years ago
Stephen Hess
c3fd896325
added helper vars for clarity
8 years ago
Stephen Hess
58701f0169
return do-nothing PiP lookup function if config lacks `pipService`
...
- added URI-formatted `api.pipService` config support in schema
- added predicate that determines whether pipService is enabled/disabled
- reworked should-execute conditions for non-coarse reverse
8 years ago
Stephen Hess
52a6ec68ff
added support for coarse reverse geocoding
...
several things are in this commit:
- coarse reverse controller / pip service
- inject "conditional execute" predicate into search service to shortcut execution conditions
- added coarse reverse controller to precede standard reverse controller
- lots of tests!
8 years ago
Stephen Hess
b2ebdd9f4b
moved require to top
8 years ago
Stephen Hess
4ed4b8b357
added retry support for ES requests that timeout
8 years ago
Peter Johnson
576d1a1809
interpolation: integration v1
8 years ago
Stephen Hess
d5d08e8f45
moved esclient instantiation to function scope
8 years ago
Stephen Hess
330e7570d7
added reverse and autocomplete to queries object
8 years ago
Stephen Hess
8c249c26f4
initialize esclient in routes/v1, eliminating need for src/backend
8 years ago
Stephen Hess
00234265e6
always inject backend instead of require'ing inside
8 years ago
Stephen Hess
511fbe41b4
removed unneeded require
8 years ago
Stephen Hess
52e7be556f
fixed spacing issues
8 years ago
Stephen Hess
be2a336038
updated naming from component to structured
8 years ago
Stephen Hess
1d6a6bc157
changed entry point to /v1/beta/component
8 years ago
Stephen Hess
6963cb43f0
added label assignment to component route
8 years ago
Stephen Hess
08f4aa4b95
renamed files to be more indicative of what the function is
8 years ago
Stephen Hess
d03a8c4586
added support for component geocoding
...
- created `/component` route
- broke out trimByGranularityComponent but could conceivably be combined with existing
- added `address` support to text_parser
- added `component` sanitizer wrapper
8 years ago
Stephen Hess
ff8fdf486f
moved label assign to before geocodeJSON for all routes
8 years ago
Stephen Hess
942a8ff0a3
removed redundant for pelias-labels
8 years ago
Stephen Hess
beb309ca07
moved assignLabels to fire before geojsonify
8 years ago
Stephen Hess
248b1299c8
added post-processing step to generate labels
...
injects label generation function for easier unit testing
moved label generation code to separate package
8 years ago
Stephen Hess
3763d0b503
renamed `sanitise` -> `sanitize`
8 years ago
Diana Shkolnikov
21d4bb63f3
feat: add accuracy field
8 years ago
Diana Shkolnikov
3cd342f2e7
add new confidence score middleware to routes
8 years ago
Stephen Hess
ae37add82b
extracted variables to conform to convention
8 years ago
Stephen Hess
8af8ba19f6
added call for fallback sanitiser middleware
8 years ago
Stephen Hess
45a0755f7d
added 2nd /search query call for fallback to existing behavior
...
while we're refining our process for integrating libpostal, the ES querying behavior will be:
- call ES with the fallback/geodisambiguation query
- if there are 0 results, call ES with the existing behavior
8 years ago
Stephen Hess
0a59e2750f
inject `query` to use
8 years ago
Stephen Hess
58a3a91793
added `trimByGranularity` post-processing step
8 years ago
Stephen Hess
246f9e7d43
added generatePermutations to middleware
8 years ago
Diana Shkolnikov
afc585bb87
pass config to controller in nearby router setup
9 years ago