Add arrival instruction
This commit is contained in:
committed by
Patrick Niklaus
parent
13338414db
commit
4c88fe0fb1
@@ -21,14 +21,14 @@ Feature: Snap start/end point to the nearest way
|
||||
|
||||
When I route I should get
|
||||
| from | to | route |
|
||||
| 1 | c | nc |
|
||||
| 2 | c | nc |
|
||||
| 3 | c | ec |
|
||||
| 4 | c | ec |
|
||||
| 5 | c | sc |
|
||||
| 6 | c | sc |
|
||||
| 7 | c | wc |
|
||||
| 8 | c | wc |
|
||||
| 1 | c | nc,nc |
|
||||
| 2 | c | nc,nc |
|
||||
| 3 | c | ec,ec |
|
||||
| 4 | c | ec,ec |
|
||||
| 5 | c | sc,sc |
|
||||
| 6 | c | sc,sc |
|
||||
| 7 | c | wc,wc |
|
||||
| 8 | c | wc,wc |
|
||||
|
||||
Scenario: Snap to nearest edge of a square
|
||||
Given the node map
|
||||
@@ -43,11 +43,11 @@ Feature: Snap start/end point to the nearest way
|
||||
| adb |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route |
|
||||
| 1 | b | adb |
|
||||
| 2 | b | adb |
|
||||
| 6 | b | aub |
|
||||
| 7 | b | aub |
|
||||
| from | to | route |
|
||||
| 1 | b | adb,adb |
|
||||
| 2 | b | adb,adb |
|
||||
| 6 | b | aub,aub |
|
||||
| 7 | b | aub,aub |
|
||||
|
||||
Scenario: Snap to edge right under start/end point
|
||||
Given the node map
|
||||
@@ -64,17 +64,17 @@ Feature: Snap start/end point to the nearest way
|
||||
| jkla |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route |
|
||||
| a | b | abcd |
|
||||
| a | c | abcd |
|
||||
| a | d | abcd |
|
||||
| a | e | abcd,defg |
|
||||
| a | f | abcd,defg |
|
||||
| a | h | jkla,ghij |
|
||||
| a | i | jkla,ghij |
|
||||
| a | j | jkla |
|
||||
| a | k | jkla |
|
||||
| a | l | jkla |
|
||||
| from | to | route |
|
||||
| a | b | abcd,abcd |
|
||||
| a | c | abcd,abcd |
|
||||
| a | d | abcd,abcd |
|
||||
| a | e | abcd,defg,defg |
|
||||
| a | f | abcd,defg,defg |
|
||||
| a | h | jkla,ghij,ghij |
|
||||
| a | i | jkla,ghij,ghij |
|
||||
| a | j | jkla,jkla |
|
||||
| a | k | jkla,jkla |
|
||||
| a | l | jkla,jkla |
|
||||
|
||||
Scenario: Snapping in viaroute
|
||||
Given the extract extra arguments "--small-component-size 4"
|
||||
@@ -92,9 +92,9 @@ Feature: Snap start/end point to the nearest way
|
||||
|
||||
When I route I should get
|
||||
| from | to | route |
|
||||
| a | b | ab |
|
||||
| a | d | cd |
|
||||
| c | d | cd |
|
||||
| a | b | ab,ab |
|
||||
| a | d | cd,cd |
|
||||
| c | d | cd,cd |
|
||||
|
||||
Scenario: Snap to correct way at large scales
|
||||
Given a grid size of 1000 meters
|
||||
@@ -111,12 +111,12 @@ Feature: Snap start/end point to the nearest way
|
||||
|
||||
When I route I should get
|
||||
| from | to | route |
|
||||
| x | a | xa |
|
||||
| x | b | xb |
|
||||
| x | c | xc |
|
||||
| a | x | xa |
|
||||
| b | x | xb |
|
||||
| c | x | xc |
|
||||
| x | a | xa,xa |
|
||||
| x | b | xb,xb |
|
||||
| x | c | xc,xc |
|
||||
| a | x | xa,xa |
|
||||
| b | x | xb,xb |
|
||||
| c | x | xc,xc |
|
||||
|
||||
Scenario: Find edges within 100m, and the same from 1km
|
||||
Given a grid size of 100 meters
|
||||
@@ -152,19 +152,19 @@ Feature: Snap start/end point to the nearest way
|
||||
|
||||
When I route I should get
|
||||
| from | to | route |
|
||||
| x | 1 | xa |
|
||||
| x | 2 | xb |
|
||||
| x | 3 | xc |
|
||||
| x | 4 | xd |
|
||||
| x | 5 | xe |
|
||||
| x | 6 | xf |
|
||||
| x | 7 | xg |
|
||||
| x | 8 | xh |
|
||||
| x | i | xa |
|
||||
| x | j | xb |
|
||||
| x | k | xc |
|
||||
| x | l | xd |
|
||||
| x | m | xe |
|
||||
| x | n | xf |
|
||||
| x | o | xg |
|
||||
| x | p | xh |
|
||||
| x | 1 | xa,xa |
|
||||
| x | 2 | xb,xb |
|
||||
| x | 3 | xc,xc |
|
||||
| x | 4 | xd,xd |
|
||||
| x | 5 | xe,xe |
|
||||
| x | 6 | xf,xf |
|
||||
| x | 7 | xg,xg |
|
||||
| x | 8 | xh,xh |
|
||||
| x | i | xa,xa |
|
||||
| x | j | xb,xb |
|
||||
| x | k | xc,xc |
|
||||
| x | l | xd,xd |
|
||||
| x | m | xe,xe |
|
||||
| x | n | xf,xf |
|
||||
| x | o | xg,xg |
|
||||
| x | p | xh,xh |
|
||||
|
||||
Reference in New Issue
Block a user