Peter Johnson
e726636c3d
merge with master
9 years ago
Diana Shkolnikov
feb1b0a6cd
Update /reverse endpoint params and query as per API spec
9 years ago
Julian Simioni
0d23792591
Split geo sanitiser into geo_reverse and geo_search
...
Common functions are moved to geo_common. This is required to allow
separate behavior for search and reverse.
9 years ago
Julian Simioni
fd3b12cfa9
Remove all references to non-existent zoom parameter
9 years ago
Julian Simioni
b547111d52
Remove latitude restrictions
9 years ago
Julian Simioni
17ba5da6d5
Replace array iteration boilerplate with .map
...
Keeps the focus of the code on the actions to be performed, rather than
the grunt work of iterating through the array.
9 years ago
Julian Simioni
b68bae2555
Remove latitude limits
9 years ago
Severyn Kozak
78bea9d814
sanitiser/_geo.js: don't pass base to parseFloat().
9 years ago
Severyn Kozak
8868039835
Verify that bbox longitude is not NaN.
...
sanitiser/_geo.js
-The removal of the longitude sanitizer might result in a NaN
longitude value passing through in the bbox. Add an `isNaN()`
check.
9 years ago
Severyn Kozak
d000868800
Remove checks for longitude validity.
...
sanitiser/_geo.js
-Remove the code that verified `longitude` validity, to allow
longitude values outside of the value's real range, [-180, 180].
elasticsearch appears to handle them gracefully, so this
resolves #56 .
9 years ago
Diana Shkolnikov
e3cdda9778
ugh another comment fix
10 years ago
Diana Shkolnikov
6ae1a4f7df
fix comments and tests
10 years ago
Diana Shkolnikov
7c81c56cf3
Fix bbox comment
10 years ago
Diana Shkolnikov
8ac17d0cb2
Fix bbox parsing
10 years ago
Harish Krishna
176f580215
using is-object
10 years ago
Harish Krishna
7a8422025a
latlon is a required field for reverse (updated _geo sanitizer) and added ability to filter by layers on /reverse
10 years ago
Harish Krishna
650e88d79f
making geo bias optional - first pass with all tests passing
10 years ago
Harish Krishna
3973039f19
min/max lat/lon to form bbox from the input params
10 years ago
Harish Krishna
84670180f7
renaming _latlonzoom to _geo
10 years ago
Harish Krishna
245abd7809
elasticsearch-backend now only accepts vertices and not latlon as properties
10 years ago
Harish Krishna
ebf162f29e
search with optional bbox - initial commit +tests
10 years ago
Peter Johnson
03a60831b4
fix lat error
10 years ago
Harish Krishna
32275aca56
split sanitizers into reusable pieces. renaming sanitise to suggest. using suggest sanitizer for search. adding reverse sanitizer. updating tests..
10 years ago