Emil Tin
11ee632cfe
car: add tests oneway:<mode> tags
2017-02-01 16:50:18 +01:00
Emil Tin
97c0a74c04
factor out common lua code to helper files
2017-02-01 16:50:18 +01:00
Michael Krasnyk
ad594cb2e4
Update review findings
2017-01-27 11:19:37 +01:00
Patrick Niklaus
279f8aabfb
Allow specifing a weight for routing that is independent of duration
2017-01-27 11:19:37 +01:00
Michael Krasnyk
fbc7189cf8
Added speed round-off error test
2017-01-20 12:31:45 +01:00
Michael Krasnyk
e8167b2e4e
Use round for float to fixed coordinate transformations
2017-01-20 12:31:45 +01:00
Daniel J. Hofmann
94854b5c90
Adds barrier=gate regression tests, see #581
2016-12-15 12:03:24 +01:00
Daniel J. Hofmann
98659fb0a0
Adds failing tests for directional access overrides, discovered in #3345
2016-12-13 17:37:42 +01:00
Daniel J. Hofmann
875f482203
Refactors and improves the Sliproad Handler, resolves #3109
2016-12-07 19:22:03 +01:00
Emil Tin
9461c83511
car profile: handle forward/backward access
2016-12-05 14:15:47 +01:00
Emil Tin
532cbfce13
profiles: Directional helper, some car refactoring
2016-12-05 14:15:47 +01:00
Michael Krasnyk
e343f71541
Refactor Hilbert values computation
2016-11-28 14:17:12 +01:00
Daniel J. Hofmann
6ac9617d49
Adapt test to returning ref, Take Pronunciation into Account, Fixes name change heuristic usage in UTurn check
2016-11-08 12:14:23 +01:00
Daniel Patterson
ceddfada3d
Don't mark all lanes as designated when there are blank lane specifiers in the tag.
2016-10-25 14:37:59 -06:00
Daniel J. Hofmann
19f00589de
Removes constant speed offset from calibration two years ago, resolves #3023 .
...
Our fine-tuned profiles are better in modelling real speed by now. This
constant offset is no longer needed. We still scale maxspeed, though.
https://github.com/Project-OSRM/osrm-backend/issues/3053
2016-10-22 06:48:49 +02:00
Moritz Kobitzsch
ecee13bffa
actually calculate distance instead of using .distance
which is a timing value
2016-10-20 12:27:02 +02:00
Daniel J. Hofmann
ee4fb89336
Adds missing routable service tags
...
http://taginfo.openstreetmap.org/keys/service#values
2016-10-18 22:11:13 +02:00
karenzshea
f540485cb0
Add a speed for driveway to service speeds
2016-10-17 15:45:31 -07:00
karenzshea
5617d3886d
Fix cucumber support code for routability testing to actually test
...
input/output for speed and time values, adjust resulting broken tests
2016-10-17 15:45:11 -07:00
Daniel J. Hofmann
a13cf3f2be
Route over alternating oneways but not reversible ones, closes #2837 .
...
- alternating: high frequency, route over them with penalty
- reversible: low frequency, do not route over them - time dependence
- http://wiki.openstreetmap.org/wiki/Tag:oneway%3Dreversible
- http://wiki.openstreetmap.org/wiki/Tag:oneway%3Dalternating
This distinction was made at the Elbe-Labe Meetup in Dresden, with
accompanying Wiki pages and tagging scheme. Thanks all involed!
- https://github.com/Project-OSRM/osrm-backend/issues/2837
- http://wiki.openstreetmap.org/wiki/Key:oneway
2016-10-12 12:53:07 +02:00
Emil Tin
7cbb1807e7
cucumber: change syntax of node maps
2016-10-11 09:07:48 +02:00
karenzshea
5d9fc83db4
adjust test cases that specify coords without leading 0
2016-10-03 13:15:39 -04:00
Moritz Kobitzsch
10b93c6908
re-introduce space into summaries
2016-09-30 14:36:09 +02:00
Moritz Kobitzsch
e4d0d49300
move summaries to car profile, test for references, use boost adaptors
2016-09-30 10:59:23 +02:00
Daniel J. Hofmann
a63b10972b
Handle HOV designated-only Lanes, resolves #2929
...
In https://github.com/Project-OSRM/osrm-backend/issues/2711 we made
`hov=designated` routability configurable.
We want to handle designated-only lanes in the same way. Example:
hov:lanes:forward=designated|designated
hov:lanes:backward=designated
should have more or less the same effects as
hov=designated
In contrast
hov:lanes:forward=designated|no|yes hov:lanes:backward=yes
should not be handled. See
https://github.com/Project-OSRM/osrm-backend/issues/2711
for explanation wrt. tag semantics with the difference that
backward/forward only set the backward/forward mode to inaccessible.
References:
- http://wiki.openstreetmap.org/wiki/Key:hov#hov:lanes.3D.2A
2016-09-21 10:56:42 +02:00
Patrick Niklaus
7d124ce54d
Close GH-2795: Rewrite cucumber test caching (and support logic). Fixes #2745
2016-09-19 14:13:44 -07:00
Daniel J. Hofmann
e6fe9d0d67
Fixes issue where two ways with same name but different pronunciation where deduplicated, resolves #2860
2016-09-09 18:28:44 +02:00
karenzshea
dcc1b5ab2b
return name and reference separately
2016-09-08 14:28:23 +02:00
Moritz Kobitzsch
938dff011f
handle all our new strings correctly, introduce rotary_pronunciation
2016-09-07 16:09:13 +02:00
Moritz Kobitzsch
802b93fa9a
fix testcases, one case only works by turn restriction, needs investigation
2016-09-07 12:04:17 +02:00
Moritz Kobitzsch
6fac14dbd8
ignore invalid only_* restrictions
2016-09-01 09:14:01 +02:00
karenzshea
146eb3a20e
add test case for ignoring unknown restrictions
2016-08-31 09:52:05 -04:00
Patrick Niklaus
315823cce1
Use service tag to penaltize alleys and forbid emergency access
2016-08-29 14:15:22 +02:00
Patrick Niklaus
12d478784b
Enable toll roads by default again.
...
Currently we don't route over the Golden Gate bridge by default.
This sets the value to false by default. To test the behavior for
tolls when ignored, we would need issue #2781 implemented.
2016-08-19 13:01:15 +02:00
Daniel Patterson
176c2244ad
Catch and report errors during osrm-contract tests.
2016-08-05 14:19:22 -07:00
Daniel J. Hofmann
8bee57b0b0
Makes toll=yes way's routability configurable in profiles.
...
The primary use-case is conditionally filtering ways such as:
https://www.openstreetmap.org/edit#map=18/38.94198/-77.28127
which we are guiding the user onto in the route from DC to IAD:
http://map.project-osrm.org/?z=12¢er=38.934443%2C-77.167969&loc=38.902656%2C-77.029095&loc=38.952210%2C-77.453424&hl=en&alt=0
This changeset makes `toll=yes` configurable in the profiles, disabling
them by default. Neither do we support time-based fees nor vehicle
category fees at the moment.
References:
- http://wiki.openstreetmap.org/wiki/Key:toll
2016-08-04 14:29:22 +02:00
Daniel J. Hofmann
583aaff286
Makes designated HOV way's routability configurable in profiles.
...
Why only `hov=designated` and not all access tags, such as `hov:yes`,
`hov=no` and so on? From the Wiki:
- designated: The way is designated to high occupancy vehicles.
- yes: High occupancy vehicles are allowed. This by itself does not imply that other vehicles are restricted from using the way.
- no: High occupancy vehicles are not allowed on the way. This by itself does not imply that other vehicle types are allowed to use it.
The primary use-case is conditionally filtering ways such as:
http://www.openstreetmap.org/way/11198593#map=19/37.82571/-122.30521&layers=D
In addition there is a notion of HOV lanes for lane handling:
http://wiki.openstreetmap.org/wiki/Key:hov#hov:lanes.3D.2A
This changeset does not handle lanes at all, only designated HOV ways.
For HOV lane support, a logic similar to the lane access handling needs
to be implemented. This needs to go hand in hand with the existing lane
handling introduced in:
7d076e9344
References:
- #2711
- http://wiki.openstreetmap.org/wiki/Key:access
- http://wiki.openstreetmap.org/wiki/Key:hov#Values
2016-08-03 12:24:43 +02:00
Daniel Patterson
d012b44b7f
Filter out edges that have any speed=0 segments.
...
They become non-snappable and non-routable. Note that a single segment
of speed=0 will eliminate the entire edge.
2016-07-30 23:53:38 +02:00
Moritz Kobitzsch
efa29edf09
basic turn lane handling
2016-06-27 10:07:41 +02:00
Moritz Kobitzsch
1dfdb38d4a
improve collapse-handling
2016-06-06 10:05:18 +02:00
Daniel J. Hofmann
b78207ddd8
Revert "Add implied oneway cucumber tests for mini roundabouts"
...
This reverts commit bd707b0cfc
.
Conflicts:
features/bicycle/oneway.feature
features/car/oneway.feature
2016-06-02 15:00:44 +02:00
Daniel J. Hofmann
c490752ca7
highway=motorway_link does not imply oneway, fixes #1662
...
References:
- http://wiki.openstreetmap.org/wiki/Tag:highway%3Dmotorway_link#Tagging_oneway
- http://wiki.openstreetmap.org/wiki/Tag:highway%3Dmotorway_link
- http://wiki.openstreetmap.org/wiki/Tag:highway%3Dmotorway
2016-06-02 13:05:50 +02:00
Patrick Niklaus
0a53775fb3
Expose pronunciation in RouteStep
...
Uses name:pronunciation by default for cars.
2016-06-01 23:17:57 +02:00
Daniel J. Hofmann
bd707b0cfc
Add implied oneway cucumber tests for mini roundabouts
2016-06-01 20:17:48 +02:00
Lauren Budorick
346146d834
Address comments from b89164c14e
( #2346 )
2016-05-02 08:00:27 -07:00
Lauren Budorick
b8f7569e93
Implement arbitrary turn penalty file IO and integration ( #2306 )
...
Closes #1830
2016-04-29 00:48:13 -07:00
Moritz Kobitzsch
be5b49e391
Fix local path looping, fixes #2309
2016-04-25 19:37:59 +02:00
karenzshea
58c13d2c07
remove movable bridge travel mode references
2016-04-19 12:59:33 -04:00
Moritz Kobitzsch
fa0a5040e5
adding tests for guidance
2016-04-08 10:43:22 +02:00
Lauren Budorick
1a8097f810
Update car features to reflect not cutting off arrival instruction
2016-04-05 22:59:14 +02:00
Lauren Budorick
926290dd9c
enter_roundabout -> roundabout-exit (these are still off by one @mokob ?)
2016-04-05 22:59:14 +02:00
Lauren Budorick
2f793473cc
head/destination -> depart/arrive to reflect guidance API changes; minor fixes for roundabout tests
2016-04-05 22:59:14 +02:00
Lauren Budorick
6244063073
#2155 is fixed
2016-04-05 22:59:14 +02:00
Jeff Miccolis
958199ffef
Allow for different rounding in car-maxspeed fixture
2016-04-05 22:59:14 +02:00
Lauren Budorick
126d2f85ac
Mode changes, guidance comments, fix turns
2016-04-05 22:59:14 +02:00
Daniel J. Hofmann
efe6faabfd
Adds tests for routing over delivery ways and nodes; see #2150 .
2016-04-04 14:00:54 +02:00
Daniel J. Hofmann
c70d138eb9
Spelling: Hierachy vs Hierarchy
2016-04-04 13:58:55 +02:00
Daniel Patterson
017ff53702
Code review updates.
2016-03-03 13:25:01 -08:00
Daniel Patterson
49441fe204
Make forward/reverse weight/offset calculated at query time,
...
rather than being cached in the StaticRTree. This means we
can freely apply traffic data and not have stale values lying
around. It reduces the size of the RTree on disk, at the expense
of some additional data in RAM.
2016-03-03 10:49:12 -08:00
Patrick Niklaus
fc8768b79b
Add test for car mode snapping
2015-12-16 22:03:46 +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
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
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
Daniel Patterson
120303e6e3
Fixed test case that uses the car profile.
2015-09-03 17:01:11 +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
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
4146695f34
Add test to check new way naming convention
2015-06-01 11:19:27 +02:00
Dennis Luxen
7e00a86bb4
implement ISO 8601 durations parsing, cf. #1399
2015-03-02 17:18:52 +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
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
725b93a961
Merge branch 'develop'
2015-01-06 11:03:29 +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
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
Dennis Luxen
c7ee402b0e
make link tests less brittle, no overlapping paths
2014-10-13 14:56:17 +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
3d94638d86
update car profile, add ferry mode
2014-08-20 11:08:58 +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
Dennis Luxen
d80c8cbd2f
add another turn restriction test
2014-06-10 17:23:24 +02:00
Dennis Luxen
4fc329a1eb
remove superflous way in test setup
2014-05-20 14:33:02 +02:00
Dennis Luxen
d028a30f87
fixes issue #1019 :
...
- fix ignored turn restriction on chains of degree-2 nodes
- add a cucumber test to test for potential regressions
2014-05-20 14:33:02 +02:00
Dennis Luxen
3c5b2286a3
adjust speeds to universally use 4/5th of the free-flow speed as expected avg speed
...
- this is a workaround until we get more thourough work done on the cost model
- this is related to #955 and #989
2014-05-09 11:11:14 +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
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
fd96c7c488
fix travel speeds for cars
2014-03-27 18:22:04 +01:00
Emil Tin
45c96f73c2
cuke test showing odd car speeds
2014-03-27 18:02:42 +01:00
Dennis Luxen
85a007d87b
set backward speed properly, partially fixes #936
2014-03-03 15:31:57 +01:00
Dennis Luxen
d73f3ebd1b
fix tests for scaled maxspeeds
2014-02-14 18:23:25 +01:00
Emil Tin
a354d7c00b
use testbot for testing for weird loops
2013-10-02 19:28:41 +02:00
Dennis Luxen
12f91564fb
adding test to check regressions of #726
2013-10-02 11:25:51 +02:00
Emil Tin
b5bfdb56dc
cleanup indentation of cuke files
2013-08-29 19:29:13 +02:00
Emil Tin
e50b5202b8
updated tests for car maxspeed forw/backw
2013-08-12 17:37:51 +02:00
Emil Tin
2542112301
fix cuke test for roundabout/cars
2013-07-30 18:00:44 +02:00
Emil Tin
a45215ddf2
cuke test roundabout exit nr
2013-07-30 17:58:00 +02:00
Emil Tin
cb28b2de07
cuke test for roundabout instructions
2013-07-30 17:01:25 +02:00
DennisOSRM
d0c4111429
Merge branch 'patch-3' of https://github.com/tyrasd/Project-OSRM into tyrasd-patch-3
2013-07-17 13:23:06 +02:00
DennisOSRM
9ab86ae2bf
Fixes issue #663
2013-07-09 14:08:24 +02:00
Martin Raifer
dbf15c2db2
add test case for overruled implied oneways
...
On a motorway `oneway=no` should overrule the implied oneway rule.
2013-06-30 10:41:29 +02:00
Dennis Luxen
4c8579b340
fixing test to actually test wanted behavior
2013-06-25 10:56:02 -04:00
Emil Tin
c07966408b
add test for consecutive oneways, fails for car
2013-06-03 00:00:14 +02:00
Emil Tin
2557956b68
fix failing car maxspeed test
2013-06-03 00:00:14 +02:00
DennisOSRM
348e656671
Merge branch 'feature/opposite_direction' into develop
2013-02-04 18:38:15 +01:00
DennisOSRM
54cdf6d6f2
maxspeed:forward and :backward get parsed and tests pass. Implements
...
#569 partially.
2013-02-04 15:58:35 +01:00
DennisOSRM
ee42d94e2d
Fix test to reflect changed maxspeed behavior
2013-02-04 13:10:31 +01:00
DennisOSRM
572b176401
Fixes issue #579
2013-02-04 12:13:30 +01:00
Emil Tin
73c81a0a6c
Removing debug output
2013-02-03 18:13:57 +01:00
Emil Tin
c453f8e7a9
test car maxspeed forw/backw (@todo)
2013-02-03 15:42:14 +01:00
Emil Tin
dd5d520b53
update profile and tests for pushing of bikes
2013-02-03 14:46:18 +01:00
DennisOSRM
e0c211085c
Handle route=shuttle_train again
2013-01-29 17:36:28 +01:00
Emil Tin
4f9c422e2f
test maxspeed forward/backward
2013-01-27 14:36:56 +01:00
Emil Tin
5339f440bd
test forward/backward maxspeed (car)
2013-01-27 14:36:56 +01:00
DennisOSRM
5de2aa1cbf
fixing test and removing todo tag
2013-01-05 17:35:50 +01:00
Emil Tin
551af0e45a
fix a few restrictions tests
2013-01-04 16:09:00 +01:00
Emil Tin
d4db5cca1c
fixing typo in forestry access
2012-12-23 19:32:26 +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
f1d47328e9
support testing of all relation types
2012-11-30 13:40:21 +01:00
Emil Tin
9a865384a1
tests for except tag on turn restrictions
2012-11-28 18:43:07 +01:00
Emil Tin
763cc86043
cuke: ignore maxspeed for cars when higher that way speed
2012-11-12 16:41:08 +01:00
Emil Tin
d9af615db9
remove incorrect @bicycle tag from car test
2012-10-11 19:22:49 +02:00
Emil Tin
7282e543ca
test maxspeed for bicycles (yes it's possible)
2012-10-05 16:15:47 +02:00
Emil Tin
b95596d6b7
test for empty highway tag
2012-10-05 15:52:44 +02:00
Emil Tin
3f039f59de
add @todo tag to test for unimplemented features
2012-10-05 13:48:05 +02:00
Emil Tin
5e1dc11000
fix a few tests
2012-10-04 14:39:59 +02:00
Emil Tin
8e31b8860c
more access tests combinations and other modes
2012-10-04 12:07:38 +02:00
Emil Tin
794c3490fe
add test for acces hierachy on nodes
2012-10-04 11:38:29 +02:00
Emil Tin
216157e00d
simply access hierachy test, add tests for implied access
2012-10-04 11:30:29 +02:00
Emil Tin
8e6b7766a1
parse access tag hierachy in bike profile
2012-10-04 08:36:14 +02:00
Emil Tin
59025ca2da
add tests for hierachy of access tags
2012-10-03 22:56:41 +02:00
Emil Tin
4b00557fda
better handling of access and barrier tags
2012-10-03 19:14:44 +02:00
Emil Tin
50d3c2c9d1
improve test for maxspeed
2012-10-02 13:46:40 +02:00
Emil Tin
82caa357cd
update test for maxspeed to use motorway speed
2012-10-02 13:41:13 +02:00
Emil Tin
ed8bc7ae58
fix grid city periphery test
2012-10-02 13:36:48 +02:00
Emil Tin
97f04eae91
rewrite tests for access=destination
2012-10-01 16:18:36 +02:00
Emil Tin
1ad274ed2e
more reorganizing of tests
2012-10-01 13:33:47 +02:00