Patrick Niklaus
57f257dce5
Fix status messages and don't include
2015-12-18 18:18:48 +01:00
Patrick Niklaus
78ac3cffde
Add max values for viaroute and trip and reorganize return code handling
...
"status" is now always:
- 200 if the request was successful
- 207 if the result is empty (no path found)
- 400 if the request is invalid
viaroute and trip now have a maximum of 500 and 100 locations
respectively. Override with the --max-viaroute-size and --max-trip-size
parameters.
2015-12-17 04:14:34 +01:00
Patrick Niklaus
7eb2af6cd3
Add snapping regression test for viaroute
2015-12-16 22:51:01 +01:00
Patrick Niklaus
fc8768b79b
Add test for car mode snapping
2015-12-16 22:03:46 +01:00
Patrick Niklaus
f1091f97fc
Fix cucumber help text test
2015-12-15 23:38:12 +01:00
Patrick Niklaus
9bdc58069b
Adapt snapping test to viaroute behaviour
2015-12-11 16:53:10 +01:00
Daniel Patterson
4ddbd2efb6
Expose component size variable as command-line option (this allows testing of big/small components in cucumber tests).
...
Add ability to pass extra parameters to during tests.
Limit distance table search so that it doesn't return any big components if they're beyond max_distance.
2015-12-11 16:53:10 +01:00
Patrick Niklaus
cdb1918973
Refactor StaticRTree to remove application dependent code
...
StaticRTree now acts like a container, just returning the input data
(NodeBasedEdge) and not PhantomNodes.
2015-12-09 23:37:05 +01:00
Patrick Niklaus
4ec3102df2
Refactor cucumber tests
2015-12-09 21:17:18 +01:00
Fabien Girard
f2ee0aad20
Use now 3 parameters for matrix: loc/dst/src
2015-12-09 21:17:18 +01:00
Fabien Girard
478d4a571a
Support rectangular matrix with less sources than targets
2015-12-09 21:17:18 +01:00
Patrick Niklaus
6d2a65b4ea
Add additional uturn test
2015-12-04 20:52:21 +01:00
Daniel Patterson
f87f18a291
Add support for 64bit OSM node id values.
2015-11-30 12:37:58 -08:00
Patrick Niklaus
6dada4e347
Fix impossible route status message
2015-11-25 00:27:20 +01:00
Patrick Niklaus
783d455bd7
Add support for advisory speed limits
...
This adds support for the maxspeed:advisory class of speed tags.
2015-11-19 21:25:12 +01:00
Daniel Patterson
b9a4c322a7
Add ability to debug routing graph visually by dumping
...
annotated GeoJSON during processing.
2015-11-19 10:41:44 -05:00
Daniel Patterson
6228412e61
Enable just-before-contraction updates to edge weights. For small
...
datasets, this enables things like traffic-based updates in the
shortest possible processing turnaround time.
2015-11-18 16:14:08 -05:00
Daniel Patterson
578d947e2d
Comment out failing bearing test - wontfix this problem for now
2015-11-18 14:08:12 -05:00
Daniel Patterson
72629d0081
Fix test cases for level cache command-line option.
2015-11-18 11:48:28 -05:00
Daniel Patterson
d7989f19cf
Fix bug in bearing filter related to reverse edges. Fix tests to catch it. Still one outstanding test failure that looks like a problem in the viaroute results.
2015-11-18 10:57:20 -05:00
Daniel Patterson
1536d1c044
Add bearing filter support to viaroute, trip, nearest, and distance
...
table plugins.
Make bearing range configurable by adding a comma-separated second part
to the bearing paramenter, like so:
b=<bearing:0-359>(,<range:0-180>)
If no range is supplied, it defaults to +/- 10 degrees.
2015-11-17 16:35:20 -05:00
Daniel Patterson
c7e30e2266
Add a summary to each match result showing distance and duration.
...
Helpful for comparing how long the routing engine thinks the matched
trace should take to travel.
2015-11-17 15:28:21 -05:00
Daniel Patterson
e45656e5bf
Refactor edge expansion into extract phase. New temporary file is generated - '.osrm.ebg' which is used by
2015-10-06 09:23:17 -07:00
Freenerd
55cad1b3ac
Refactor alternative route test
2015-09-23 15:54:23 +02:00
Freenerd
e1ac1c4fdc
Test that alternative route exists
...
Complement to a6b44a1470
2015-09-18 17:30:53 +02:00
Andreas Gruß
de29574314
tests + instructions for map matching
2015-09-11 01:34:10 +02:00
Lauren Budorick
5ac024788e
Parse specific restriction:* tags based on profile exceptions
2015-09-10 15:52:26 -07:00
Daniel J. Hofmann
345d5e8d9e
Make an exception for block barriers in bicycle and foot profile.
...
This adds `barrier=block` exceptions to the respective white lists.
In addition this adds tests to check for the exception in bicycle and
foot profiles and makes sure cars are still not able to cross them.
Checked with:
cucumber --tags @barrier -p verify
References:
- https://github.com/Project-OSRM/osrm-backend/issues/1643
- http://wiki.openstreetmap.org/wiki/Tag:barrier%3Dblock
2015-09-07 12:23:21 +02:00
Lauren Budorick
bac6703f8e
Implement raster source feature to read data from third-party sources, to be used in lua profiles.
...
* Adds a data structure, RasterSource, to store parsed + queryable data
* Adds bindings for that and relevant data structures as well as source_function and segment_function
* Adds relevant unit tests and cucumber tests
* Bring-your-own-data feature
2015-09-03 22:28:18 -07:00
Daniel J. Hofmann
b6ef558c86
Make pedestrian roads marked as destination routable with car profile.
...
Check provided tests with:
cucumber --tags @access -p verify
References:
- https://github.com/Project-OSRM/osrm-backend/issues/1617
- http://wiki.openstreetmap.org/wiki/Tag:highway%3Dpedestrian
- http://wiki.openstreetmap.org/wiki/Key:motorcar
- http://wiki.openstreetmap.org/wiki/Key:access
2015-09-03 17:46:20 +02:00
Patrick Niklaus
8b8a19c75d
Fix failing matching tests due to gps precision
2015-09-03 17:02:34 +02:00
Daniel Patterson
120303e6e3
Fixed test case that uses the car profile.
2015-09-03 17:01:11 +02:00
Huyen Chau Nguyen
a71159667d
add cucumber test for the trip plugin
2015-09-01 15:20:35 +02:00
Daniel J. Hofmann
db30836b53
Add rising bollard exception to barriers for car profile.
...
This handles `barrier=bollard` with `bollard=rising`, by making an
exception to the barrier whitelist. Barriers tagged as such do no longer
require an explicit access tag.
This also adds corresponding tests, check this out:
cucumber --tags @barrier
References:
- http://wiki.openstreetmap.org/wiki/Tag:barrier%3Dbollard
- http://wiki.openstreetmap.org/wiki/Key:bollard
- https://github.com/Project-OSRM/osrm-backend/issues/1616
2015-08-25 14:52:45 +02:00
Lauren Budorick
0a53dccd4c
Use .round instead of .to_i for cucumber speeds
2015-08-25 00:06:57 +02:00
Patrick Niklaus
2ff2ce460c
Add .core to cucumber renaming
2015-08-19 12:27:44 +02:00
Patrick Niklaus
bd37c48596
Add test for mode change
2015-08-12 13:02:18 +02:00
MoKob
b526cadebd
Initial version of core ch
...
This improves preprocessing times in favour of worse query performance.
Core size can be set over the --core parameater, default is the old
behaviour to fully contract the graph.
2015-08-01 18:00:48 +02:00
Patrick Niklaus
8a2652f53d
Only penaltize bidirectional ways if they have 1 lane
2015-06-27 16:26:18 +02:00
Patrick Niklaus
1445f11c19
Add test for lane penalty
2015-06-18 17:35:39 +02:00
Patrick Niklaus
ebff45f803
Add new regression test for looping bugs
2015-06-18 00:18:54 +02:00
Patrick Niklaus
373fa7a7d9
Merge pull request #1502 from agruss/develop
...
Accepting HTTP Post Request
2015-06-17 23:24:41 +02:00
Lauren Budorick
eec4f173a7
Fix tag misspellings in profiles + tests: forestry, pebblestone
2015-06-09 20:16:58 -07:00
Andreas Gruß
d726ce6340
removed send_simple_request
2015-06-07 12:20:03 +02:00
Andreas Gruß
b406844c96
rearranged send_request parameters
2015-06-07 11:06:37 +02:00
Andreas Gruß
153d38f10c
post/get handler added, background section for HTTP request
2015-06-05 13:26:27 +02:00
Andreas Gruß
dce917eb74
post tests via query options available
2015-06-04 17:39:54 +02:00
Andreas Gruß
eb711787ae
tests added
2015-06-03 15:31:20 +02:00
Patrick Niklaus
71dc10ebea
Add failing test case
2015-06-02 16:59:30 +02:00
Patrick Niklaus
c493a22765
Add test case for leisure=track
2015-06-01 11:20:17 +02:00
Patrick Niklaus
4146695f34
Add test to check new way naming convention
2015-06-01 11:19:27 +02:00
Patrick Niklaus
2a9b1311d3
Add test for ignoring crossing nodes
2015-05-30 19:30:33 +02:00
Daniel Patterson
039d6acd3e
Fix test case, it was missing 'via' instructions
2015-05-29 16:52:08 +02:00
Daniel Patterson
405fcdc483
We really need to run these tests.
2015-05-29 16:52:08 +02:00
Daniel Patterson
e763953562
Address #1424 by using the original fix
2015-05-29 16:52:08 +02:00
Patrick Niklaus
6ce2726a87
Fix return codes for osrm-prepare
2015-05-28 15:18:48 +02:00
Patrick Niklaus
407036e215
Merge pull request #1476 from Project-OSRM/fix/distance-based-radius
...
Use distance based search radius
2015-05-15 10:49:19 +02:00
Patrick Niklaus
7b1a5566fb
Move nodes inside the search radius
2015-05-15 00:34:53 +02:00
Patrick Niklaus
266feea397
Merge pull request #1465 from alex85k/develop
...
fix cucumber tests running on Windows
2015-05-14 22:25:52 +02:00
Emil Tin
079eea3f2b
add test for route duration formats
2015-05-10 20:09:09 +02:00
alex85k
a457d69034
fix cucumber tests running on Windows
2015-05-09 19:22:16 +05:00
Emil Tin
71197e1c89
remove last use of routing_diff
2015-04-30 18:29:56 +02:00
Emil Tin
e1a13f5ce8
remove obsolete cucumber patch
2015-04-30 18:15:46 +02:00
Emil Tin
1ed2c16a51
upgrade to cucumber 2.0
2015-04-30 18:15:46 +02:00
Dennis Luxen
4b957abc0c
fix rounding error/uncertainty on some systems
2015-03-27 12:27:15 +01:00
Patrick Niklaus
78735fae6b
Fix match test by using the new threshold
2015-03-18 00:21:04 +01:00
Patrick Niklaus
bc8666df83
Add tests for matching
2015-03-08 01:32:13 +01:00
Patrick Niklaus
7829e3c132
Add step definition and support code for matching
2015-03-05 00:12:26 +01:00
Dennis Luxen
402ca780bf
fix test expectation osrm-routed help output
2015-03-03 12:56:37 +01:00
Dennis Luxen
7e00a86bb4
implement ISO 8601 durations parsing, cf. #1399
2015-03-02 17:18:52 +01:00
Dennis Luxen
878c49e4e1
fix incomplete implementation of movable bridges in bike profiles, plenty of regressions
2015-02-26 17:17:43 +01:00
Dennis Luxen
6b88856c16
add support for movable bridges in the biking profile, cf #1399
2015-02-26 16:28:04 +01:00
Dennis Luxen
645e3ccbb3
add movable bridge support to the car profile. Implements #1399
2015-02-26 14:56:01 +01:00
Dennis Luxen
b89c7580e6
implement scaling for narrow roads as an alternative expected speed and take the minimum. Follows @emiltin's idea.
2015-02-20 10:33:14 +01:00
Dennis Luxen
4c4c126361
implements a penalty for very narrow road:
...
- implements discussion of #1388
- implements basic test cases
2015-02-20 10:33:14 +01:00
Emil Tin
eebf3a54e2
cuke: abort if bins are missing, closes #1341
2015-01-12 13:56:43 +01:00
Dennis Luxen
7e70fa63d7
Merge pull request #1338 from frodrigo/develop
...
Black list access=psv for car profile
2015-01-09 23:39:49 +01:00
Dennis Luxen
bea4b520c0
Revert "Revert "fix #1255 assume lift gates are passable""
...
This reverts commit cec3d1488a
.
*sigh*
2015-01-09 19:15:00 +01:00
Frederic Rodrigo
26f7ac9ca1
Black list access=psv for car profile
2015-01-09 17:14:16 +00:00
Dennis Luxen
b1a12768e1
fix parameter name for maximum number of location in distance table plugin
2015-01-08 17:41:19 +01:00
Frédéric Rodrigo
7075a8a8ef
Fix tests for new option --max_locations_distance_table
2015-01-06 14:11:09 +00:00
Dennis Luxen
725b93a961
Merge branch 'develop'
2015-01-06 11:03:29 +01:00
Emil Tin
0ca586e1c8
cuke: remove unneeded @x tag
2015-01-03 16:53:01 +01:00
Emil Tin
a0b55f9df3
table tests: use empty string to mean no route
2015-01-03 11:12:47 +01:00
Emil Tin
67f68b47db
add fuzzy match to table tests, add more tests
2015-01-01 20:19:41 +01:00
Emil Tin
593808f24d
initial support for testing distance matrices
2015-01-01 15:12:45 +01:00
Dennis Luxen
47a2271e27
copy edits:
2014-12-23 11:30:45 +01:00
Dennis Luxen
40ff7ad999
update speed profile from external calibration data
2014-12-17 11:02:04 +01:00
Patrick Niklaus
fc1db35f27
Add missing json dependency to cucumber
2014-11-23 13:29:22 +01:00
Dennis Luxen
9d14f81b79
set default timestamp for tests
2014-11-17 14:58:39 +01:00
Dennis Luxen
bdc611b23a
port timestamp test to libosmium
2014-11-17 14:58:34 +01:00
Dennis Luxen
462d4c99cc
port testbot profile
2014-11-17 14:58:34 +01:00
Dennis Luxen
cec3d1488a
Revert "fix #1255 assume lift gates are passable"
2014-11-13 14:23:54 +01:00
AlanBell
9a8f9cae6d
test case for lift gate access
2014-11-11 09:16:57 +00:00
Emil Tin
93767d68f8
remove debug output
2014-10-17 15:07:56 +02:00
Emil Tin
cc3646ca16
fix tests that use {base} expansion
2014-10-17 15:07:56 +02:00
Emil Tin
48333f73d5
rename rather than copy then when possible
2014-10-17 15:07:56 +02:00
Emil Tin
1f4241a63d
smarter caching of test files
2014-10-17 15:07:56 +02:00
Dennis Luxen
f2ceeb35da
fixes issue #1167 , odd routing instructions
...
- the turn angle for compressed edges was not computed from the uncompressed geometry
- for a given turn (a,b,c) the last compressed node for edge (a,b) and the first packed node for (b,c) is returned
- adds a cucumber test to guard against regression
2014-10-16 15:58:58 +02:00
Dennis Luxen
dfc81f65ee
Merge pull request #889 from Project-OSRM/experimental/cuke_datastore
...
use osrm-datastore for testing, keep osrm-routed runnning
2014-10-15 15:41:38 +02:00
Dennis Luxen
f7469f298d
add a tail to the oneway circle to avoid edge cases
2014-10-15 11:33:43 +02:00
Emil Tin
8438024370
avoid unnessecary process check
2014-10-14 16:05:06 +02:00
Emil Tin
71b967d243
test both datastore and direct data load
2014-10-14 15:35:14 +02:00
Dennis Luxen
c7ee402b0e
make link tests less brittle, no overlapping paths
2014-10-13 14:56:17 +02:00
Emil Tin
76fb0cb965
get process handling up to date
2014-10-13 11:19:49 +02:00
Emil Tin
14eac50261
remove datastore test
2014-10-13 11:10:40 +02:00
Emil Tin
cf3eae1c91
disable failing test
2014-10-13 10:58:03 +02:00
Emil Tin
db06cdb4ce
adjust datastore testing
2014-10-13 10:58:03 +02:00
Emil Tin
7ba8e51fa9
use osrm-database during testing
2014-10-13 10:58:03 +02:00
Dennis Luxen
5bb7e62a7c
fix test on 'some' Intel FPU
2014-10-10 10:36:24 +02:00
Dennis Luxen
4e00ebcd74
Merge pull request #1211 from Project-OSRM/fix_1173
...
Fix and close #1173
2014-10-08 11:44:48 +02:00
Dennis Luxen
415f8ef2d8
add test-case for bug
2014-10-08 11:01:33 +02:00
Emil Tin
5072252c72
test link speeds
2014-10-07 17:05:39 +02:00
Emil Tin
0df81c49d5
surface, tracktype, smoothness tags in car profile
2014-10-07 10:43:47 +02:00
Dennis Luxen
5653516b32
traverse *_link roads at a significantly lower speed than the main link, fixes #1174
2014-10-06 13:42:30 +02:00
Frédéric Rodrigo
ec119a6d52
Add test for maxspeed like 'countrycode:zone type' for car profile
2014-10-04 21:17:18 +02:00
Dennis Luxen
af02fc6bbe
add tests for ferry durations
2014-09-29 11:44:51 +02:00
Dennis Luxen
cc0bbc42a2
add duration to backward speed, fixes #1192
2014-09-29 11:37:36 +02:00
Dennis Luxen
d7fbd416ba
fix expected values of backward speed in test
2014-08-21 12:18:19 +02:00
Emil Tin
6e2608b2f2
fix cuke support file
2014-08-20 11:08:59 +02:00
Emil Tin
c37c8dc21d
add mode test
2014-08-20 11:08:59 +02:00
Emil Tin
6ee7a81f10
update foot profile, add ferry mode
2014-08-20 11:08:58 +02:00
Emil Tin
3d94638d86
update car profile, add ferry mode
2014-08-20 11:08:58 +02:00
Emil Tin
eb122a2b8c
tidy feature file
2014-08-20 11:08:58 +02:00
Emil Tin
feaf8711d3
announce mode changes
2014-08-20 11:08:58 +02:00
Emil Tin
0244060806
add a few tests
2014-08-20 11:08:42 +02:00
Emil Tin
bfdc296f43
reduce failing test
2014-08-20 11:08:42 +02:00
Emil Tin
8e625a5d07
rename test
2014-08-20 11:08:42 +02:00
Emil Tin
3460bd0ba9
fix problems with mode, 1 failing test left
2014-08-20 11:08:42 +02:00
Emil Tin
6e1ab9fe3a
profile fixes
2014-08-20 11:08:42 +02:00
Emil Tin
235a52032a
more tests passing
2014-08-20 11:08:42 +02:00
Emil Tin
a5ee7e78f6
fixes
2014-08-20 11:08:41 +02:00
Emil Tin
181dbe8493
improve tests for travel mode
2014-08-20 11:08:41 +02:00
Emil Tin
6d6d299ea4
most tests passing
2014-08-20 11:08:41 +02:00
Emil Tin
6fd615b9cd
first cut at porting travel mode, some tests fail
2014-08-20 11:08:41 +02:00
Emil Tin
d09394ed52
add failing tests for travel mode
2014-08-20 11:08:41 +02:00
Dennis Luxen
5add28410f
Adapt test cases to output of way points
...
- waypoints are now announced in the route guidance
- implements #584
2014-08-12 09:27:17 +02:00
Dennis Luxen
c9afd9a281
make dummy date in generated test files valid
2014-07-31 16:41:38 +02:00
Emil Tin
2b041e09ac
tests uturn query param
2014-07-22 13:24:26 +02:00
Emil Tin
73b32bb45e
enable setting query params in cuke tests
2014-07-22 13:24:26 +02:00
Dennis Luxen
c8b4ef3eed
add two tests for turn restrictions starting/ending on the same segment
2014-07-15 15:10:13 +02:00
Emil Tin
dba9998118
update rspec matchers to use expect()
2014-06-30 20:43:51 +02:00
Guillaume Beraudo
6ee2d1103e
Remove duplicated point in polyline encoded data
...
First point was outputted twice.
Add test case.
2014-06-24 17:25:36 +02:00
Guillaume Beraudo
d6bc3c5175
Remove unused test method
2014-06-24 17:18:52 +02:00
Dennis Luxen
c12fae47e7
allow results at high latitudes to be a bit more imprecise
2014-06-17 13:00:13 +02:00
alex85k
d0284991ed
patch Ruby files for successful testing on Windows
2014-06-11 18:38:01 +06:00
Dennis Luxen
d80c8cbd2f
add another turn restriction test
2014-06-10 17:23:24 +02:00
Patrick Niklaus
4b81331d53
Don't reset response, so log_fail won't crash cucumber
2014-06-09 14:33:30 +02:00
Emil Tin
21c4691d40
cuke: make File.tail utility more robust
2014-06-08 12:06:34 +02:00
Dennis Luxen
38ebdbb563
implements #949 , wrong duration on first segment
2014-05-27 16:54:10 +02:00