Severyn Kozak
a007af3572
Replace src/logger with pelias-logger.
...
(query, query)/*.js
-Remove unused `../src/logger` `require()`s.
src/logger.js, package.json
-Remove `src/logger` in favor of using `pelias-logger` for all
logging, since it's the Pelias standard.
middleware/500.js
-Replace usage of `src/logger` with pelias-logger.
10 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
Diana Shkolnikov
8c22f33dc7
Add details sanitizer to suggest/coarse
10 years ago
Diana Shkolnikov
45ba29cc54
Add categories param to /reverse
10 years ago
Harish Krishna
fdb0d939bb
simplifying logic: replacing the complicated ternary statement with an if statement
10 years ago
Harish Krishna
176f580215
using is-object
10 years ago
Harish Krishna
7667a898dd
param layers should be called layers consistently across the API
10 years ago
Harish Krishna
53bfab2529
simplifying things
10 years ago
Harish Krishna
71499cd201
flipping default behavior - by default its details=true
10 years ago
Harish Krishna
719e73f3bd
taking default_value into account
10 years ago
Harish Krishna
c99c5f712a
adding a parameter called details (defaults to false for all endpoint except reverse) + fixing tests
10 years ago
Harish Krishna
217a5c1049
seperating suggest and search sanitizers because suggest requires geoBias (lat/lon) until ES 2.0.0 lands.
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
d2d76be8fa
changing a commented line to reflect reality
10 years ago
Harish Krishna
a003b7b9bf
strip out leading and trailing whitespace if any
10 years ago
Harish Krishna
84a9b3e20e
splitting on comma (trying to find/assume admin values)
10 years ago
Harish Krishna
827a93be11
Revert "adding geoname to coarse [experimental]"
...
This reverts commit 2424b0c9e2
.
10 years ago
Harish Krishna
2424b0c9e2
adding geoname to coarse [experimental]
10 years ago
Harish Krishna
650e88d79f
making geo bias optional - first pass with all tests passing
10 years ago
Harish Krishna
a67f640acb
adding address type to layers by default
10 years ago
Harish Krishna
103ed5f006
using alias layer names in queryMixer and expanding them in helper/layers.js (keeping things DRY)
10 years ago
Harish Krishna
143d8ad93a
_geo
10 years ago
Harish Krishna
eeecbf71dc
search/coarse endpoint
10 years ago
Peter Johnson
9d10f0fa49
add osm address type
10 years ago
Peter Johnson
b14a5d6098
typo
10 years ago
Peter Johnson
d93709fffb
readability
10 years ago
Peter Johnson
293465b90c
add address alias and openaddresses type. change default layers to 'poi,admin'. add comments. update tests
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
Harish Krishna
69a13e9105
fixing all the js lint related issues (lintified)
10 years ago
Harish Krishna
6ac839f37b
take the first occurence of delim and compute id and type accordingly. This works with the case when the id has the delim character in it.
10 years ago
Harish Krishna
81b3668b30
get to doc
10 years ago
Harish Krishna
5e42b4ac0c
de-dupe as part of sanitizing
10 years ago
Harish Krishna
b828a05b01
simplifying things, DRY - one endpoint 'GET' handles single/multiple requests. plus test coverage
10 years ago
Harish Krishna
0dd495a378
going from ?id=123&type=geoname to ?id=geoname/123
...
tests updated
10 years ago
Harish Krishna
23e6cfbef7
mget for real - first pass (experiencing problems with the backend client)
10 years ago
Harish Krishna
516722f8dc
dont set type till its a valid type
10 years ago
Harish Krishna
32e9a13d64
type should be one of the indeces
10 years ago
Harish Krishna
fb6947e3fe
/get endpoint - controller and sanitizer
10 years ago
Harish Krishna
ceecf5837d
fix indentation
10 years ago
Harish Krishna
51f23c4410
expand/ reverse size
10 years ago
Harish Krishna
6b29c5bbfe
adding 'aliases' - 'poi' & 'admin' for the layers param.
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
Peter Johnson
ffda37adff
tests
10 years ago