Skip to content

updated turn restriction tests#159

Merged
DennisOSRM merged 1 commit intoProject-OSRM:masterfrom
emiltin:update_restriction_tests
Mar 2, 2012
Merged

updated turn restriction tests#159
DennisOSRM merged 1 commit intoProject-OSRM:masterfrom
emiltin:update_restriction_tests

Conversation

@emiltin
Copy link
Copy Markdown
Contributor

@emiltin emiltin commented Mar 2, 2012

cucumber tests now loads the correct .osrm.restrictions file.

i also updated all the restrictions tests (there were a few bugs in the previous markup), and added tests for no_right_turn, no_u_turn, only_left_turn and only_right_turn.

most test now pass (yay!), but i did find a few things:

  1. osrm will make use of u-turns inside dead-ends to try to reach the destination. i'm not sure this behaviour is desirable, or if osrm should rather not find a route? at the moment the tests assume osrm should not find a route.
  2. it seems like osrm doesn't handle the only_xxx_turn type of restriction?

DennisOSRM pushed a commit that referenced this pull request Mar 2, 2012
@DennisOSRM DennisOSRM merged commit 1720a2b into Project-OSRM:master Mar 2, 2012
@DennisOSRM
Copy link
Copy Markdown
Collaborator

Most of the failing tests of turn restrictions fail, because the route makes a u-turn at some dead-end street. Using U-turns there is standard modeling of a road network and is not a bug per se.

I looked at the modeled situations of the tests and although they are technically sound, these situations do not occur in reality. I my opinion the tests should use one-way streets at the possible turns to prohibit any U-turning.

OSRM does not really distinguish between the directions of the turns. All that is checked, is if it has the 'only_' or the 'no_' prefix. The rest is redundant information and thus discarded.

@emiltin
Copy link
Copy Markdown
Contributor Author

emiltin commented Mar 3, 2012

good idea to use oneways. i will update the tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants