Tyler Pedelose
df3e78ecdd
Uncomment predicate imports
7 years ago
Tyler Pedelose
52a66e1bc0
Added new predicates to aid placeholderGeodisambiguationShouldExecute
7 years ago
Tyler Pedelose
a0893cfb70
Removed extra comments
7 years ago
Tyler Pedelose
68c067ee8c
Fix for Pelias/Pelias#670
7 years ago
Julian Simioni
07dd704e1d
Set ES query minimum size to 2 for /v1/reverse
7 years ago
Julian Simioni
07cabd8a32
fix: Avoid querying PIP service for non-coarse reverse
...
Queries that specified only non-corase layers (address or venue) and had
no results returned from Elasticsearch would trigger a request to the
PIP service.
The PIP service does not contain any addresses or venues so this query
will never return anything, and only waste time.
7 years ago
Stephen Hess
e0c25d0f57
convert libpostal calls to a microservice
7 years ago
Julian Simioni
fb9b76ef6f
Add default route redirecting to /v1
...
This makes the root URL of the API a bit more friendly
Fixes https://github.com/pelias/api/issues/961
7 years ago
Stephen Hess
951b18e656
switched to has_parsed_text_properties
7 years ago
Stephen Hess
f8f1923c0e
configure language service from placeholder definition
7 years ago
Stephen Hess
2d71422be9
add comments
7 years ago
Stephen Hess
c5105beda2
switched interpolation to new model, added should_execute for it
7 years ago
Stephen Hess
4ea2313a3b
switched to injection for remaining endpoints
7 years ago
Stephen Hess
92d18af886
updated changeLanguage to injection model
7 years ago
Stephen Hess
257ee8161f
removed unused predicate
8 years ago
Stephen Hess
63c8eef0df
added libpostal as controller into v1 /search flow
8 years ago
Stephen Hess
267d0d31e1
cleaned up predicates to be more readable, added new ones
8 years ago
Stephen Hess
40ddc93bbf
added conditional fallback to addressit
8 years ago
Stephen Hess
442c2b5c9b
add ability to skip filters in placeholder
8 years ago
Stephen Hess
9ae838903a
converted to 'any' property for brevity
8 years ago
Stephen Hess
cdbc0b6447
added helpers, don't call placeholder when +number,-street
8 years ago
Stephen Hess
cc9fda0d59
added searching with ids to /search endpoint
8 years ago
Stephen Hess
e158c21685
added has_parsed_text_property predicate
8 years ago
Lily He
f019f0ab5e
deletd legacy routes and legacyURL code
8 years ago
Lily He
40ca17b886
passed down peliasConfig.api schema to sanitizers
8 years ago
Stephen Hess
3bdf088892
updated variable names for camel-case convention
8 years ago
Stephen Hess
0f55ff2546
removed superseded initial coarse reverse call
8 years ago
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