Julian Simioni
8592c37bf6
Expect multiple ids to be specified as a comma-delimited string
...
Disallow the other way that Node.js allows, which is to list the id
parameter multiple times in the querystring. See #272 .
9 years ago
Julian Simioni
47701277a3
Rename test with duplicate, non descriptive name
9 years ago
Julian Simioni
2cc9107114
Add test for multiple ids
9 years ago
Julian Simioni
bd4fbfe3bd
Whitespace
9 years ago
Peter Johnson a.k.a. insertcoffee
c5ab64ffbf
Merge pull request #280 from pelias/spec_conformance
...
progress commit
9 years ago
Peter Johnson
82ab899ecc
progress commit
9 years ago
Diana Shkolnikov
537effa8bf
Fix distance calculation to use 'point.lat' instead of 'lat'
9 years ago
Diana Shkolnikov
87e387ba07
Merge remote-tracking branch 'origin' into 243-reverse-confidence-scores
9 years ago
Diana Shkolnikov
f63533dd9c
Switch to res.data instead of req.results.data
9 years ago
Diana Shkolnikov
1752155e0d
Merge remote-tracking branch 'origin' into 243-reverse-confidence-scores
9 years ago
Julian Simioni
4ad640c7a4
Merge branch 'refactor/flat-clean-object'
9 years ago
Julian Simioni
f3acf3b308
Check for numeric value of lat/lon to avoid null island bug
...
Using the check-types module, check that lat/lon values are numbers,
instead of checking their truthyness, to ensure that queries for null
island work correctly.
9 years ago
Julian Simioni
dd9654657e
Use flat clean structure in query/autocomplete.js
9 years ago
Julian Simioni
109c28a588
Use flat point.{lat|lon} in query/reverse.js
9 years ago
Julian Simioni
190304b039
Use flat structure for focus.point.{lat|lon} in query/search.js
9 years ago
Julian Simioni
d6abe09447
Use flat clean structure in /reverse
9 years ago
Julian Simioni
97044f655b
Flatten structure of clean for /search focus.point.lat|lon
9 years ago
Julian Simioni
4260442f59
Change boundary.circle params to flat string structure
9 years ago
Julian Simioni
e5ed04858b
Test individual clean attribute intead of using deepEquals
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
Peter Johnson a.k.a. insertcoffee
aa361e68c4
Merge pull request #276 from pelias/ciao
...
fix ciao tests
9 years ago
Peter Johnson
bfb63ec912
update ciao tests, update ciao itself
9 years ago
Peter Johnson
719b32b304
fix ciao tests
9 years ago
Peter Johnson a.k.a. insertcoffee
36324e7536
Merge pull request #270 from pelias/remove-categories
...
Remove categories from response json
9 years ago
Stephen Hess
0cc4ac33e3
switched to lodash for is-number validation, removed range operation since ordering of conditionals makes them redundant
9 years ago
Stephen Hess
d270ba71cb
added negative tests for req w/o results and req.results w/o data
9 years ago
Stephen Hess
8be249b701
added helper variables for readability
9 years ago
Stephen Hess
5849477929
adjusted 'exact' confidence to be within 1 meter
9 years ago
Stephen Hess
0b5172a452
initial stab at confidence score calculation based on distance from point.lat and point.lon
9 years ago
Diana Shkolnikov
8b35c56523
Merge pull request #269 from pelias/cleanup
...
Remove warning when no size param specified
9 years ago
Diana Shkolnikov
5e50e6b449
Merge pull request #268 from pelias/attribution
...
Fix attribution link
9 years ago
Diana Shkolnikov
f1fdc2bc26
Remove categories from response json
9 years ago
Diana Shkolnikov
0348f36671
Remove warning when no size param specified
...
Added tests for _size sanitizer while in there.
9 years ago
Diana Shkolnikov
70efbc5ad9
Merge branch 'attribution' of github.com:pelias/api into attribution
9 years ago
Diana Shkolnikov
9433d995b1
Fix attribution link
9 years ago
Diana Shkolnikov
73419342a6
Fix attribution link
9 years ago
Diana Shkolnikov
538e1ec5cb
Merge pull request #266 from pelias/broken-link
...
Fix broken link to DOCS
9 years ago
Peter Johnson a.k.a. insertcoffee
046df14aa4
Merge pull request #267 from pelias/expose_errors
...
expose error messages in geojson
9 years ago
Peter Johnson
7c46aed4a7
expose error messages in geojson
9 years ago
Peter Johnson a.k.a. insertcoffee
06e8fee8da
Merge pull request #265 from pelias/req_res
...
set response data/meta/body on $res instead of $req
9 years ago
Diana Shkolnikov
c21494ef44
Fix broken link to DOCS
9 years ago
Peter Johnson
6ab81ffca5
set response data/meta on instead of
9 years ago
Julian Simioni
152b2a50f7
Merge branch '112-support-boundary-country-parameter'
...
Conflicts:
test/unit/sanitiser/reverse.js
test/unit/sanitiser/search.js
9 years ago
Stephen Hess
6c85e5892e
converted warnings to errors
9 years ago
Julian Simioni
07f854f565
Merge branch '245-cleanup-autocomplete-sanitisers'
9 years ago
Julian Simioni
4e74c4db86
Add autocomplete sanitiser
...
This is similar to the search sanitiser but with a more limited scope.
It doesn't support layers, sorces, or bounding boxes.
9 years ago
Diana Shkolnikov
5274bd64d4
Merge pull request #241 from pelias/private-param-235
...
Private param 235
9 years ago
Peter Johnson a.k.a. insertcoffee
bf90d99ddb
Merge pull request #256 from pelias/fix_cors
...
fix CORS support by enabling OPTIONS endpoint
9 years ago