Stephen Hess
c5f16e32ad
added support for `boundary.rect` and `boundary.circle`
...
- tigthened up parsing of string-ish numbers to deal with lodash weirdness
- added lots of guard clauses to deal with bad data
8 years ago
Stephen Hess
ba7a81123c
added support for popularity from placeholder
8 years ago
Stephen Hess
2ad3bec3b4
added guard clause for string/negative population
8 years ago
Stephen Hess
d1b87235c4
pull population from placeholder repsonse
8 years ago
Stephen Hess
a6f6d3d6cd
filter out results and hierarchies that don't match boundary.country
8 years ago
Stephen Hess
83101505c0
removed support for alpha3 since it's not used anywhere
8 years ago
Stephen Hess
8a14dcc48a
guard clauses, more tests, code cleanup
8 years ago
Diana Shkolnikov
c1daf18d68
fix tests
8 years ago
Stephen Hess
b04309c533
added conversion to number before finite check
8 years ago
Stephen Hess
5734d35656
filter synthesized docs on boundary.country
8 years ago
Stephen Hess
4a8711017e
filter placeholder results by requested layers
8 years ago
Stephen Hess
1f6fefb3eb
converted placeholder controller to use generic service
8 years ago
Stephen Hess
39a5312140
added guard clauses for bbox and centroid
8 years ago
Stephen Hess
fa95fe510a
handle case where result has data but no lineage
8 years ago
Stephen Hess
539edf09b7
added better error handling
8 years ago
Stephen Hess
8a7ba3d8de
added support for do_not_track header
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