Remove one more compass column; update polyline encoding tests
This commit is contained in:
committed by
Patrick Niklaus
parent
35c501c203
commit
8725e2f40d
@@ -21,10 +21,8 @@ Feature: Retrieve geometry
|
||||
| cd |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | geometry |
|
||||
| a | c | ab,bc | _c`\|@_upzA_c`\|@_c`\|@_c`\|@_c`\|@ |
|
||||
| b | d | bc,cd | _gayB_yqwC_c`\|@_c`\|@_c`\|@_c`\|@ |
|
||||
| from | to | route | geometry |
|
||||
| a | c | ab,bc | _ibE_~cH_seK_seK |
|
||||
| b | d | bc,cd | _seK_hgN_seK_seK |
|
||||
|
||||
# Mind the \ before the pipes
|
||||
# polycodec.rb decode2 '_c`|@_upzA_c`|@_c`|@_c`|@_c`|@' [[1.0, 1.5], [2.0, 2.5], [3.0, 3.5]]
|
||||
# polycodec.rb decode2 '_gayB_yqwC_c`|@_c`|@_c`|@_c`|@' [[2.0, 2.5], [3.0, 3.5], [4.0, 4.5]]
|
||||
|
||||
@@ -23,13 +23,13 @@ Feature: Projection to nearest point on road
|
||||
|
||||
Scenario: Projection onto way at high latitudes, 1km distance
|
||||
When I route I should get
|
||||
| from | to | route | compass | bearing | distance |
|
||||
| b | a | abc | SW | 225 | 1000m +-7 |
|
||||
| b | c | abc | NE | 45 | 1000m +-7 |
|
||||
| a | d | abc | NE | 45 | 1000m +-7 |
|
||||
| d | a | abc | SW | 225 | 1000m +-7 |
|
||||
| c | d | abc | SW | 225 | 1000m +-8 |
|
||||
| d | c | abc | NE | 45 +-5 | 1000m +-8 |
|
||||
| from | to | route | bearing | distance |
|
||||
| b | a | abc | 225 | 1000m +-7 |
|
||||
| b | c | abc | 45 | 1000m +-7 |
|
||||
| a | d | abc | 45 | 1000m +-7 |
|
||||
| d | a | abc | 225 | 1000m +-7 |
|
||||
| c | d | abc | 225 | 1000m +-8 |
|
||||
| d | c | abc | 45 +-5 | 1000m +-8 |
|
||||
|
||||
Scenario: Projection onto way at high latitudes, no distance
|
||||
When I route I should get
|
||||
|
||||
Reference in New Issue
Block a user