DennisOSRM/Project-OSRM — Issue #103: unnecessary instructions if start/end is at a junction
Author: emiltin
Created: 2012-02-04 09:50:38+00:00
State: open

if the end start or end point is right on top of a node where two ways meet, osrm includes an unnecessary route instruction.

```
Scenario: Starting and ending on top of nodes # features/basic.feature:5
Given the nodes # features/step_definitions/test_data.rb:144
| a | b | c |
And the ways # features/step_definitions/test_data.rb:159
| nodes |
| ab |
| bc |
When I route I should get # features/step_definitions/routing.rb:149
| from | to | route | details |
| b | c | bc | |
| c | b | bc | |
| b | c | ab,bc | [["Head", "ab", 1, 0, 57, "0", "NE", 22.5], ["Continue", "bc", 111, 1, 57, "1", "NE", 22.5]] |
| c | b | bc,ab | [["Head", "bc", 111, 0, 57, "0", "NE", 22.5], ["Continue", "ab", 1, 1, 56, "1", "NE", 22.5]] |
```