Stephen Hess
85b831b161
removed iso2_to_iso3 and city_name_standardizer from wrapper
7 years ago
Stephen Hess
ac7f5c445c
moved libpostal lower in sanitizers to after sources
7 years ago
Lily He
40ca17b886
passed down peliasConfig.api schema to sanitizers
7 years ago
Lily He
2e2ae9b005
added location_bias sanitizer to autocomplete, search, and structured_geocoding
7 years ago
Stephen Hess
8ebae9a2ae
added warnings/errors when sources includes geonames
8 years ago
Stephen Hess
9e569bae17
renamed mt/st/ft sanitizer to something more generic
8 years ago
Stephen Hess
35ab050341
transliterate mt/ft/saint/sainte into mount/fort/st/ste
...
respectively
8 years ago
Peter Johnson
f087a5badc
improvements for handling non-scalar request params. fixes #744
8 years ago
Stephen Hess
0c54f502af
added iso2->iso3 conversion to /search endpoint
8 years ago
Stephen Hess
3763d0b503
renamed `sanitise` -> `sanitize`
8 years ago
Stephen Hess
85dab16869
refactored search sanitiser tests
...
the tests removed were testing far more than was appropriate since the functionality of the individual sanitisers is tested elsewhere. in this case, the test has been reduced to just testing that all the sanitisers were actually called.
8 years ago
Diana Shkolnikov
818711f509
Add categories sanitizer to search
8 years ago
Peter Johnson
7f18561595
remove focus.viewport API
8 years ago
Peter Johnson
5b8a9a31d2
wrap coordinates at poles
8 years ago
Stephen Hess
bd3b8e7bbe
switched to pelias-text-analyzer package since that responsibility has been moved to there
9 years ago
Peter Johnson
51279ce2cf
quattroshapes deprecation warning and wof fallback
9 years ago
Julian Simioni
e97d72d7b6
Send warning when sources=quattroshapes
9 years ago
Diana Shkolnikov
af8044ef29
Fix all unit tests
9 years ago
Julian Simioni
ef78b2e0fd
Filter source and layer by new fields
...
This is functionally the same code as before, except that it uses the
new source and layer mapping.
9 years ago
Julian Simioni
59b70f7c7e
Rename helper/query_parser to helper/text_parser
9 years ago
Julian Simioni
06b44e5355
Disallow specifying both focus.point and focus.viewport
9 years ago
Julian Simioni
9dcc296a70
Add focus.viewport rect sanitizer to search
9 years ago
Julian Simioni
36925ca874
Remove bbox sanitizer functionality tests from search sanitizer tests
...
Full functionality testing for the bbox sanitizer should be in the
sanitizer/_geo_common tests. In the search sanitizer tests, only testing
the inclusion of the correct sanitizers, and the interactions between
them, really seems to make sense.
9 years ago
Julian Simioni
db8f98a51f
Remove completed @todo
9 years ago
Julian Simioni
415029e02b
Use groups sanitiser in sanitize_rect and sanitize_point
9 years ago
Stephen Hess
e90f70ce3d
added sanitizer that verifies that all parameters are single scalar values
9 years ago
Peter Johnson
82ab899ecc
progress commit
9 years ago
Julian Simioni
97044f655b
Flatten structure of clean for /search focus.point.lat|lon
9 years ago
Julian Simioni
1bfa2fde40
Remove empty test of invalid lats
9 years ago
Julian Simioni
a5ba251afe
Remove brittle test fixture from search sanitiser
...
Some of the tests were checking the entire clean object, when they only
cared about one tiny element. This made making changes really hard.
9 years ago
Julian Simioni
66e1cab007
Whitespace
9 years ago
Diana Shkolnikov
f1fdc2bc26
Remove categories from response json
9 years ago
Peter Johnson
7c46aed4a7
expose error messages in geojson
9 years ago
Stephen Hess
d07a501682
requirements updates
...
set boundary country to iso3 instead of iso2
set to undefined if boundary.country input is not a string
9 years ago
Peter Johnson
a1efb0c6d0
lodash-ify some array functions; remove 'yes' and 'y' from thruthy
9 years ago
Peter Johnson
e726636c3d
merge with master
9 years ago
Peter Johnson
bf42290c7c
refactor sanitizers: first pass
9 years ago
Diana Shkolnikov
c069933d5b
Refactored layers and sources into a common targets module
9 years ago
Diana Shkolnikov
feb1b0a6cd
Update /reverse endpoint params and query as per API spec
9 years ago
Stephen Hess
a2b1579b3e
incorporated _private sanitizer into search endpoint
9 years ago
Stephen Hess
e52c9e4ab9
moved details tests out to separate file
9 years ago
Julian Simioni
3176a61596
Rename /search lat/lon to focus.point.lat/lon
9 years ago
Julian Simioni
6c1cfbb4ad
Compare latitude values only, instead of full sanitiser output
9 years ago
Julian Simioni
5d69c8016b
Remove lat/lon params from tests that don't use it
...
This just removes clutter and possible confusion from our test cases.
9 years ago
Julian Simioni
fd3b12cfa9
Remove all references to non-existent zoom parameter
9 years ago
Julian Simioni
040871cbe4
Whitespace
9 years ago
Peter Johnson
22322eaa32
change param:input to param:text
9 years ago
Harish Krishna
86424b8bbe
Rename `/search?input`, replacing it with '/search?text' parameter instead
...
changing parameter name input to text
https://github.com/pelias/api/issues/172
Rebased by @orangejulius
9 years ago
Julian Simioni
6f92189519
Remove default_layers_set flag!
...
After refactoring, this flag is no longer needed, as all areas of the
code that care about layers do so by setting a key within clean.types,
and then the types helper intelligently combines those together later.
9 years ago
Julian Simioni
7a6ac8541b
Separate concerns of address parser
...
The address parser currently does two things:
1.) make some intelligent guesses as to possible admin regions to
explicitly search against to improve the quality of results returned
2.) make some intelligent guesses as to when no part of the query needs
to search against anything other than admin regions. This somewhat
improves the quality of results returned but mostly improves the speed
of the Elasticsearch query since it's searching significantly fewer
recoords.
These two concerns are now split into two separate methods within the
query_parser helper module. They are mostly independent today, but don't
have to be in the future.
9 years ago