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
This commit is contained in:
Dennis Luxen
2014-10-16 15:58:58 +02:00
parent 577cf5ddc4
commit f2ceeb35da
2 changed files with 36 additions and 4 deletions
+19
View File
@@ -19,3 +19,22 @@ Feature: Basic Routing
When I route I should get
| from | to | route |
| a | e | abc,dce |
Scenario: Turn instructions on compressed road network geometry
Given the node map
| x | a | | |
| | b | | |
| f | | | e |
| | | | |
| | | | |
| y | c | | d |
And the ways
| nodes | name |
| xa | first |
| abcdef | compr |
| fy | last |
When I route I should get
| from | to | route | turns |
| x | y | first,compr,last | head,right,left,destination |