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:
@@ -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 |
|
||||
|
||||
Reference in New Issue
Block a user