Commit Graph

255 Commits

Author SHA1 Message Date
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
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
Patrick Niklaus
8b8a19c75d Fix failing matching tests due to gps precision 2015-09-03 17:02:34 +02:00
Huyen Chau Nguyen
a71159667d add cucumber test for the trip plugin 2015-09-01 15:20:35 +02:00
Lauren Budorick
0a53dccd4c Use .round instead of .to_i for cucumber speeds 2015-08-25 00:06:57 +02:00
Patrick Niklaus
bd37c48596 Add test for mode change 2015-08-12 13:02:18 +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
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
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
7b1a5566fb Move nodes inside the search radius 2015-05-15 00:34:53 +02:00
Emil Tin
079eea3f2b add test for route duration formats 2015-05-10 20:09:09 +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
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
462d4c99cc port testbot profile 2014-11-17 14:58:34 +01: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
f7469f298d add a tail to the oneway circle to avoid edge cases 2014-10-15 11:33:43 +02:00
Emil Tin
71b967d243 test both datastore and direct data load 2014-10-14 15:35:14 +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
415f8ef2d8 add test-case for bug 2014-10-08 11:01:33 +02:00
Emil Tin
c37c8dc21d add mode test 2014-08-20 11:08:59 +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
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
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
Emil Tin
2b041e09ac tests uturn query param 2014-07-22 13:24:26 +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
Dennis Luxen
c12fae47e7 allow results at high latitudes to be a bit more imprecise 2014-06-17 13:00:13 +02:00
Dennis Luxen
38ebdbb563 implements #949, wrong duration on first segment 2014-05-27 16:54:10 +02:00
Dennis Luxen
15ce232f61 partially fixes #1034 2014-05-26 11:59:13 +02:00
Dennis Luxen
644286111f add test for #1034 2014-05-26 11:46:01 +02:00
Emil Tin
b875765c52 update test to avoid single ring 2014-05-23 12:52:32 +02:00
Emil Tin
a9eebdb1fa fix test related to via points and #1034 2014-05-23 11:45:18 +02:00
Emil Tin
b25f3a9e91 update test related to via points and #1034 2014-05-23 11:42:44 +02:00
Emil Tin
06f3375a97 test showing bug related to via points. see #1034 2014-05-23 11:23:11 +02:00
Dennis Luxen
493b13364f move geographical distance computation to floats 2014-05-21 12:33:54 +02:00
Dennis Luxen
6a9541833a add a leg to roundabout to remove edge case 2014-05-21 10:47:34 +02:00
Dennis Luxen
9a2d701e2e fix issue #1025:
- add function to count directed outgoing edges
- generate correct instruction for staying on a roundabout
- move test from @bug namespace to the general one
2014-05-20 15:40:14 +02:00
Dennis Luxen
2d498cb88b adapt JSON parsing in tests to allow for omitted fields 2014-05-20 14:33:00 +02:00
Emil Tin
bddad0c57c add test for roundabout with oneone links 2014-05-20 13:27:32 +02:00
Emil Tin
b1388b6f30 remove spurious test file 2014-05-07 10:38:28 +02:00
Emil Tin
2cddf90e49 test different status message and query parsing 2014-05-07 10:38:28 +02:00
Emil Tin
85148d1283 tests covering no route found 2014-05-07 10:38:28 +02:00
Dennis Luxen
51e8113a69 make tests use fuzzy matching instead of tweaked expectations 2014-04-25 15:24:18 +02:00
Dennis Luxen
ca6515c58a fix tests to reflect proper rounding of travel times 2014-04-25 13:23:27 +02:00
Dennis Luxen
ec372ad01d implement tests marked todo, implements #986 2014-04-21 17:40:08 +02:00
Emil Tin
a12209e61d cuke: test options for osrm-extract and osrm-prepare 2014-04-21 17:40:07 +02:00
Emil Tin
df83dfdfe8 cuke: test travel time of individual instructions 2014-04-02 16:05:09 +02:00
Emil Tin
5f7065848e clean cucumber comments, fixes 'file to long' problem with latest version of cucumber 2014-04-01 15:30:55 +02:00
Emil Tin
65e020a627 cuke: use new speed tests where relevant 2014-04-01 14:56:25 +02:00
Emil Tin
793e477898 active tests for fixed bugs 2014-04-01 14:56:25 +02:00
Emil Tin
220e7748a9 cuke: use .osm by default, add tests for .pbf 2014-03-31 16:55:39 +02:00
Emil Tin
8b1f09d302 cuke: test speed, fix logging, clear log files on each run 2014-03-27 10:38:03 +01:00
Emil Tin
cb1b824a75 cuke: improve routability tables, test for speed 2014-03-27 10:38:02 +01:00
Dennis Luxen
f684fa9a7b fix tests to resemble the fixed duration calculation 2014-01-21 16:11:51 +01:00
Dennis Luxen
96aff57275 fixes #731, perpendicular projection to nearest location 2013-12-16 17:36:36 +01:00
Dennis Luxen
25b352aeab add/delete several files 2013-12-13 17:27:31 -05:00
Dennis Luxen
662714fca3 add another minor viaroute check 2013-12-12 18:37:36 -05:00
Dennis Luxen
cd1f45e248 Util/ContainerUtils.h 2013-12-12 18:28:39 -05:00
Emil Tin
5f90ed8b3e support capitalized option names in extract/prepare 2013-10-12 09:59:42 +02:00
Dennis Luxen
822c1c97e3 fixing #412, wrong offsets cause supoptimal routes with via points 2013-10-04 16:47:59 +02:00
Emil Tin
65df6aa4a0 failing test showing weird loop, issue 412 2013-10-04 13:32:05 +02:00
Emil Tin
f83748fdc2 change test file to cuke table 2013-10-02 20:10:01 +02:00
Emil Tin
a354d7c00b use testbot for testing for weird loops 2013-10-02 19:28:41 +02:00
Emil Tin
96184b83a3 minor whitespace cleanup 2013-10-02 13:53:09 +02:00
Emil Tin
9bcc057176 mark projection tests as todo 2013-10-02 13:48:49 +02:00
Emil Tin
20f3213477 test projection onto ways at high lat 2013-10-02 13:43:33 +02:00
Dennis Luxen
ca448e682a using wider margin for expected result 2013-10-02 11:23:13 +02:00
Emil Tin
6c32d97b23 organize cuke test with @todo and @bug 2013-09-05 20:00:42 +02:00
Emil Tin
c9e40d3e59 cuke profiles for running @todo or @bug tests 2013-09-05 19:18:04 +02:00
Emil Tin
caa02bbca1 test bearing at high lat 2013-08-31 12:52:36 +02:00
Emil Tin
463a297f0c remove incorrect cuke tag 2013-08-30 12:55:17 +02:00
Emil Tin
b5bfdb56dc cleanup indentation of cuke files 2013-08-29 19:29:13 +02:00
Emil Tin
2211dfb741 test for u-turn at via point (failing) 2013-08-29 16:29:21 +02:00
Dennis Luxen
cabbe70e47 reverting premature checkin 2013-08-06 14:01:03 +02:00
Dennis Luxen
b86c3681bb reverting premature checkin 2013-08-06 13:54:04 +02:00
Dennis Luxen
4f5d7f79bd fixing tests for enhanced coordinate preceision 2013-08-05 19:00:09 +02:00
Dennis Luxen
163cfda282 Fixing test to reflect new nn grid data structure 2013-06-26 11:35:25 -04:00
Dennis Luxen
f13694b539 fixing tests to reflect new r-tree data structure 2013-06-26 09:34:01 -04:00
Emil Tin
9588ef00a5 use alt=false during cucumber testing 2013-05-10 17:17:24 +02:00
Emil Tin
67addfdb37 test via points 2013-05-05 11:14:09 +02:00
Emil Tin
edf5a0f677 test processing flow example 2013-04-13 12:13:31 +02:00
Emil Tin
f557e1efb4 remove test tag 2013-04-06 17:49:37 +02:00
Emil Tin
8893fd1656 test for bearing param (todo) 2013-03-18 21:26:36 +01:00
Emil Tin
081831e6ea test for mode flag (todo) 2013-03-18 15:51:41 +01:00
DennisOSRM
2cc2c967d1 Compute turn angles in mercartor projection. Implements issues #596,
#532
2013-02-28 13:34:48 +01:00
Emil Tin
0399022d25 update turn instruction test 2013-02-23 09:00:44 +01:00
DennisOSRM
348e656671 Merge branch 'feature/opposite_direction' into develop 2013-02-04 18:38:15 +01:00
Emil Tin
c65fed1d38 simplify testbot maxspeed forw/back test 2013-02-03 18:23:23 +01:00
DennisOSRM
bcf4af4a2f Duration tag now handles 'hh:mm', 'mm' as well as 'hh:mm:ss' 2013-01-29 10:11:04 +01:00
Emil Tin
cb2fcf4f52 add @todo tag to partial way duration test 2013-01-28 09:39:18 +01:00
Emil Tin
061d78c681 test partial duration of ways 2013-01-28 08:30:34 +01:00
DennisOSRM
86f4aebead Fixes test to expect time in minutes not seconds 2013-01-27 23:03:04 +01:00
DennisOSRM
6317b08090 Fixing test cases to check for different speeds in opposite direction 2013-01-27 14:36:57 +01:00
Emil Tin
aae0547cca better testbot maxspeed handling, fix test 2013-01-27 14:36:56 +01:00
Emil Tin
4f9c422e2f test maxspeed forward/backward 2013-01-27 14:36:56 +01:00
Emil Tin
3595ac08f7 fix tag on @opposite test 2013-01-27 14:36:56 +01:00
DennisOSRM
7b4b7232fc Fixing test for opposite directions 2013-01-27 14:36:56 +01:00
Emil Tin
aa9d8c773f fix name of duration test 2013-01-26 19:06:30 +01:00
Emil Tin
c68a03d05c add test scenario matching wiki graph explanation 2013-01-26 18:59:31 +01:00
Emil Tin
cbea651cf8 test duration on ways 2013-01-26 18:58:33 +01:00
Emil Tin
724e96f0c1 test different forw/backw settings (@todo) 2013-01-11 18:16:17 +01:00
Emil Tin
7d7baa70a9 test routes parsing (@todo) 2013-01-10 17:06:16 +01:00
Emil Tin
54774726b2 test separate weight/speed, still marked as @todo 2013-01-10 14:00:48 +01:00
Emil Tin
565b0e97d1 rename @weight test to @fastest 2013-01-06 11:51:45 +01:00
Emil Tin
ff417fac01 update ferry tests 2013-01-01 18:41:38 +01:00
DennisOSRM
f4a1d2df96 Allowing greater error instead of expected approximation result. 2012-12-17 13:54:03 +01:00
DennisOSRM
00ed039621 Moving TurnInstruction to unsigned char 2012-12-17 13:14:43 +01:00
Emil Tin
ac06a2ef03 remove angles from a test 2012-12-16 21:03:15 +01:00
Emil Tin
2231765c9e fix empty dataset test 2012-12-16 14:10:33 +01:00
Emil Tin
ec56478a3c cucumber cleanup, removed unused code 2012-12-16 13:36:47 +01:00
Emil Tin
b0f035bf3c mark some tests as @todo 2012-12-10 13:08:26 +01:00
Emil Tin
e41d52570e support testing of turn directions 2012-12-09 18:21:56 +01:00
Emil Tin
7493d8aa49 test ferry duration on part of route 2012-11-04 14:00:21 +01:00
DennisOSRM
75561b8278 Fixes issues introduced with commit
48c6145bdf
2012-10-29 13:24:54 +01:00
Emil Tin
ad5b96d6f2 verify distance in traffic signal tests 2012-10-18 14:50:21 +02:00
DennisOSRM
6eab47d768 Fixing origin (0,0) tests 2012-10-05 15:25:12 +02:00
Emil Tin
fa9eeb95b6 remove test for travel time at 1m scale 2012-10-04 23:18:25 +02:00
Emil Tin
13069632be reduce expected precision in distance tests 2012-10-04 23:04:32 +02:00
Emil Tin
5e1dc11000 fix a few tests 2012-10-04 14:39:59 +02:00
Emil Tin
17fab42f25 fix signal penalty test 2012-10-03 19:22:36 +02:00
Emil Tin
4b00557fda better handling of access and barrier tags 2012-10-03 19:14:44 +02:00
Emil Tin
6fb2a41a0a adding a simple 100m distance test 2012-10-03 08:52:40 +02:00
Emil Tin
b70b74080e updates distance test, not using 10m steps anymore 2012-10-03 08:37:36 +02:00
Emil Tin
230fec9cdb add distance test with lots of small segments 2012-10-02 21:16:42 +02:00
Emil Tin
0994a7a20d Only dead-end oneways doesn't return error -1 anymore, fix test 2012-10-02 16:11:56 +02:00