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
Diana Shkolnikov
8a15234e56
Fix failing test
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
7ebb653c22
Change properties.bounding_box to bbox at top level
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
Julian Simioni
74d05867cf
Update mock Elasticsearch response data
9 years ago
Julian Simioni
cdd00af6bc
Build responses with new source and layer fields
...
There is no longer any ambiguity in the source field and the layer
(which is stored as _type), so a lot of logic to compute them can simply
read from the elasticsearch document. Hooray!
9 years ago
Stephen Hess
3e11e6687c
added `country_a` to label for all USA results
9 years ago
Julian Simioni
dc623d5af7
Send 3 part gid (source, layer, id) in GeoJSON responses
9 years ago
Diana Shkolnikov
f1fdc2bc26
Remove categories from response json
9 years ago
Julian Simioni
509a6a7401
Remove geocoding block from properties in GeoJSON responses
...
All the attributes that were in this block are now put directly in the
GeoJSON properties object
9 years ago
Diana Shkolnikov
1d8db6e5d1
Change type back to layer... oooops
9 years ago
Diana Shkolnikov
1b4b401a66
More property renaming/mapping
...
* Rename `layer` to `type` and `source`
* Rename `address` block and merge properties to main `geocoding` namespace
9 years ago
Peter Johnson
ce96e1274a
try/catch extent()
10 years ago
Diana Shkolnikov
a68c7fae53
Add categories and address properties to result doc
10 years ago
Harish Krishna
14c718bf1c
passing in an object (req.clean) instead of a boolean. Plus updated test
10 years ago
Harish Krishna
c78c8e2dbe
only true or 1 is valid
10 years ago
Harish Krishna
ea78b8268a
more tests: testing falsy and truthy params
10 years ago
Harish Krishna
acfa8e1f20
testing geojsonify when adddress_details flag is set to false (by default)
10 years ago
Harish Krishna
c99c5f712a
adding a parameter called details (defaults to false for all endpoint except reverse) + fixing tests
10 years ago
Peter Johnson
ff757decb4
deprecate 'type' property, see PR notes
10 years ago
Harish Krishna
69a13e9105
fixing all the js lint related issues (lintified)
10 years ago
Peter Johnson
bb04a01b72
checkout test from branch:fuzzy to get master build passing
10 years ago
Peter Johnson
400c28769d
add test for USA output schema
10 years ago
Peter Johnson
cb63791669
update output schema for GBR
10 years ago
Peter Johnson
109758b25e
add geojson bbox
10 years ago
Peter Johnson
6efa0aa510
expose id/type/layer
10 years ago
Peter Johnson
27e2c4e5b8
migrate outputGenerator from pelias/suggester-pipeline
10 years ago
Peter Johnson
fcd60463cc
remove geojsonify.suggest
10 years ago
Peter Johnson
c9b1718829
display all admin fields
10 years ago
Peter Johnson
d52c6077a9
add 'text' property to /search and /reverse
10 years ago
Peter Johnson
17134105d5
geojsonify /search and /reverse FTW
10 years ago
Peter Johnson
26a5a7590b
refactor geojsonify
10 years ago