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
Diana Shkolnikov
efa0818ade
Rename isDiff* functions to be more intuitive
8 years ago
Diana Shkolnikov
6049772a5d
Fix require path
8 years ago
Diana Shkolnikov
a8e82b018d
Refactor deduper and write additional tests
8 years ago
Peter Johnson
53f89dc5c7
enable filtering osm by street layer
8 years ago
Julian Simioni
b0c0a5fe5c
Add venues to Who's on First
8 years ago
Julian Simioni
908100d9c5
Explicitly set coarse alias rather than using WOF layers
...
Who's on First will have more than just coarse data now!
8 years ago
Alec Vulfson
63a6f230b0
Change name of function to be more general
8 years ago
Stephen Hess
29c1255694
added `dependency` fields to output
8 years ago
Alec Vulfson
a6ccbf17ce
Add provinces to Australian labels
8 years ago
Stephen Hess
a090a1e71a
updated comment
8 years ago
Stephen Hess
1b83247964
exclude `name` for `country` result labels
8 years ago
Diana Shkolnikov
cc9c4148bb
Refactor geojsonify code and add ability to pass in clean query params
8 years ago
Diana Shkolnikov
269733b70c
Add type property to allow proper handling of arrays
8 years ago
avulfson17
d43a16f780
Add borough as a possible layer for geonames
8 years ago
Alec Vulfson
2092cf2e15
Shows county in label if there isnt a locality or local admin
8 years ago
Alec Vulfson
35e548ef15
Updating list of layers for Geonames
8 years ago
Diana Shkolnikov
1435de906d
Add source_id property
9 years ago
Julian Simioni
9e12c650d0
Add logging helper module
...
This module has helper methods for logging. Currently it has methods to:
* detect if DNT is enabled
* remove sensitive information from input fields for logging
9 years ago
Stephen Hess
bd3b8e7bbe
switched to pelias-text-analyzer package since that responsibility has been moved to there
9 years ago
Stephen Hess
9cdfce13c1
fixed extraneous comma labels for results with only a `name`
9 years ago
Stephen Hess
2c40827701
added `layer=borough` support for *all 5 boroughs* in data
9 years ago
Stephen Hess
0076200728
added special case for USA in labels
...
if record is for literal United States, use the full name, otherwise use USA
9 years ago
Stephen Hess
c99fa9f0ef
added support for `macroregion`
9 years ago
Stephen Hess
8a54dbeef0
switched from `macrocountry` to `macrocounty`
9 years ago
Diana Shkolnikov
c415b96ead
Named admin_parts adminParts which caused problems
9 years ago
Stephen Hess
c5626d6c5e
added `localadmin` for USA/GBR/default when `locality` isn't available
9 years ago
Stephen Hess
8d0b0e8780
switched to `_.compact` to remove `undefined` values
9 years ago
Stephen Hess
0870e30366
Refactored the label generation code to be simpler
...
Labels are now, outside US/CA/UK, just name+city+country.
Deduping now only occurs on the first 2 parts of the labels which fixes the "Luxembourg, Luxembourg" issue.
9 years ago
Julian Simioni
39502df284
Add borough to geojson output and USA.local labels
9 years ago
Diana Shkolnikov
147c849b58
change admin property names to <place_type>_gid from <place_type>_id
9 years ago
Diana Shkolnikov
3862dd233e
change admin property names to <place_type>_gid from <place_type>_id
9 years ago
Diana Shkolnikov
928597e029
Fix admin parts parsing without spaces after delimeters
9 years ago
Diana Shkolnikov
7ebb653c22
Change properties.bounding_box to bbox at top level
9 years ago
Stephen Hess
5b934b27c3
removed debug
9 years ago
Stephen Hess
c746bd8d36
added `macroregion` to default and GBR schemas (with tests!)
9 years ago
Stephen Hess
fd0718a699
updated labelGeneration special case so that region-specific logic only applies to US/CA
9 years ago
Stephen Hess
77f396d5cb
exposed `macrocounty` and `macroregion` fields in geojsonify
9 years ago
Diana Shkolnikov
e17b940136
Compute extent bounding box and expose bounding_box property in results
9 years ago
Diana Shkolnikov
b2accb71e9
Get rid of QS references
9 years ago
Diana Shkolnikov
af8044ef29
Fix all unit tests
9 years ago
Diana Shkolnikov
7aeea99ea7
Remove quattroshapes and admin0/admin1 from layers
9 years ago