Julian Simioni
4f684c8f2a
Remove unused forwardPath function
9 years ago
Julian Simioni
42abb809f6
Disable proxy if legacyUrl config entry is missing
9 years ago
Diana Shkolnikov
0f2ff935ec
Add checks for presence of results
9 years ago
Julian Simioni
94faafc154
Use legacy url from peliasConfig
9 years ago
Julian Simioni
826ad3b569
Move to simpler routing model
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
Diana Shkolnikov
5647d0d19a
Add middleware for renaming placename properties to match WOF
9 years ago
Diana Shkolnikov
db0e063d8c
Refactor controllers to be simple midddleware
...
Refactor search and doc controllers to allow for post-processing middleware
to handle geojson and response sending. Allows for a much more flexible routing scheme.
9 years ago
Julian Simioni
e3961187b2
Add V1 routes with proxying to legacy
...
Using the semver middleware, handle requests to the new v1 api as well
as legacy routes.
9 years ago
Julian Simioni
fc6ed1c7f3
Add semver middleware
...
This uses the http-proxy module to send requests to another API instance
based on the version string contained in the request.
9 years ago
Julian Simioni
c66d2edde2
Move routes configuration to separate file
9 years ago
Julian Simioni
6f1627da69
Merge branch 'wrap-longitude'
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
396f27dcba
Mark previously invalid lat/lon test values as valid
...
These examples should all now pass with the lat/lon wrapping.
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
9b77b4434f
Add more test-cases for invalid bbox values.
...
test/unit/sanitiser/search.js
-Add some more sanity-check test-cases to verify that bbox
validation is working as expected.
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
762ef85f5c
Fix longitude-sanitization tests.
...
test/unit/sanitiser/(search, suggest, reverse).js
-Update/fix all of the tests that started failing as a result of
the removal of longitude sanitization in 90a7683
.
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
Julian Simioni
472c8a4a05
Merge branch 'rename-doc-to-place'
9 years ago
Julian Simioni
a976b7b258
Add places endpoint to API docs
9 years ago
Julian Simioni
167547a6c1
Rename doc endpoint to place
9 years ago
Julian Simioni
2fce64f75a
Move files
9 years ago
Julian Simioni
4e74e9b681
Whitespace
9 years ago
Diana Shkolnikov
69e4478f21
Merge pull request #209 from pelias/master
...
merge api@master in to api@production
9 years ago
Peter Johnson
776b0ce1e1
update unit test
9 years ago
Peter Johnson a.k.a. insertcoffee
ee3c96f84b
Merge pull request #171 from pelias/phrase_slop
...
phrase slop query modifications
9 years ago
Diana Shkolnikov
7f265c0f67
Merge pull request #192 from pelias/admin-fields
...
Search query builder not checking all available admin values
9 years ago
Diana Shkolnikov
d7871747e1
Fix bug introduced by moving leftovers.join into the if() statement
9 years ago
Diana Shkolnikov
49d439425e
Use address_weights.js in tests instead of hardcoding boost values
9 years ago
Diana Shkolnikov
743d8efa54
Remove proxyquire from adminField test
...
Add comments and refactor a bit more for clarity in query/search.js
9 years ago
Diana Shkolnikov
ab436d5dfb
Search query builder not checking all available admin values
...
Fixes #187
9 years ago
Peter Johnson a.k.a. insertcoffee
342e0f1ed4
Merge pull request #158 from pelias/multicore
...
run webserver on all available cores, resolves #6
9 years ago
Peter Johnson
e3efeb66d1
change dependency to git url until PR merged upstream, test travis against 0.10,0.12
9 years ago
Peter Johnson
3a802b9691
Merge branch 'master' of github.com:pelias/api into multicore
9 years ago
Peter Johnson
d8e86d5f17
phrase slop query modifications
9 years ago
Peter Johnson
1151932300
Merge branch 'production' of github.com:pelias/api into production
9 years ago
Harish Krishna
1b6d3feb27
Merge pull request #169 from pelias/ngram-address-parser
...
Address Parser
9 years ago
Harish Krishna
fae9aae3d3
moving the logic for each of the three parsed addresses out into their own function
9 years ago
Harish Krishna
e57d0b38ed
keys -> key
...
It's easy to misread and think keys contains a collection of some kind
9 years ago
Harish Krishna
b3d958fe5a
Revert "match the whole query with phrase.default"
...
This reverts commit 1c763eeb75
.
9 years ago
Harish Krishna
1c763eeb75
match the whole query with phrase.default
9 years ago
Harish Krishna
b57621c0a9
removing admin2 match from the full valid address match
9 years ago
Harish Krishna
8afc5ff004
Revert "splitting admin_parts and input_regions check"
...
This reverts commit 4a45e458ab
.
9 years ago
Harish Krishna
d6bcc1b400
test search query for valid address full & partial
9 years ago
Harish Krishna
4a45e458ab
splitting admin_parts and input_regions check
9 years ago
Harish Krishna
36cc6415d0
tests search
9 years ago
Harish Krishna
35105015b2
tests suggest sanitiser
9 years ago