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
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
10 years ago
Diana Shkolnikov
49d439425e
Use address_weights.js in tests instead of hardcoding boost values
10 years ago
Diana Shkolnikov
743d8efa54
Remove proxyquire from adminField test
...
Add comments and refactor a bit more for clarity in query/search.js
10 years ago
Diana Shkolnikov
ab436d5dfb
Search query builder not checking all available admin values
...
Fixes #187
10 years ago
Peter Johnson a.k.a. insertcoffee
342e0f1ed4
Merge pull request #158 from pelias/multicore
...
run webserver on all available cores, resolves #6
10 years ago
Peter Johnson
e3efeb66d1
change dependency to git url until PR merged upstream, test travis against 0.10,0.12
10 years ago
Peter Johnson
3a802b9691
Merge branch 'master' of github.com:pelias/api into multicore
10 years ago
Peter Johnson
d8e86d5f17
phrase slop query modifications
10 years ago
Harish Krishna
1b6d3feb27
Merge pull request #169 from pelias/ngram-address-parser
...
Address Parser
10 years ago
Harish Krishna
fae9aae3d3
moving the logic for each of the three parsed addresses out into their own function
10 years ago
Harish Krishna
e57d0b38ed
keys -> key
...
It's easy to misread and think keys contains a collection of some kind
10 years ago
Harish Krishna
b3d958fe5a
Revert "match the whole query with phrase.default"
...
This reverts commit 1c763eeb75
.
10 years ago
Harish Krishna
1c763eeb75
match the whole query with phrase.default
10 years ago
Harish Krishna
b57621c0a9
removing admin2 match from the full valid address match
10 years ago
Harish Krishna
8afc5ff004
Revert "splitting admin_parts and input_regions check"
...
This reverts commit 4a45e458ab
.
10 years ago
Harish Krishna
d6bcc1b400
test search query for valid address full & partial
10 years ago
Harish Krishna
4a45e458ab
splitting admin_parts and input_regions check
10 years ago
Harish Krishna
36cc6415d0
tests search
10 years ago
Harish Krishna
35105015b2
tests suggest sanitiser
10 years ago
Harish Krishna
e00c5aa2ad
Testing search sanitisers
...
all sanitiser tests should test sanitizing input, lat/lon etc..
query parsing is tested seperately so, using query_parser to set expected.parsed_input
10 years ago
Harish Krishna
b361d4ee69
removing landmarks (was an experiment - has got nothing to do with address parsing)
10 years ago
Harish Krishna
dbd1664042
Merge branch 'master' into ngram-address-parser
10 years ago
Harish Krishna
95c0e7461d
TESTS!
10 years ago
Harish Krishna
5401ed9962
2.2.0
10 years ago
Harish Krishna
6efe46b796
Merge pull request #163 from pelias/err-fix
...
Error handling bug fix
10 years ago
Harish Krishna
3ed4842e86
timeout is one word
10 years ago