2013-10-02 13:28:41 -04:00
|
|
|
@routing @726
|
|
|
|
Feature: Avoid weird loops caused by rounding errors
|
2013-10-02 05:25:51 -04:00
|
|
|
|
|
|
|
Background:
|
2013-10-02 13:28:41 -04:00
|
|
|
Given the profile "testbot"
|
2013-10-02 05:25:51 -04:00
|
|
|
|
2013-10-02 13:28:41 -04:00
|
|
|
Scenario: Avoid weird loops, small input file
|
2013-10-02 05:25:51 -04:00
|
|
|
Given the input file features/data/loop_small.osm
|
|
|
|
|
|
|
|
And the node locations
|
|
|
|
| node | lat | lon |
|
|
|
|
| a | 55.660818 | 12.574051 |
|
|
|
|
| b | 55.660073 | 12.574067 |
|
|
|
|
|
|
|
|
When I route I should get
|
|
|
|
| from | to | route | turns |
|
|
|
|
| a | b | Artillerivej | head,destination |
|
|
|
|
|
2013-10-02 13:28:41 -04:00
|
|
|
Scenario: Avoid weird loops, manual input
|
2013-10-02 05:25:51 -04:00
|
|
|
Given the node locations
|
|
|
|
| node | lat | lon |
|
|
|
|
| a | 55.660778 | 12.573909 |
|
|
|
|
| b | 55.660672 | 12.573693 |
|
|
|
|
| c | 55.660128 | 12.572546 |
|
|
|
|
| d | 55.660015 | 12.572476 |
|
|
|
|
| e | 55.660119 | 12.572325 |
|
|
|
|
| x | 55.660818 | 12.574051 |
|
|
|
|
| y | 55.660073 | 12.574067 |
|
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes |
|
|
|
|
| abc |
|
|
|
|
| cdec |
|
|
|
|
|
|
|
|
When I route I should get
|
|
|
|
| from | to | route | turns |
|
|
|
|
| x | y | abc | head,destination |
|