cucumber: change syntax of node maps

This commit is contained in:
Emil Tin
2016-09-30 09:33:08 +02:00
committed by Moritz Kobitzsch
parent d47d03c15b
commit 7cbb1807e7
112 changed files with 3926 additions and 2564 deletions
+5 -3
View File
@@ -6,9 +6,11 @@ Feature: Alternative route
And a grid size of 200 meters
And the node map
| | b | c | d | | |
| a | | k | | | z |
| | g | h | i | j | |
"""
b c d
a k z
g h i j
"""
And the ways
| nodes |
+6 -4
View File
@@ -6,10 +6,12 @@ Feature: Alternative route
Scenario: Alternative Loop Paths
Given the node map
| a | 2 | 1 | b |
| 7 | | | 4 |
| 8 | | | 3 |
| c | 5 | 6 | d |
"""
a 2 1 b
7 4
8 3
c 5 6 d
"""
And the ways
| nodes | oneway |
+10 -4
View File
@@ -6,7 +6,9 @@ Feature: Handle bad data in a graceful manner
Scenario: Empty dataset
Given the node map
| |
"""
"""
Given the ways
| nodes |
@@ -16,7 +18,9 @@ Feature: Handle bad data in a graceful manner
Scenario: Only dead-end oneways
Given the node map
| a | b | c | d | e |
"""
a b c d e
"""
Given the ways
| nodes | oneway |
@@ -29,8 +33,10 @@ Feature: Handle bad data in a graceful manner
@todo
Scenario: Start/end point at the same location
Given the node map
| a | b |
| 1 | 2 |
"""
a b
1 2
"""
Given the ways
| nodes |
+55 -29
View File
@@ -7,7 +7,9 @@ Feature: Basic Routing
@smallest
Scenario: A single way with two nodes
Given the node map
| a | b |
"""
a b
"""
And the ways
| nodes |
@@ -20,7 +22,9 @@ Feature: Basic Routing
Scenario: Routing in between two nodes of way
Given the node map
| a | b | 1 | 2 | c | d |
"""
a b 1 2 c d
"""
And the ways
| nodes |
@@ -33,7 +37,9 @@ Feature: Basic Routing
Scenario: Routing between the middle nodes of way
Given the node map
| a | b | c | d | e | f |
"""
a b c d e f
"""
And the ways
| nodes |
@@ -56,7 +62,9 @@ Feature: Basic Routing
Scenario: Two ways connected in a straight line
Given the node map
| a | | b | | c |
"""
a b c
"""
And the ways
| nodes |
@@ -74,8 +82,10 @@ Feature: Basic Routing
Scenario: 2 unconnected parallel ways
Given the node map
| a | b | c |
| d | e | f |
"""
a b c
d e f
"""
And the ways
| nodes |
@@ -113,9 +123,11 @@ Feature: Basic Routing
Scenario: 3 ways connected in a triangle
Given the node map
| a | | b |
| | | |
| | c | |
"""
a b
c
"""
And the ways
| nodes |
@@ -135,10 +147,12 @@ Feature: Basic Routing
Scenario: 3 connected triangles
Given a grid size of 100 meters
Given the node map
| x | a | | b | s |
| y | | | | t |
| | | c | | |
| | v | | w | |
"""
x a b s
y t
c
v w
"""
And the ways
| nodes |
@@ -166,9 +180,11 @@ Feature: Basic Routing
Scenario: To ways connected at a 45 degree angle
Given the node map
| a | | |
| b | | |
| c | d | e |
"""
a
b
c d e
"""
And the ways
| nodes |
@@ -186,10 +202,12 @@ Feature: Basic Routing
Scenario: Grid city center
Given the node map
| a | b | c | d |
| e | f | g | h |
| i | j | k | l |
| m | n | o | p |
"""
a b c d
e f g h
i j k l
m n o p
"""
And the ways
| nodes |
@@ -211,10 +229,12 @@ Feature: Basic Routing
Scenario: Grid city periphery
Given the node map
| a | b | c | d |
| e | f | g | h |
| i | j | k | l |
| m | n | o | p |
"""
a b c d
e f g h
i j k l
m n o p
"""
And the ways
| nodes |
@@ -236,9 +256,11 @@ Feature: Basic Routing
Scenario: Testbot - Triangle challenge
Given the node map
| | | | d |
| a | b | c | |
| | | | e |
"""
d
a b c
e
"""
And the ways
| nodes | highway | oneway |
@@ -254,7 +276,9 @@ Feature: Basic Routing
Scenario: Ambiguous edge weights - Use minimal edge weight
Given the node map
| a | b |
"""
a b
"""
And the ways
| nodes | highway | name |
@@ -269,7 +293,9 @@ Feature: Basic Routing
Scenario: Ambiguous edge names - Use lexicographically smallest name
Given the node map
| a | b | c |
"""
a b c
"""
And the ways
| nodes | highway | name |
+27 -15
View File
@@ -6,8 +6,10 @@ Feature: Compass bearing
Scenario: Bearing when going northwest
Given the node map
| b | |
| | a |
"""
b
a
"""
And the ways
| nodes |
@@ -19,7 +21,9 @@ Feature: Compass bearing
Scenario: Bearing when going west
Given the node map
| b | a |
"""
b a
"""
And the ways
| nodes |
@@ -31,9 +35,11 @@ Feature: Compass bearing
Scenario: Bearing af 45 degree intervals
Given the node map
| b | a | h |
| c | x | g |
| d | e | f |
"""
b a h
c x g
d e f
"""
And the ways
| nodes |
@@ -59,10 +65,12 @@ Feature: Compass bearing
Scenario: Bearing in a roundabout
Given the node map
| k | d | c | j |
| e | | | b |
| f | | | a |
| l | g | h | i |
"""
k d c j
e b
f a
l g h i
"""
And the ways
| nodes | oneway |
@@ -90,10 +98,12 @@ Feature: Compass bearing
Scenario: Bearing should stay constant when zig-zagging
Given the node map
| i | j | k | |
| b | d | f | h |
| a | c | e | g |
| | m | n | o |
"""
i j k
b d f h
a c e g
m n o
"""
And the ways
| nodes |
@@ -117,7 +127,9 @@ Feature: Compass bearing
Scenario: Bearings on an east-west way.
Given the node map
| a | b | c | d | e | f |
"""
a b c d e f
"""
And the ways
| nodes |
+21 -13
View File
@@ -7,7 +7,9 @@ Feature: Bearing parameter
Scenario: Testbot - Intial bearing in simple case
Given the node map
| a | b | c | d |
"""
a b c d
"""
And the ways
| nodes |
@@ -23,9 +25,11 @@ Feature: Bearing parameter
Scenario: Testbot - Intial bearing in simple case
Given the node map
| a | |
| 0 | c |
| b | |
"""
a
0 c
b
"""
And the ways
| nodes |
@@ -43,8 +47,10 @@ Feature: Bearing parameter
Scenario: Testbot - Initial bearing on split way
Given the node map
| g | d | | | | | 1 | | | | | c | f |
| h | a | | | | | 0 | | | | | b | e |
"""
g d 1 c f
h a 0 b e
"""
And the ways
| nodes | oneway |
@@ -76,13 +82,15 @@ Feature: Bearing parameter
Scenario: Testbot - Initial bearing in all direction
Given the node map
| h | | q | a | | | b |
| | | | | | | |
| | | p | i | j | | |
| g | | o | 0 | k | | c |
| | | n | m | l | | |
| | | | | | | |
| f | | | e | | | d |
"""
h q a b
p i j
g o 0 k c
n m l
f e d
"""
And the ways
| nodes | oneway | name |
+5 -3
View File
@@ -6,9 +6,11 @@ Feature: Geometry Compression
Scenario: Compressed segments have correct order
Given the node map
| a | | d | | | | h |
| b | | | | e | | f |
| | c | | | | | g |
"""
a d h
b e f
c g
"""
And the ways
| nodes |
+17 -9
View File
@@ -7,8 +7,10 @@ Feature: U-turns at via points
Scenario: Continue straight at waypoints enabled by default
Given the node map
| a | b | c | d |
| | e | f | g |
"""
a b c d
e f g
"""
And the ways
| nodes |
@@ -26,8 +28,10 @@ Feature: U-turns at via points
Scenario: Query parameter to disallow changing direction at all waypoints
Given the node map
| a | b | c | d |
| | e | f | g |
"""
a b c d
e f g
"""
And the query options
| continue_straight | false |
@@ -48,8 +52,10 @@ Feature: U-turns at via points
Scenario: Instructions at waypoints at u-turns
Given the node map
| a | b | c | d |
| | e | f | g |
"""
a b c d
e f g
"""
And the query options
| continue_straight | false |
@@ -70,9 +76,11 @@ Feature: U-turns at via points
Scenario: u-turn mixed with non-uturn vias
Given the node map
| a | 1 | b | 3 | c | 5 | d |
| | | 2 | | | | 4 |
| | | e | | f | | g |
"""
a 1 b 3 c 5 d
2 4
e f g
"""
And the query options
| continue_straight | false |
+6 -2
View File
@@ -6,7 +6,9 @@ Feature: Temporary tests related to osrm-datastore
Scenario: Scenario ab
Given the node map
| a | b |
"""
a b
"""
And the ways
| nodes |
@@ -19,7 +21,9 @@ Feature: Temporary tests related to osrm-datastore
Scenario: Scenaria xy
Given the node map
| x | y |
"""
x y
"""
And the ways
| nodes |
+51 -31
View File
@@ -7,7 +7,9 @@ Feature: Distance calculation
Scenario: 100m distance
Given a grid size of 100 meters
Given the node map
| a | b |
"""
a b
"""
And the ways
| nodes |
@@ -19,9 +21,11 @@ Feature: Distance calculation
Scenario: Distance should equal sum of segments, leftwinded
Given the node map
| e | |
| d | c |
| a | b |
"""
e
d c
a b
"""
And the ways
| nodes |
@@ -33,9 +37,11 @@ Feature: Distance calculation
Scenario: Distance should equal sum of segments, rightwinded
Given the node map
| | e |
| c | d |
| b | a |
"""
e
c d
b a
"""
And the ways
| nodes |
@@ -48,8 +54,10 @@ Feature: Distance calculation
Scenario: 10m distances
Given a grid size of 10 meters
Given the node map
| a | b |
| | c |
"""
a b
c
"""
And the ways
| nodes |
@@ -67,8 +75,10 @@ Feature: Distance calculation
Scenario: 100m distances
Given a grid size of 100 meters
Given the node map
| a | b |
| | c |
"""
a b
c
"""
And the ways
| nodes |
@@ -86,8 +96,10 @@ Feature: Distance calculation
Scenario: 1km distance
Given a grid size of 1000 meters
Given the node map
| a | b |
| | c |
"""
a b
c
"""
And the ways
| nodes |
@@ -105,10 +117,12 @@ Feature: Distance calculation
Scenario: Distance of a winding south-north path
Given a grid size of 10 meters
Given the node map
| a | b |
| d | c |
| e | f |
| h | g |
"""
a b
d c
e f
h g
"""
And the ways
| nodes |
@@ -127,8 +141,10 @@ Feature: Distance calculation
Scenario: Distance of a winding east-west path
Given a grid size of 10 meters
Given the node map
| a | d | e | h |
| b | c | f | g |
"""
a d e h
b c f g
"""
And the ways
| nodes |
@@ -147,13 +163,15 @@ Feature: Distance calculation
Scenario: Geometric distances
Given a grid size of 100 meters
Given the node map
| v | w | y | a | b | c | d |
| u | | | | | | e |
| t | | | | | | f |
| s | | | x | | | g |
| r | | | | | | h |
| q | | | | | | i |
| p | o | n | m | l | k | j |
"""
v w y a b c d
u e
t f
s x g
r h
q i
p o n m l k j
"""
And the ways
| nodes |
@@ -213,11 +231,13 @@ Feature: Distance calculation
Scenario: Distance of a maze of short segments
Given a grid size of 7 meters
Given the node map
| a | b | s | t |
| d | c | r | q |
| e | f | o | p |
| h | g | n | m |
| i | j | k | l |
"""
a b s t
d c r q
e f o p
h g n m
i j k l
"""
And the ways
| nodes |
+40 -18
View File
@@ -9,7 +9,9 @@ Feature: Basic Distance Matrix
Scenario: Testbot - Travel time matrix of minimal network
Given the node map
| a | b |
"""
a b
"""
And the ways
| nodes |
@@ -22,7 +24,9 @@ Feature: Basic Distance Matrix
Scenario: Testbot - Travel time matrix with different way speeds
Given the node map
| a | b | c | d |
"""
a b c d
"""
And the ways
| nodes | highway |
@@ -39,7 +43,9 @@ Feature: Basic Distance Matrix
Scenario: Testbot - Travel time matrix with fuzzy match
Given the node map
| a | b |
"""
a b
"""
And the ways
| nodes |
@@ -52,8 +58,10 @@ Feature: Basic Distance Matrix
Scenario: Testbot - Travel time matrix of small grid
Given the node map
| a | b | c |
| d | e | f |
"""
a b c
d e f
"""
And the ways
| nodes |
@@ -72,7 +80,9 @@ Feature: Basic Distance Matrix
Scenario: Testbot - Travel time matrix of network with unroutable parts
Given the node map
| a | b |
"""
a b
"""
And the ways
| nodes | oneway |
@@ -85,8 +95,10 @@ Feature: Basic Distance Matrix
Scenario: Testbot - Travel time matrix of network with oneways
Given the node map
| x | a | b | y |
| | d | e | |
"""
x a b y
d e
"""
And the ways
| nodes | oneway |
@@ -103,8 +115,10 @@ Feature: Basic Distance Matrix
Scenario: Testbot - Travel time matrix and with only one source
Given the node map
| a | b | c |
| d | e | f |
"""
a b c
d e f
"""
And the ways
| nodes |
@@ -120,8 +134,10 @@ Feature: Basic Distance Matrix
Scenario: Testbot - Travel time 3x2 matrix
Given the node map
| a | b | c |
| d | e | f |
"""
a b c
d e f
"""
And the ways
| nodes |
@@ -140,8 +156,10 @@ Feature: Basic Distance Matrix
Given a grid size of 300 meters
Given the extract extra arguments "--small-component-size 4"
Given the node map
| a | b | | f |
| d | e | | g |
"""
a b f
d e g
"""
And the ways
| nodes |
@@ -160,8 +178,10 @@ Feature: Basic Distance Matrix
Given a grid size of 300 meters
Given the extract extra arguments "--small-component-size 4"
Given the node map
| a | b | | f | h |
| d | e | | g | i |
"""
a b f h
d e g i
"""
And the ways
| nodes |
@@ -181,8 +201,10 @@ Feature: Basic Distance Matrix
Scenario: Testbot - Travel time matrix with loops
Given the node map
| a | 1 | 2 | b |
| d | 4 | 3 | c |
"""
a 1 2 b
d 4 3 c
"""
And the ways
| nodes | oneway |
+8 -4
View File
@@ -6,9 +6,11 @@ Feature: Durations
Scenario: Duration of ways
Given the node map
| a | b | | | | f |
| | | | e | | |
| | c | | | d | |
"""
a b f
e
c d
"""
And the ways
| nodes | highway | duration |
@@ -29,7 +31,9 @@ Feature: Durations
@todo
Scenario: Partial duration of ways
Given the node map
| a | b | | c |
"""
a b c
"""
And the ways
| nodes | highway | duration |
+5 -3
View File
@@ -8,9 +8,11 @@ Feature: Testbot - Walkthrough
Scenario: Testbot - Processing Flow
Given the node map
| | | | d |
| a | b | c | |
| | | | e |
"""
d
a b c
e
"""
And the ways
| nodes | highway | oneway |
+9 -5
View File
@@ -6,9 +6,11 @@ Feature: Choosing fastest route
Scenario: Pick the geometrically shortest route, way types being equal
Given the node map
| | | s | | |
| | | t | | |
| x | a | | b | y |
"""
s
t
x a b y
"""
And the ways
| nodes | highway |
@@ -24,8 +26,10 @@ Feature: Choosing fastest route
Scenario: Pick the fastest route, even when it's longer
Given the node map
| | p | |
| a | s | b |
"""
p
a s b
"""
And the ways
| nodes | highway |
+41 -23
View File
@@ -6,11 +6,13 @@ Feature: Testbot - Handle ferry routes
Scenario: Testbot - Ferry duration, single node
Given the node map
| a | b | c | d |
| e | f | g | h |
| i | j | k | l |
| m | n | o | p |
| q | r | s | t |
"""
a b c d
e f g h
i j k l
m n o p
q r s t
"""
And the ways
| nodes | highway | route | duration |
@@ -41,9 +43,11 @@ Feature: Testbot - Handle ferry routes
@todo
Scenario: Testbot - Week long ferry routes
Given the node map
| a | b | c | d |
| e | f | g | h |
| i | j | k | l |
"""
a b c d
e f g h
i j k l
"""
And the ways
| nodes | highway | route | duration |
@@ -65,8 +69,10 @@ Feature: Testbot - Handle ferry routes
Scenario: Testbot - Ferry duration, multiple nodes
Given the node map
| x | | | | | y |
| | a | b | c | d | |
"""
x y
a b c d
"""
And the ways
| nodes | highway | route | duration |
@@ -83,8 +89,10 @@ Feature: Testbot - Handle ferry routes
Scenario: Testbot - Ferry duration, individual parts, fast
Given a grid size of 10000 meters
Given the node map
| x | y | | z | | | v |
| a | b | | c | | | d |
"""
x y z v
a b c d
"""
And the ways
| nodes | highway | route | duration |
@@ -104,8 +112,10 @@ Feature: Testbot - Handle ferry routes
@todo
Scenario: Testbot - Ferry duration, individual parts, slow
Given the node map
| x | y | | z | | | v |
| a | b | | c | | | d |
"""
x y z v
a b c d
"""
And the ways
| nodes | highway | route | duration |
@@ -124,8 +134,10 @@ Feature: Testbot - Handle ferry routes
Scenario: Testbot - Ferry duration, connected routes
Given the node map
| x | | | | d | | | | y |
| | a | b | c | | e | f | g | t |
"""
x d y
a b c e f g t
"""
And the ways
| nodes | highway | route | duration |
@@ -141,9 +153,11 @@ Feature: Testbot - Handle ferry routes
Scenario: Testbot - Prefer road when faster than ferry
Given the node map
| x | a | b | c | |
| | | | | d |
| y | g | f | e | |
"""
x a b c
d
y g f e
"""
And the ways
| nodes | highway | route | duration |
@@ -160,8 +174,10 @@ Feature: Testbot - Handle ferry routes
Scenario: Testbot - Long winding ferry route
Given the node map
| x | | b | | d | | f | | y |
| | a | | c | | e | | g | |
"""
x b d f y
a c e g
"""
And the ways
| nodes | highway | route | duration |
@@ -177,8 +193,10 @@ Feature: Testbot - Handle ferry routes
@todo
Scenario: Testbot - Ferry duration formats
Given the node map
| a | c | e | g | i | k | m | o | q | s |
| b | d | f | h | j | l | n | p | r | t |
"""
a c e g i k m o q s
b d f h j l n p r t
"""
And the ways
| nodes | route | duration |
+3 -1
View File
@@ -28,7 +28,9 @@ Feature: Fixed bugs, kept to check for regressions
Scenario: Step trimming with very short segments
Given a grid size of 0.1 meters
Given the node map
| a | 1 | b | c | d | 2 | e |
"""
a 1 b c d 2 e
"""
Given the ways
| nodes | oneway |
+13 -9
View File
@@ -7,9 +7,11 @@ Feature: Basic Routing
Scenario: Graph transformation
Given the node map
| | | d |
| a | b | c |
| | | e |
"""
d
a b c
e
"""
And the ways
| nodes |
@@ -22,12 +24,14 @@ Feature: Basic Routing
Scenario: Turn instructions on compressed road network geometry
Given the node map
| x | a | | |
| | b | | |
| f | | | e |
| | | | |
| | | | |
| y | c | | d |
"""
x a
b
f e
y c d
"""
And the ways
| nodes | name |
+16 -8
View File
@@ -9,8 +9,10 @@ Feature: Setting impedance and speed separately
Scenario: Use impedance to pick route, even when longer/slower
Given the node map
| | s | | t | | u | | v | |
| a | | b | | c | | d | | e |
"""
s t u v
a b c d e
"""
And the ways
| nodes | impedance |
@@ -36,8 +38,10 @@ Feature: Setting impedance and speed separately
Scenario: Weight should default to 1
Given the node map
| | s | | t | |
| a | | b | | c |
"""
s t
a b c
"""
And the ways
| nodes | impedance |
@@ -57,8 +61,10 @@ Feature: Setting impedance and speed separately
# OSRM should not factor speed into impedance internally. However, the profile can choose to do so,
# and this test expect the testbot profile to do it.
Given the node map
| | s | | t | |
| a | | b | | c |
"""
s t
a b c
"""
And the ways
| nodes | impedance | highway |
@@ -76,8 +82,10 @@ Feature: Setting impedance and speed separately
Scenario: Weight should influence neither speed nor travel time.
Given the node map
| a | b | c |
| t | | |
"""
a b c
t
"""
And the ways
| nodes |
+12 -4
View File
@@ -9,7 +9,9 @@ Feature: Ways of loading data
Scenario: Load data with datastore - ab
Given data is loaded with datastore
Given the node map
| a | b |
"""
a b
"""
And the ways
| nodes |
@@ -23,7 +25,9 @@ Feature: Ways of loading data
Scenario: Load data directly - st
Given data is loaded directly
Given the node map
| s | t |
"""
s t
"""
And the ways
| nodes |
@@ -37,7 +41,9 @@ Feature: Ways of loading data
Scenario: Load data datastore - xy
Given data is loaded with datastore
Given the node map
| x | y |
"""
x y
"""
And the ways
| nodes |
@@ -51,7 +57,9 @@ Feature: Ways of loading data
Scenario: Load data directly - cd
Given data is loaded directly
Given the node map
| c | d |
"""
c d
"""
And the ways
| nodes |
+15 -11
View File
@@ -6,9 +6,11 @@ Feature: Avoid weird loops caused by rounding errors
Scenario: Weird sidestreet loops
Given the node map
| a | 1 | b | 2 | c | 3 | d |
| | | | | | | |
| e | | f | | g | | h |
"""
a 1 b 2 c 3 d
e f g h
"""
And the ways
| nodes |
@@ -73,14 +75,16 @@ Feature: Avoid weird loops caused by rounding errors
@412
Scenario: Avoid weird loops 3
And the node map
| a | | |
| b | e | |
| h | | 1 |
| | | |
| | | 2 |
| g | | |
| | c | f |
| d | | |
"""
a
b e
h 1
2
g
c f
d
"""
And the ways
| nodes | highway |
+39 -23
View File
@@ -9,11 +9,13 @@ Feature: Basic Map Matching
Scenario: Testbot - Map matching with outlier that has no candidate
Given a grid size of 100 meters
Given the node map
| a | b | c | d |
| | | | |
| | | | |
| | | | |
| | | 1 | |
"""
a b c d
1
"""
And the ways
| nodes | oneway |
@@ -25,8 +27,10 @@ Feature: Basic Map Matching
Scenario: Testbot - Map matching with trace splitting
Given the node map
| a | b | c | d |
| | | e | |
"""
a b c d
e
"""
And the ways
| nodes | oneway |
@@ -39,8 +43,10 @@ Feature: Basic Map Matching
Scenario: Testbot - Map matching with core factor
Given the contract extra arguments "--core 0.8"
Given the node map
| a | b | c | d |
| | | e | |
"""
a b c d
e
"""
And the ways
| nodes | oneway |
@@ -52,12 +58,14 @@ Feature: Basic Map Matching
Scenario: Testbot - Map matching with small distortion
Given the node map
| a | b | c | d | e |
| | f | | | |
| | | | | |
| | | | | |
| | | | | |
| | h | | | k |
"""
a b c d e
f
h k
"""
# The second way does not need to be a oneway
# but the grid spacing triggers the uturn
@@ -74,8 +82,10 @@ Feature: Basic Map Matching
Scenario: Testbot - Map matching with oneways
Given a grid size of 10 meters
Given the node map
| a | b | c | d |
| e | f | g | h |
"""
a b c d
e f g h
"""
And the ways
| nodes | oneway |
@@ -89,8 +99,10 @@ Feature: Basic Map Matching
Scenario: Testbot - Matching with oneway streets
Given a grid size of 10 meters
Given the node map
| a | b | c | d |
| e | f | g | h |
"""
a b c d
e f g h
"""
And the ways
| nodes | oneway |
@@ -111,8 +123,10 @@ Feature: Basic Map Matching
| annotations | true |
Given the node map
| a | b | c | d | e | | g | h |
| | | i | | | | | |
"""
a b c d e g h
i
"""
And the ways
| nodes | oneway |
@@ -143,8 +157,10 @@ Feature: Basic Map Matching
| geometries | polyline |
Given the node map
| a | b | c |
| | d | |
"""
a b c
d
"""
And the ways
| nodes | oneway |
+54 -26
View File
@@ -15,7 +15,9 @@ Feature: Testbot - Travel mode
Scenario: Testbot - Always announce mode change
Given the node map
| a | b | c | d |
"""
a b c d
"""
And the ways
| nodes | highway | name |
@@ -30,7 +32,9 @@ Feature: Testbot - Travel mode
Scenario: Testbot - Compressed Modes
Given the node map
| a | b | c | d | e | f | g |
"""
a b c d e f g
"""
And the ways
| nodes | highway | name |
@@ -45,8 +49,10 @@ Feature: Testbot - Travel mode
Scenario: Testbot - Modes in each direction, different forward/backward speeds
Given the node map
| | 0 | 1 | |
| a | | | b |
"""
0 1
a b
"""
And the ways
| nodes | highway | oneway |
@@ -65,8 +71,10 @@ Feature: Testbot - Travel mode
Scenario: Testbot - Modes in each direction, same forward/backward speeds
Given the node map
| | 0 | 1 | |
| a | | | b |
"""
0 1
a b
"""
And the ways
| nodes | highway |
@@ -80,7 +88,9 @@ Feature: Testbot - Travel mode
@oneway
Scenario: Testbot - Modes for oneway, different forward/backward speeds
Given the node map
| a | b |
"""
a b
"""
And the ways
| nodes | highway | oneway |
@@ -94,7 +104,9 @@ Feature: Testbot - Travel mode
@oneway
Scenario: Testbot - Modes for oneway, same forward/backward speeds
Given the node map
| a | b |
"""
a b
"""
And the ways
| nodes | highway | oneway |
@@ -108,7 +120,9 @@ Feature: Testbot - Travel mode
@oneway
Scenario: Testbot - Modes for reverse oneway, different forward/backward speeds
Given the node map
| a | b |
"""
a b
"""
And the ways
| nodes | highway | oneway |
@@ -122,7 +136,9 @@ Feature: Testbot - Travel mode
@oneway
Scenario: Testbot - Modes for reverse oneway, same forward/backward speeds
Given the node map
| a | b |
"""
a b
"""
And the ways
| nodes | highway | oneway |
@@ -136,7 +152,9 @@ Feature: Testbot - Travel mode
@via
Scenario: Testbot - Mode should be set at via points
Given the node map
| a | 1 | b |
"""
a 1 b
"""
And the ways
| nodes | highway |
@@ -149,8 +167,10 @@ Feature: Testbot - Travel mode
Scenario: Testbot - Starting at a tricky node
Given the node map
| | a | | | |
| | | | b | c |
"""
a
b c
"""
And the ways
| nodes | highway |
@@ -163,7 +183,9 @@ Feature: Testbot - Travel mode
Scenario: Testbot - Mode changes on straight way without name change
Given the node map
| a | 1 | b | 2 | c |
"""
a 1 b 2 c
"""
And the ways
| nodes | highway | name |
@@ -179,8 +201,10 @@ Feature: Testbot - Travel mode
Scenario: Testbot - Mode for routes
Given the node map
| a | b | | | |
| | c | d | e | f |
"""
a b
c d e f
"""
And the ways
| nodes | highway | route | duration |
@@ -202,13 +226,15 @@ Feature: Testbot - Travel mode
Scenario: Testbot - Modes, triangle map
Given the node map
| | | | | | | d |
| | | | | | 2 | |
| | | | | 6 | | 5 |
| a | 0 | b | c | | | |
| | | | | 4 | | 1 |
| | | | | | 3 | |
| | | | | | | e |
"""
d
2
6 5
a 0 b c
4 1
3
e
"""
And the ways
| nodes | highway | oneway |
@@ -236,9 +262,11 @@ Feature: Testbot - Travel mode
Scenario: Testbot - River in the middle
Given the node map
| a | b | c | | |
| | | d | | |
| | | e | f | g |
"""
a b c
d
e f g
"""
And the ways
| nodes | highway |
+15 -9
View File
@@ -7,12 +7,14 @@ Feature: Testbot - oneways
Scenario: Routing on a oneway roundabout
Given the node map
| | | | | v | |
| x | | d | c | | |
| | e | | | b | |
| | f | | | a | |
| | | g | h | | y |
| | z | | | | |
"""
v
x d c
e b
f a
g h y
z
"""
And the ways
| nodes | oneway |
@@ -60,8 +62,10 @@ Feature: Testbot - oneways
Scenario: Testbot - Around the Block
Given the node map
| | a | b | |
| e | d | c | f |
"""
a b
e d c f
"""
And the ways
| nodes | oneway | foot |
@@ -92,7 +96,9 @@ Feature: Testbot - oneways
Scenario: Testbot - Two consecutive oneways
Given the node map
| a | b | c |
"""
a b c
"""
And the ways
| nodes | oneway |
+3 -1
View File
@@ -6,7 +6,9 @@ Feature: Separate settings for forward/backward direction
Scenario: Testbot - Going against the flow
Given the node map
| a | b | c | d |
"""
a b c d
"""
And the ways
| nodes | highway |
+7 -3
View File
@@ -7,7 +7,9 @@ Feature: Testbot - overlapping ways
Scenario: Testbot - multiple way between same nodes
Note that cb is connecting the same two nodes as bc
Given the node map
| a | b | c | d |
"""
a b c d
"""
And the ways
| nodes | highway |
@@ -23,8 +25,10 @@ Feature: Testbot - overlapping ways
Scenario: Testbot - area on top of way
Given the node map
| x | a | b | y |
| | d | c | |
"""
x a b y
d c
"""
And the ways
| nodes | highway | area |
+30 -14
View File
@@ -7,8 +7,10 @@ Feature: Penalties
Scenario: Traffic signals should incur a delay, without changing distance
Given the node map
| a | b | c |
| d | e | f |
"""
a b c
d e f
"""
And the nodes
| node | highway |
@@ -26,9 +28,11 @@ Feature: Penalties
Scenario: Signal penalty should not depend on way type
Given the node map
| a | b | c |
| d | e | f |
| g | h | i |
"""
a b c
d e f
g h i
"""
And the nodes
| node | highway |
@@ -50,7 +54,9 @@ Feature: Penalties
Scenario: Passing multiple traffic signals should incur a accumulated delay
Given the node map
| a | b | c | d | e |
"""
a b c d e
"""
And the nodes
| node | highway |
@@ -69,9 +75,11 @@ Feature: Penalties
@todo
Scenario: Signal penalty should not depend on way type
Given the node map
| a | b | c |
| d | e | f |
| g | h | i |
"""
a b c
d e f
g h i
"""
And the nodes
| node | highway |
@@ -96,7 +104,9 @@ Feature: Penalties
Scenario: Passing multiple traffic signals should incur a accumulated delay
Given the node map
| a | b | c | d | e |
"""
a b c d e
"""
And the nodes
| node | highway |
@@ -115,7 +125,9 @@ Feature: Penalties
@todo
Scenario: Starting or ending at a traffic signal should not incur a delay
Given the node map
| a | b | c |
"""
a b c
"""
And the nodes
| node | highway |
@@ -132,7 +144,9 @@ Feature: Penalties
Scenario: Routing between signals on the same way should not incur a delay
Given the node map
| a | b | c | d |
"""
a b c d
"""
And the nodes
| node | highway |
@@ -151,8 +165,10 @@ Feature: Penalties
Scenario: Prefer faster route without traffic signals
Given a grid size of 50 meters
And the node map
| a | | b | | c |
| | | d | | |
"""
a b c
d
"""
And the nodes
| node | highway |
+6 -4
View File
@@ -8,10 +8,12 @@ Feature: OSM Route Relation
# This scenario assumes that the testbot uses an impedance of 0.5 for ways that are part of 'testbot' routes.
Given the node map
| s | | | t | | | |
| a | | | b | | | c |
| | | | | | | |
| | | | u | | | v |
"""
s t
a b c
u v
"""
And the ways
| nodes |
+24 -16
View File
@@ -18,9 +18,11 @@ Feature: Testbot - side bias
end
"""
Given the node map
| a | | b | | c |
| | | | | |
| | | d | | |
"""
a b c
d
"""
And the ways
| nodes |
| ab |
@@ -42,9 +44,11 @@ Feature: Testbot - side bias
end
"""
And the node map
| a | | b | | c |
| | | | | |
| | | d | | |
"""
a b c
d
"""
And the ways
| nodes |
| ab |
@@ -59,11 +63,13 @@ Feature: Testbot - side bias
Scenario: Roundabout exit counting for left sided driving
And a grid size of 10 meters
And the node map
| | | a | | |
| | | b | | |
| h | g | | c | d |
| | | e | | |
| | | f | | |
"""
a
b
h g c d
e
f
"""
And the ways
| nodes | junction |
| ab | |
@@ -81,11 +87,13 @@ Feature: Testbot - side bias
Scenario: Mixed Entry and Exit
And a grid size of 10 meters
And the node map
| | c | | a | |
| j | | b | | f |
| | k | | e | |
| l | | h | | d |
| | g | | i | |
"""
c a
j b f
k e
l h d
g i
"""
And the ways
| nodes | junction | oneway |
+47 -35
View File
@@ -6,11 +6,13 @@ Feature: Snap start/end point to the nearest way
Scenario: Snap to nearest protruding oneway
Given the node map
| | 1 | | 2 | |
| 8 | | n | | 3 |
| | w | c | e | |
| 7 | | s | | 4 |
| | 6 | | 5 | |
"""
1 2
8 n 3
w c e
7 s 4
6 5
"""
And the ways
| nodes |
@@ -32,10 +34,12 @@ Feature: Snap start/end point to the nearest way
Scenario: Snap to nearest edge of a square
Given the node map
| 4 | 5 | 6 | 7 |
| 3 | a | | u |
| 2 | | | |
| 1 | d | | b |
"""
4 5 6 7
3 a u
2
1 d b
"""
And the ways
| nodes |
@@ -51,10 +55,12 @@ Feature: Snap start/end point to the nearest way
Scenario: Snap to edge right under start/end point
Given the node map
| d | e | f | g |
| c | | | h |
| b | | | i |
| a | l | k | j |
"""
d e f g
c h
b i
a l k j
"""
And the ways
| nodes |
@@ -79,8 +85,10 @@ Feature: Snap start/end point to the nearest way
Scenario: Snapping in viaroute
Given the extract extra arguments "--small-component-size 4"
Given the node map
| a | | c | e |
| b | | d | f |
"""
a c e
b d f
"""
And the ways
| nodes |
@@ -99,9 +107,11 @@ Feature: Snap start/end point to the nearest way
Scenario: Snap to correct way at large scales
Given a grid size of 1000 meters
Given the node map
| | | | a |
| x | | | b |
| | | | c |
"""
a
x b
c
"""
And the ways
| nodes |
@@ -121,23 +131,25 @@ Feature: Snap start/end point to the nearest way
Scenario: Find edges within 100m, and the same from 1km
Given a grid size of 100 meters
Given the node map
| p | | | | | | | | i | | | | | | | | j |
| | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | |
| | | | | | | 8 | | 1 | | 2 | | | | | | |
| | | | | | | | h | a | b | | | | | | | |
| o | | | | | | 7 | g | x | c | 3 | | | | | | k |
| | | | | | | | f | e | d | | | | | | | |
| | | | | | | 6 | | 5 | | 4 | | | | | | |
| | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | |
| n | | | | | | | | m | | | | | | | | l |
"""
p i j
8 1 2
h a b
o 7 g x c 3 k
f e d
6 5 4
n m l
"""
Given the ways
| nodes |
+3 -1
View File
@@ -19,7 +19,9 @@ Feature: Testbot - speeds
Scenario: Testbot - Speed on rivers, map
Given the node map
| a | b |
"""
a b
"""
And the ways
| nodes | highway |
+8 -4
View File
@@ -6,7 +6,9 @@ Feature: Status messages
Scenario: Route found
Given the node map
| a | b |
"""
a b
"""
Given the ways
| nodes |
@@ -19,9 +21,11 @@ Feature: Status messages
Scenario: No route found
Given the node map
| a | b |
| | |
| c | d |
"""
a b
c d
"""
Given the ways
| nodes |
+15 -7
View File
@@ -8,7 +8,9 @@ Feature: Basic Routing
@smallest
Scenario: Checking
Given the node map
| a | b | 1 | c | d | e |
"""
a b 1 c d e
"""
And the ways
| nodes |
@@ -28,8 +30,10 @@ Feature: Basic Routing
@smallest
Scenario: Check handling empty values
Given the node map
| a | b | | c | | d | f |
| | | | | | e | |
"""
a b c d f
e
"""
And the ways
| nodes | name |
@@ -46,7 +50,9 @@ Feature: Basic Routing
@smallest @todo
Scenario: Summaries when routing on a simple network
Given the node map
| a | b |
"""
a b
"""
And the ways
| nodes |
@@ -60,9 +66,11 @@ Feature: Basic Routing
@repeated
Scenario: Check handling empty values
Given the node map
| f | | | x | | |
| b | c | d | e | 1 | g |
| a | | | y | | |
"""
f x
b c d e 1 g
a y
"""
And the ways
| nodes | name | # |
+50 -30
View File
@@ -11,9 +11,11 @@ Feature: Estimation of travel time
Scenario: Basic travel time, 10m scale
Given a grid size of 10 meters
Given the node map
| h | a | b |
| g | x | c |
| f | e | d |
"""
h a b
g x c
f e d
"""
And the ways
| nodes | highway |
@@ -40,9 +42,11 @@ Feature: Estimation of travel time
Scenario: Basic travel time, 100m scale
Given a grid size of 100 meters
Given the node map
| h | a | b |
| g | x | c |
| f | e | d |
"""
h a b
g x c
f e d
"""
And the ways
| nodes | highway |
@@ -69,9 +73,11 @@ Feature: Estimation of travel time
Scenario: Basic travel time, 1km scale
Given a grid size of 1000 meters
Given the node map
| h | a | b |
| g | x | c |
| f | e | d |
"""
h a b
g x c
f e d
"""
And the ways
| nodes | highway |
@@ -98,9 +104,11 @@ Feature: Estimation of travel time
Scenario: Basic travel time, 10km scale
Given a grid size of 10000 meters
Given the node map
| h | a | b |
| g | x | c |
| f | e | d |
"""
h a b
g x c
f e d
"""
And the ways
| nodes | highway |
@@ -126,9 +134,11 @@ Feature: Estimation of travel time
Scenario: Time of travel depending on way type
Given the node map
| a | b |
| c | d |
| e | f |
"""
a b
c d
e f
"""
And the ways
| nodes | highway |
@@ -145,8 +155,10 @@ Feature: Estimation of travel time
Scenario: Time of travel on a series of ways
Given the node map
| a | b | e |
| f | c | d |
"""
a b e
f c d
"""
And the ways
| nodes | highway |
@@ -164,9 +176,11 @@ Feature: Estimation of travel time
Scenario: Time of travel on a winding way
Given the node map
| a | | i | h |
| b | c | | g |
| | d | e | f |
"""
a i h
b c g
d e f
"""
And the ways
| nodes | highway |
@@ -180,9 +194,11 @@ Feature: Estimation of travel time
Scenario: Time of travel on combination of road types
Given the node map
| a | b | c |
| | | d |
| | | e |
"""
a b c
d
e
"""
And the ways
| nodes | highway |
@@ -198,10 +214,12 @@ Feature: Estimation of travel time
Scenario: Time of travel on part of a way
Given the node map
| a | 1 |
| | 2 |
| | 3 |
| b | 4 |
"""
a 1
2
3
b 4
"""
And the ways
| nodes | highway |
@@ -219,9 +237,11 @@ Feature: Estimation of travel time
Scenario: Total travel time should match sum of times of individual ways
Given a grid size of 1000 meters
And the node map
| a | b | | | |
| | | | | |
| | c | | | d |
"""
a b
c d
"""
And the ways
| nodes | highway |
@@ -3,10 +3,23 @@ Feature: Traffic - turn penalties applied to turn onto which a phantom node snap
Background: Simple map with phantom nodes
Given the node map
| | 1 | | 2 | | 3 | |
| a:1 | | b:2 | | c:3 | | d:4 |
| | | | | | | |
| | | e:5 | | f:6 | | g:7 |
"""
1 2 3
a b c d
e f g
"""
And the nodes
| node | id |
| a | 1 |
| b | 2 |
| c | 3 |
| d | 4 |
| e | 5 |
| f | 6 |
| g | 7 |
And the ways
| nodes | highway |
| ab | primary |
+24 -16
View File
@@ -7,8 +7,10 @@ Feature: Basic trip planning
Scenario: Testbot - Trip planning with less than 10 nodes
Given the node map
| a | b |
| c | d |
"""
a b
c d
"""
And the ways
| nodes |
@@ -24,10 +26,12 @@ Feature: Basic trip planning
Scenario: Testbot - Trip planning with more than 10 nodes
Given the node map
| a | b | c | d |
| l | | | e |
| k | | | f |
| j | i | h | g |
"""
a b c d
l e
k f
j i h g
"""
And the ways
| nodes |
@@ -51,13 +55,15 @@ Feature: Basic trip planning
Scenario: Testbot - Trip planning with multiple scc
Given the node map
| a | b | c | d |
| l | | | e |
| k | | | f |
| j | i | h | g |
| | | | |
| q | m | n | |
| | p | o | |
"""
a b c d
l e
k f
j i h g
q m n
p o
"""
And the ways
| nodes |
@@ -87,9 +93,11 @@ Feature: Basic trip planning
# Test single node in each component #1850
Scenario: Testbot - Trip planning with less than 10 nodes
Given the node map
| a | 1 | b |
| | | |
| c | 2 | d |
"""
a 1 b
c 2 d
"""
And the ways
| nodes |
+6 -2
View File
@@ -6,7 +6,9 @@ Feature: Handling of UTF characters
Scenario: Streetnames with UTF characters
Given the node map
| a | b | c | d |
"""
a b c d
"""
And the ways
| nodes | name |
@@ -24,7 +26,9 @@ Feature: Handling of UTF characters
@todo
Scenario: Up to 255 Unicode Code Points (255 x Panda Code Point)
Given the node map
| a | b | c |
"""
a b c
"""
And the ways
| nodes | name | highway |
+73 -43
View File
@@ -6,7 +6,9 @@ Feature: Via points
Scenario: Simple via point
Given the node map
| a | b | c |
"""
a b c
"""
And the ways
| nodes |
@@ -19,7 +21,9 @@ Feature: Via points
Scenario: Simple via point with core factor
Given the contract extra arguments "--core 0.8"
Given the node map
| a | b | c |
"""
a b c
"""
And the ways
| nodes |
@@ -33,8 +37,10 @@ Feature: Via points
Scenario: Via point at a dead end
Given the node map
| a | b | c |
| | d | |
"""
a b c
d
"""
And the ways
| nodes |
@@ -48,8 +54,10 @@ Feature: Via points
Scenario: Multiple via points
Given the node map
| a | | | | e | f | g | |
| | b | c | d | | | | h |
"""
a e f g
b c d h
"""
And the ways
| nodes |
@@ -69,9 +77,11 @@ Feature: Via points
Scenario: Duplicate via point
Given the node map
| x | | | | | |
| a | 1 | 2 | 3 | 4 | b |
| | | | | | |
"""
x
a 1 2 3 4 b
"""
And the ways
| nodes |
@@ -85,9 +95,11 @@ Feature: Via points
Scenario: Via points on ring of oneways
# xa it to avoid only having a single ring, which cna trigger edge cases
Given the node map
| | x | | | | | | g | |
| | a | 1 | b | 2 | c | 3 | d | |
| i | f | | | | | | e | h |
"""
x g
a 1 b 2 c 3 d
i f e h
"""
And the ways
| nodes | oneway |
@@ -113,9 +125,11 @@ Feature: Via points
Scenario: Via points on ring on the same oneway
# xa it to avoid only having a single ring, which cna trigger edge cases
Given the node map
| | x | | | | e | |
| | a | 1 | 2 | 3 | b | |
| g | d | | | | c | f |
"""
x e
a 1 2 3 b
g d c f
"""
And the ways
| nodes | oneway |
@@ -139,9 +153,11 @@ Feature: Via points
# See issue #1896
Scenario: Via point at a dead end with oneway
Given the node map
| a | b | c |
| | d | |
| | e | |
"""
a b c
d
e
"""
And the ways
| nodes | oneway |
@@ -157,9 +173,11 @@ Feature: Via points
# See issue #2349
Scenario: Via point at a dead end with oneway
Given the node map
| a | b | c |
| | d | |
| | e | |
"""
a b c
d
e
"""
And the ways
| nodes | oneway |
@@ -176,10 +194,12 @@ Feature: Via points
@todo
Scenario: Via point at a dead end with oneway
Given the node map
| a | b | c |
| | d | |
| | e | g |
| | f | |
"""
a b c
d
e g
f
"""
And the ways
| nodes | oneway |
@@ -199,12 +219,14 @@ Feature: Via points
Scenario: Via point at a dead end with barrier
Given the profile "car"
Given the node map
| a | b | c |
| | 1 | |
| | d | |
| | | |
| | | |
| f | e | |
"""
a b c
1
d
f e
"""
And the nodes
| node | barrier |
@@ -223,10 +245,12 @@ Feature: Via points
Scenario: Via points on ring on the same oneway, forces one of the vertices to be top node
Given the node map
| a | 1 | 2 | b |
| 8 | | | 3 |
| 7 | | | 4 |
| d | 6 | 5 | c |
"""
a 1 2 b
8 3
7 4
d 6 5 c
"""
And the ways
| nodes | oneway |
@@ -244,11 +268,13 @@ Feature: Via points
Scenario: Multiple Via points on ring on the same oneway, forces one of the vertices to be top node
Given the node map
| a | 1 | 2 | 3 | b |
| | | | | 4 |
| | | | | 5 |
| | | | | 6 |
| d | 9 | 8 | 7 | c |
"""
a 1 2 3 b
4
5
6
d 9 8 7 c
"""
And the ways
| nodes | oneway |
@@ -269,8 +295,10 @@ Feature: Via points
@todo
Scenario: Incorrect ordering of nodes can produce multiple U-turns
Given the node map
| | a | | | |
| e | b | c | d | f |
"""
a
e b c d f
"""
And the ways
| nodes | oneway |
@@ -284,7 +312,9 @@ Feature: Via points
@2798
Scenario: UTurns Enabled
Given the node map
| a | b | c | d | e |
"""
a b c d e
"""
And the query options
| continue_straight | false |