Peter Johnson
14e6c6303f
refactor middleware dedupe for readability
6 years ago
Julian Simioni
24ef0a4361
feat(log): replace console logs with pelias-logger
...
This ensures we always get output in JSON if we ask for it.
6 years ago
Julian Simioni
ff5c66a269
fix(test): Use default pelias-config for type tests
...
Without this change, a user's own `pelias.json` customizations can cause
the unit tests to fail.
6 years ago
Horace Williams
ed0a96cff2
Migrate to internal iso3166 defnitions
...
This is a somewhat roundabout fix to #1179 ,
as a way to deal with the persistent npm ls
and commit hook troubles we were dealing with
due to dependencies of the iso3166 package.
Additionally it should give us a faster
definition of these ISO lookups, since the
existing approaches were implemented using
linear scans through an array rather than
map-based lookups.
6 years ago
Peter Johnson
e15aa52f63
feat(type_mapping): rename function to avoid confusion with elasticsearch API
7 years ago
missinglink
b1cfd091ed
type_mapping: add unit tests
7 years ago
missinglink
2dd2061f8e
feat(targets): configuration-based filter targets
7 years ago
missinglink
e2835dcd1c
feat(type_mapping): refactor
7 years ago
Julian Simioni
204f5297de
Remove all leading newlines in files
7 years ago
Julian Simioni
02aac0c13e
Remove use stricts
7 years ago
missinglink
59f0f4d70e
add line comment, fix line comment
7 years ago
missinglink
7a01e794cf
support aliases for name fields
7 years ago
Stephen Hess
3a862c17ec
move empire include/exclude logic to eojsonify_place_details
7 years ago
Stephen Hess
e4e8d9b0bf
if country_gid exists, remove empire fields
7 years ago
Stephen Hess
795474f87b
removed unused dependency
7 years ago
Stephen Hess
18e7673dc1
added empire to coarse translation
7 years ago
Stephen Hess
a76859dfa7
added support for ocean, marinearea, continent, and empire
7 years ago
Stephen Hess
473c79e13c
use Object.assign instead of lodash.assign
7 years ago
Stephen Hess
214c3807eb
added continent, ocean, and marinearea to geojsonify
7 years ago
Stephen Hess
81be065418
renamed import, added comment
7 years ago
Stephen Hess
9d54735e41
converted geojsonify_place_details to return instead of modify
7 years ago
Stephen Hess
cd99f87c04
inlined and condensed doc setup
7 years ago
Stephen Hess
314e7eb450
converted to reduce
7 years ago
Stephen Hess
1fb50dc6bd
removed superfluous conditional
7 years ago
Stephen Hess
a85e079544
inlined metadata assignments
7 years ago
Stephen Hess
0dfe67046b
removed commented out line
7 years ago
Stephen Hess
b02d20c5ee
removed commented out line
7 years ago
Stephen Hess
20bf53ef0a
inlined geojsonify_meta_data since it's pretty simple
7 years ago
Stephen Hess
5e1360f022
refactored geojsonify, improved test coverage
7 years ago
Stephen Hess
69c60dae9c
converted to const/let
7 years ago
Stephen Hess
6d9090fa84
removed redundant 'default' check
7 years ago
Stephen Hess
5721b591fb
cleaned up scope
7 years ago
Stephen Hess
7eb2c68090
removed bookkeeping object, it was adding unneeded complexity
7 years ago
Stephen Hess
5ac373c0ca
removed outdated comments
7 years ago
Stephen Hess
0548192b6e
removed level of indirection
7 years ago
Stephen Hess
414043ba30
removed unused dependencies
7 years ago
Stephen Hess
e70a668056
added support for continent, ocean, and marinearea placetypes
...
`coarse` now maps to these as well
7 years ago
Lily He
7ecf770d79
create stackTraceLine helper to debug predicates
7 years ago
Lily He
af03e706b2
debug push takes function & beginTimer returns Date
7 years ago
Lily He
cafb7d9277
created new debug helper class and debug sanitizer
8 years ago
Stephen Hess
1660648f5d
added @mapbox scope for geojson-extent
8 years ago
Diana Shkolnikov
a52691c61e
feat: search by postalcode
8 years ago
Stephen Hess
d35f40f372
switched `label` to property-to-copy
8 years ago
Stephen Hess
34d9893018
removed unused parameter
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
c14a1311f7
extracted labelGenerator to be injectable
8 years ago
Diana Shkolnikov
21d4bb63f3
feat: add accuracy field
8 years ago
Diana Shkolnikov
21fcd912c2
add match_type to the list of result properties
8 years ago
Diana Shkolnikov
d8e0b01358
Cleanup a few small things
8 years ago