cucumber: change syntax of node maps
This commit is contained in:
		
							parent
							
								
									d47d03c15b
								
							
						
					
					
						commit
						7cbb1807e7
					
				| @ -55,7 +55,9 @@ Background: | |||||||
| 
 | 
 | ||||||
| Scenario: Testbot - Straight Road | Scenario: Testbot - Straight Road | ||||||
|     Given the node map |     Given the node map | ||||||
|         | a | b | c | d | |         """ | ||||||
|  |         a b c d | ||||||
|  |         """ | ||||||
| 
 | 
 | ||||||
|     And the ways |     And the ways | ||||||
|         | nodes | highway | |         | nodes | highway | | ||||||
| @ -92,7 +94,9 @@ Background: | |||||||
| 
 | 
 | ||||||
| Scenario: Testbot - Straight Road | Scenario: Testbot - Straight Road | ||||||
|     Given the node map |     Given the node map | ||||||
|         | a | b | c | d | |         """ | ||||||
|  |         a b c d | ||||||
|  |         """ | ||||||
| 
 | 
 | ||||||
|     And the ways |     And the ways | ||||||
|         | nodes | highway | name | |         | nodes | highway | name | | ||||||
| @ -117,8 +121,10 @@ Background: | |||||||
| 
 | 
 | ||||||
| Scenario: Testbot - Straight Road | Scenario: Testbot - Straight Road | ||||||
|     Given the node map |     Given the node map | ||||||
|         | a | b | |         """ | ||||||
|         | d | c | |         a b | ||||||
|  |         d c | ||||||
|  |         """ | ||||||
| 
 | 
 | ||||||
|     And the ways |     And the ways | ||||||
|         | nodes | highway | name | |         | nodes | highway | name | | ||||||
| @ -140,8 +146,10 @@ Background: | |||||||
| 
 | 
 | ||||||
| Scenario: Testbot - Straight Road | Scenario: Testbot - Straight Road | ||||||
|     Given the node map |     Given the node map | ||||||
|         | a | b | e | |         """ | ||||||
|         | d | c |   | |         a b e | ||||||
|  |         d c | ||||||
|  |         """ | ||||||
| 
 | 
 | ||||||
|     And the ways |     And the ways | ||||||
|         | nodes | highway | name | |         | nodes | highway | name | | ||||||
| @ -165,8 +173,10 @@ Scenario: Enter and Exit mini roundabout with sharp angle   # features/guidance/ | |||||||
|     Given the profile "car"                                   # features/step_definitions/data.js:8 |     Given the profile "car"                                   # features/step_definitions/data.js:8 | ||||||
|     Given a grid size of 10 meters                            # features/step_definitions/data.js:20 |     Given a grid size of 10 meters                            # features/step_definitions/data.js:20 | ||||||
|     Given the node map                                        # features/step_definitions/data.js:45 |     Given the node map                                        # features/step_definitions/data.js:45 | ||||||
|         | a | b |   | |         """ | ||||||
|         |   | c | d | |         a b | ||||||
|  |           c d | ||||||
|  |         """ | ||||||
|     And the ways                                              # features/step_definitions/data.js:128 |     And the ways                                              # features/step_definitions/data.js:128 | ||||||
|         | nodes | highway         | name | |         | nodes | highway         | name | | ||||||
|         | ab    | tertiary        | MySt | |         | ab    | tertiary        | MySt | | ||||||
| @ -195,9 +205,11 @@ OSRM converts the grid into a so called edge-based graph. | |||||||
| ``` | ``` | ||||||
| Scenario: Testbot - Intersection | Scenario: Testbot - Intersection | ||||||
|     Given the node map |     Given the node map | ||||||
|         |   | e |   | |         """ | ||||||
|         | b | a | d | |           e | ||||||
|         |   | c |   | |         b a d | ||||||
|  |           c | ||||||
|  |         """ | ||||||
| 
 | 
 | ||||||
|     And the ways |     And the ways | ||||||
|         | nodes | highway | oneway | |         | nodes | highway | oneway | | ||||||
| @ -213,11 +225,13 @@ To guarantee discovery, use: | |||||||
| ``` | ``` | ||||||
| Scenario: Testbot - Intersection | Scenario: Testbot - Intersection | ||||||
|     Given the node map |     Given the node map | ||||||
|         |   |   | e |   |   | |         """ | ||||||
|         |   |   | 4 |   |   | |             e | ||||||
|         | b | 1 | a | 3 | d | |             4 | ||||||
|         |   |   | 2 |   |   | |         b 1 a 3 d | ||||||
|         |   |   | c |   |   | |             2 | ||||||
|  |             c | ||||||
|  |         """ | ||||||
| 
 | 
 | ||||||
|     And the ways |     And the ways | ||||||
|         | nodes | highway | oneway | |         | nodes | highway | oneway | | ||||||
|  | |||||||
| @ -7,9 +7,11 @@ Feature: Bike - Squares and other areas | |||||||
|     @square |     @square | ||||||
|     Scenario: Bike - Route along edge of a squares |     Scenario: Bike - Route along edge of a squares | ||||||
|         Given the node map |         Given the node map | ||||||
|             | x |   | |             """ | ||||||
|             | a | b | |             x | ||||||
|             | d | c | |             a b | ||||||
|  |             d c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | area | highway     | |             | nodes | area | highway     | | ||||||
| @ -30,9 +32,11 @@ Feature: Bike - Squares and other areas | |||||||
|     @building |     @building | ||||||
|     Scenario: Bike - Don't route on buildings |     Scenario: Bike - Don't route on buildings | ||||||
|         Given the node map |         Given the node map | ||||||
|             | x |   | |             """ | ||||||
|             | a | b | |             x | ||||||
|             | d | c | |             a b | ||||||
|  |             d c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | area | building | access | |             | nodes | highway | area | building | access | | ||||||
| @ -53,9 +57,11 @@ Feature: Bike - Squares and other areas | |||||||
|     @parking |     @parking | ||||||
|     Scenario: Bike - parking areas |     Scenario: Bike - parking areas | ||||||
|         Given the node map |         Given the node map | ||||||
|             | e |   |   | f | |             """ | ||||||
|             | x | a | b | y | |             e     f | ||||||
|             |   | d | c |   | |             x a b y | ||||||
|  |               d c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | amenity | |             | nodes | highway | amenity | | ||||||
| @ -81,8 +87,10 @@ Feature: Bike - Squares and other areas | |||||||
|     @train @platform |     @train @platform | ||||||
|     Scenario: Bike - railway platforms |     Scenario: Bike - railway platforms | ||||||
|         Given the node map |         Given the node map | ||||||
|             | x | a | b | y | |             """ | ||||||
|             |   | d | c |   | |             x a b y | ||||||
|  |               d c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | railway  | |             | nodes | highway | railway  | | ||||||
|  | |||||||
| @ -6,9 +6,11 @@ Feature: Bicycle - Handle cycling | |||||||
| 
 | 
 | ||||||
|     Scenario: Bicycle - Use a ferry route |     Scenario: Bicycle - Use a ferry route | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c |   |   | |             """ | ||||||
|             |   |   | d |   |   | |             a b c | ||||||
|             |   |   | e | f | g | |                 d | ||||||
|  |                 e f g | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | bridge  | bicycle | |             | nodes | highway | bridge  | bicycle | | ||||||
| @ -29,9 +31,11 @@ Feature: Bicycle - Handle cycling | |||||||
| 
 | 
 | ||||||
|     Scenario: Bicycle - Properly handle durations |     Scenario: Bicycle - Properly handle durations | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c |   |   | |             """ | ||||||
|             |   |   | d |   |   | |             a b c | ||||||
|             |   |   | e | f | g | |                 d | ||||||
|  |                 e f g | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | bridge  | duration | |             | nodes | highway | bridge  | duration | | ||||||
|  | |||||||
| @ -6,10 +6,12 @@ Feature: Bike - Destination only, no passing through | |||||||
| 
 | 
 | ||||||
|     Scenario: Bike - Destination only street |     Scenario: Bike - Destination only street | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   |   |   | e | |             """ | ||||||
|             |   | b | c | d |   | |             a       e | ||||||
|             |   |   |   |   |   | |               b c d | ||||||
|             | x |   |   |   | y | | 
 | ||||||
|  |             x       y | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | access      | |             | nodes | access      | | ||||||
| @ -31,10 +33,12 @@ Feature: Bike - Destination only, no passing through | |||||||
| 
 | 
 | ||||||
|     Scenario: Bike - Destination only street |     Scenario: Bike - Destination only street | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   |   |   | e | |             """ | ||||||
|             |   | b | c | d |   | |             a       e | ||||||
|             |   |   |   |   |   | |               b c d | ||||||
|             | x |   |   |   | y | | 
 | ||||||
|  |             x       y | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | access      | |             | nodes | access      | | ||||||
| @ -57,9 +61,11 @@ Feature: Bike - Destination only, no passing through | |||||||
| 
 | 
 | ||||||
|     Scenario: Bike - Routing inside a destination only area |     Scenario: Bike - Routing inside a destination only area | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | c |   | e | |             """ | ||||||
|             |   | b |   | d |   | |             a   c   e | ||||||
|             | x |   |   |   | y | |               b   d | ||||||
|  |             x       y | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | access      | |             | nodes | access      | | ||||||
|  | |||||||
| @ -6,9 +6,11 @@ Feature: Bike - Handle ferry routes | |||||||
| 
 | 
 | ||||||
|     Scenario: Bike - Ferry route |     Scenario: Bike - Ferry route | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c |   |   | |             """ | ||||||
|             |   |   | d |   |   | |             a b c | ||||||
|             |   |   | e | f | g | |                 d | ||||||
|  |                 e f g | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | route | bicycle | |             | nodes | highway | route | bicycle | | ||||||
| @ -29,10 +31,12 @@ Feature: Bike - Handle ferry routes | |||||||
| 
 | 
 | ||||||
|     Scenario: Bike - Ferry duration, single node |     Scenario: Bike - Ferry duration, single node | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | d | |             """ | ||||||
|             |   |   | e | f | |             a b c d | ||||||
|             |   |   | g | h | |                 e f | ||||||
|             |   |   | i | j | |                 g h | ||||||
|  |                 i j | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | route | bicycle | duration | |             | nodes | highway | route | bicycle | duration | | ||||||
| @ -48,8 +52,10 @@ Feature: Bike - Handle ferry routes | |||||||
| 
 | 
 | ||||||
|     Scenario: Bike - Ferry duration, multiple nodes |     Scenario: Bike - Ferry duration, multiple nodes | ||||||
|         Given the node map |         Given the node map | ||||||
|             | x |   |   |   |   | y | |             """ | ||||||
|             |   | a | b | c | d |   | |             x         y | ||||||
|  |               a b c d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | route | bicycle | duration | |             | nodes | highway | route | bicycle | duration | | ||||||
|  | |||||||
| @ -40,7 +40,9 @@ Feature: Bike - Max speed restrictions | |||||||
| 
 | 
 | ||||||
|     Scenario: Bike - Do not use maxspeed when higher that way type speed |     Scenario: Bike - Do not use maxspeed when higher that way type speed | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | |             """ | ||||||
|  |             a b c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway     | maxspeed | |             | nodes | highway     | maxspeed | | ||||||
|  | |||||||
| @ -6,8 +6,10 @@ Feature: Bike - Mode flag | |||||||
| 
 | 
 | ||||||
|     Scenario: Bike - Mode when using a ferry |     Scenario: Bike - Mode when using a ferry | ||||||
|     	Given the node map |     	Given the node map | ||||||
|     	 | a | b |   | |     	 """ | ||||||
|     	 |   | c | d | |     	 a b | ||||||
|  |     	   c d | ||||||
|  |     	 """ | ||||||
| 
 | 
 | ||||||
|     	And the ways |     	And the ways | ||||||
|     	 | nodes | highway | route | duration | |     	 | nodes | highway | route | duration | | ||||||
| @ -26,8 +28,10 @@ Feature: Bike - Mode flag | |||||||
| 
 | 
 | ||||||
|      Scenario: Bike - Mode when using a train |      Scenario: Bike - Mode when using a train | ||||||
|      	Given the node map |      	Given the node map | ||||||
|      	 | a | b |   | |      	 """ | ||||||
|      	 |   | c | d | |      	 a b | ||||||
|  |      	   c d | ||||||
|  |      	 """ | ||||||
| 
 | 
 | ||||||
|      	And the ways |      	And the ways | ||||||
|      	 | nodes | highway | railway | bicycle | |      	 | nodes | highway | railway | bicycle | | ||||||
| @ -46,8 +50,10 @@ Feature: Bike - Mode flag | |||||||
| 
 | 
 | ||||||
|      Scenario: Bike - Mode when pushing bike against oneways |      Scenario: Bike - Mode when pushing bike against oneways | ||||||
|      	Given the node map |      	Given the node map | ||||||
|      	 | a | b | e | |      	 """ | ||||||
|      	 | f | c | d | |      	 a b e | ||||||
|  |      	 f c d | ||||||
|  |      	 """ | ||||||
| 
 | 
 | ||||||
|      	And the ways |      	And the ways | ||||||
|      	 | nodes | highway | oneway | |      	 | nodes | highway | oneway | | ||||||
| @ -69,8 +75,10 @@ Feature: Bike - Mode flag | |||||||
| 
 | 
 | ||||||
|      Scenario: Bike - Mode when pushing on pedestrain streets |      Scenario: Bike - Mode when pushing on pedestrain streets | ||||||
|      	Given the node map |      	Given the node map | ||||||
|      	 | a | b |   | |      	 """ | ||||||
|      	 |   | c | d | |      	 a b | ||||||
|  |      	   c d | ||||||
|  |      	 """ | ||||||
| 
 | 
 | ||||||
|      	And the ways |      	And the ways | ||||||
|      	 | nodes | highway    | |      	 | nodes | highway    | | ||||||
| @ -89,8 +97,10 @@ Feature: Bike - Mode flag | |||||||
| 
 | 
 | ||||||
|      Scenario: Bike - Mode when pushing on pedestrain areas |      Scenario: Bike - Mode when pushing on pedestrain areas | ||||||
|      	Given the node map |      	Given the node map | ||||||
|      	 | a | b |   |   | |      	 """ | ||||||
|      	 |   | c | d | f | |      	 a b | ||||||
|  |      	   c d f | ||||||
|  |      	 """ | ||||||
| 
 | 
 | ||||||
|      	And the ways |      	And the ways | ||||||
|      	 | nodes | highway    | area | |      	 | nodes | highway    | area | | ||||||
| @ -109,8 +119,10 @@ Feature: Bike - Mode flag | |||||||
| 
 | 
 | ||||||
|      Scenario: Bike - Mode when pushing on steps |      Scenario: Bike - Mode when pushing on steps | ||||||
|      	Given the node map |      	Given the node map | ||||||
|      	 | a | b |   |   | |      	 """ | ||||||
|      	 |   | c | d | f | |      	 a b | ||||||
|  |      	   c d f | ||||||
|  |      	 """ | ||||||
| 
 | 
 | ||||||
|      	And the ways |      	And the ways | ||||||
|     	 | nodes | highway | |     	 | nodes | highway | | ||||||
| @ -129,8 +141,10 @@ Feature: Bike - Mode flag | |||||||
| 
 | 
 | ||||||
|      Scenario: Bike - Mode when bicycle=dismount |      Scenario: Bike - Mode when bicycle=dismount | ||||||
|      	Given the node map |      	Given the node map | ||||||
|      	 | a | b |   |   | |      	 """ | ||||||
|      	 |   | c | d | f | |      	 a b | ||||||
|  |      	   c d f | ||||||
|  |      	 """ | ||||||
| 
 | 
 | ||||||
|      	And the ways |      	And the ways | ||||||
|     	 | nodes | highway | bicycle  | |     	 | nodes | highway | bicycle  | | ||||||
| @ -149,7 +163,9 @@ Feature: Bike - Mode flag | |||||||
| 
 | 
 | ||||||
|     Scenario: Bicycle - Modes when starting on forward oneway |     Scenario: Bicycle - Modes when starting on forward oneway | ||||||
|         Given the node map |         Given the node map | ||||||
|          | a | b | |          """ | ||||||
|  |          a b | ||||||
|  |          """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|          | nodes | oneway | |          | nodes | oneway | | ||||||
| @ -162,7 +178,9 @@ Feature: Bike - Mode flag | |||||||
| 
 | 
 | ||||||
|     Scenario: Bicycle - Modes when starting on reverse oneway |     Scenario: Bicycle - Modes when starting on reverse oneway | ||||||
|         Given the node map |         Given the node map | ||||||
|          | a | b | |          """ | ||||||
|  |          a b | ||||||
|  |          """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|          | nodes | oneway | |          | nodes | oneway | | ||||||
|  | |||||||
| @ -6,8 +6,10 @@ Feature: Bike - Street names in instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Bike - A named street |     Scenario: Bike - A named street | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | |             """ | ||||||
|             |   | c | |             a b | ||||||
|  |               c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name     | ref | |             | nodes | name     | ref | | ||||||
| @ -21,7 +23,9 @@ Feature: Bike - Street names in instructions | |||||||
|     @unnamed |     @unnamed | ||||||
|     Scenario: Bike - Use way type to describe unnamed ways |     Scenario: Bike - Use way type to describe unnamed ways | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | d | |             """ | ||||||
|  |             a b c d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway  | name | |             | nodes | highway  | name | | ||||||
|  | |||||||
| @ -18,8 +18,10 @@ Feature: Bike - Oneway streets | |||||||
| 
 | 
 | ||||||
|     Scenario: Bike - Around the Block |     Scenario: Bike - Around the Block | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | a | b |   | |             """ | ||||||
|             | f | d | c | e | |               a b | ||||||
|  |             f d c e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | foot | |             | nodes | oneway | foot | | ||||||
| @ -117,7 +119,9 @@ Feature: Bike - Oneway streets | |||||||
| 
 | 
 | ||||||
|     Scenario: Bike - Two consecutive oneways |     Scenario: Bike - Two consecutive oneways | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b |   | c | |             """ | ||||||
|  |             a b   c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
|  | |||||||
| @ -35,9 +35,11 @@ Feature: Bike - Accessability of different way types | |||||||
|     @square |     @square | ||||||
|     Scenario: Bike - Push bikes on pedestrian areas |     Scenario: Bike - Push bikes on pedestrian areas | ||||||
|         Given the node map |         Given the node map | ||||||
|             | x |   | |             """ | ||||||
|             | a | b | |             x | ||||||
|             | d | c | |             a b | ||||||
|  |             d c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | area | highway    | |             | nodes | area | highway    | | ||||||
| @ -87,8 +89,10 @@ Feature: Bike - Accessability of different way types | |||||||
| 
 | 
 | ||||||
|     Scenario: Bike - Instructions when pushing bike on oneways |     Scenario: Bike - Instructions when pushing bike on oneways | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | e | |             """ | ||||||
|             | f | c | d | |             a b e | ||||||
|  |             f c d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | oneway | |             | nodes | highway | oneway | | ||||||
| @ -107,8 +111,10 @@ Feature: Bike - Accessability of different way types | |||||||
| 
 | 
 | ||||||
|     Scenario: Bike - Instructions when pushing bike on footway/pedestrian, etc. |     Scenario: Bike - Instructions when pushing bike on footway/pedestrian, etc. | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b |   | |             """ | ||||||
|             |   | c | d | |             a b | ||||||
|  |               c d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | |             | nodes | highway | | ||||||
|  | |||||||
| @ -6,7 +6,9 @@ Feature: Bike - Way ref | |||||||
| 
 | 
 | ||||||
|     Scenario: Bike - Way with both name and ref |     Scenario: Bike - Way with both name and ref | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | |             """ | ||||||
|  |             a b | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name         | ref | |             | nodes | name         | ref | | ||||||
| @ -18,7 +20,9 @@ Feature: Bike - Way ref | |||||||
| 
 | 
 | ||||||
|     Scenario: Bike - Way with only ref |     Scenario: Bike - Way with only ref | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | |             """ | ||||||
|  |             a b | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name | ref | |             | nodes | name | ref | | ||||||
| @ -30,7 +34,9 @@ Feature: Bike - Way ref | |||||||
| 
 | 
 | ||||||
|     Scenario: Bike - Way with only name |     Scenario: Bike - Way with only name | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | |             """ | ||||||
|  |             a b | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name         | |             | nodes | name         | | ||||||
|  | |||||||
| @ -9,9 +9,11 @@ Feature: Bike - Turn restrictions | |||||||
|     @no_turning |     @no_turning | ||||||
|     Scenario: Bike - No left turn |     Scenario: Bike - No left turn | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | n |   | |             """ | ||||||
|             | w | j | e | |               n | ||||||
|             |   | s |   | |             w j e | ||||||
|  |               s | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | foot | |             | nodes | oneway | foot | | ||||||
| @ -33,9 +35,11 @@ Feature: Bike - Turn restrictions | |||||||
|     @no_turning |     @no_turning | ||||||
|     Scenario: Bike - No right turn |     Scenario: Bike - No right turn | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | n |   | |             """ | ||||||
|             | w | j | e | |               n | ||||||
|             |   | s |   | |             w j e | ||||||
|  |               s | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | foot | |             | nodes | oneway | foot | | ||||||
| @ -57,9 +61,11 @@ Feature: Bike - Turn restrictions | |||||||
|     @no_turning |     @no_turning | ||||||
|     Scenario: Bike - No u-turn |     Scenario: Bike - No u-turn | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | n |   | |             """ | ||||||
|             | w | j | e | |               n | ||||||
|             |   | s |   | |             w j e | ||||||
|  |               s | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | foot | |             | nodes | oneway | foot | | ||||||
| @ -81,9 +87,11 @@ Feature: Bike - Turn restrictions | |||||||
|     @no_turning |     @no_turning | ||||||
|     Scenario: Bike - Handle any no_* relation |     Scenario: Bike - Handle any no_* relation | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | n |   | |             """ | ||||||
|             | w | j | e | |               n | ||||||
|             |   | s |   | |             w j e | ||||||
|  |               s | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | foot | |             | nodes | oneway | foot | | ||||||
| @ -105,9 +113,11 @@ Feature: Bike - Turn restrictions | |||||||
|     @only_turning |     @only_turning | ||||||
|     Scenario: Bike - Only left turn |     Scenario: Bike - Only left turn | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | n |   | |             """ | ||||||
|             | w | j | e | |               n | ||||||
|             |   | s |   | |             w j e | ||||||
|  |               s | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | foot | |             | nodes | oneway | foot | | ||||||
| @ -129,9 +139,11 @@ Feature: Bike - Turn restrictions | |||||||
|     @only_turning |     @only_turning | ||||||
|     Scenario: Bike - Only right turn |     Scenario: Bike - Only right turn | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | n |   | |             """ | ||||||
|             | w | j | e | |               n | ||||||
|             |   | s |   | |             w j e | ||||||
|  |               s | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | foot | |             | nodes | oneway | foot | | ||||||
| @ -153,9 +165,11 @@ Feature: Bike - Turn restrictions | |||||||
|     @only_turning |     @only_turning | ||||||
|     Scenario: Bike - Only straight on |     Scenario: Bike - Only straight on | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | n |   | |             """ | ||||||
|             | w | j | e | |               n | ||||||
|             |   | s |   | |             w j e | ||||||
|  |               s | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | foot | |             | nodes | oneway | foot | | ||||||
| @ -177,9 +191,11 @@ Feature: Bike - Turn restrictions | |||||||
|     @no_turning |     @no_turning | ||||||
|     Scenario: Bike - Handle any only_* restriction |     Scenario: Bike - Handle any only_* restriction | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | n |   | |             """ | ||||||
|             | w | j | e | |               n | ||||||
|             |   | s |   | |             w j e | ||||||
|  |               s | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | foot | |             | nodes | oneway | foot | | ||||||
| @ -201,9 +217,11 @@ Feature: Bike - Turn restrictions | |||||||
|     @except |     @except | ||||||
|     Scenario: Bike - Except tag and on no_ restrictions |     Scenario: Bike - Except tag and on no_ restrictions | ||||||
|         Given the node map |         Given the node map | ||||||
|             | b | x | c | |             """ | ||||||
|             | a | j | d | |             b x c | ||||||
|             |   | s |   | |             a j d | ||||||
|  |               s | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | foot | |             | nodes | oneway | foot | | ||||||
| @ -231,9 +249,11 @@ Feature: Bike - Turn restrictions | |||||||
|     @except |     @except | ||||||
|     Scenario: Bike - Except tag and on only_ restrictions |     Scenario: Bike - Except tag and on only_ restrictions | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b | |             """ | ||||||
|             |   | j |   | |             a   b | ||||||
|             |   | s |   | |               j | ||||||
|  |               s | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | foot | |             | nodes | oneway | foot | | ||||||
| @ -253,12 +273,14 @@ Feature: Bike - Turn restrictions | |||||||
|     @except |     @except | ||||||
|     Scenario: Bike - Multiple except tag values |     Scenario: Bike - Multiple except tag values | ||||||
|         Given the node map |         Given the node map | ||||||
|             | s | j | a | |             """ | ||||||
|             |   |   | b | |             s j a | ||||||
|             |   |   | c | |                 b | ||||||
|             |   |   | d | |                 c | ||||||
|             |   |   | e | |                 d | ||||||
|             |   |   | f | |                 e | ||||||
|  |                 f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | foot | |             | nodes | oneway | foot | | ||||||
|  | |||||||
| @ -14,8 +14,10 @@ Feature: Bike - Stop areas for public transport | |||||||
| 
 | 
 | ||||||
|     Scenario: Bike - railway platforms |     Scenario: Bike - railway platforms | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | d | |             """ | ||||||
|             |   | s | t |   | |             a b c d | ||||||
|  |               s t | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the nodes |         And the nodes | ||||||
|             | node | public_transport | |             | node | public_transport | | ||||||
|  | |||||||
| @ -41,8 +41,10 @@ Feature: Bike - Surfaces | |||||||
| 
 | 
 | ||||||
|     Scenario: Bicycle - Surfaces should not increase speed when pushing bikes |     Scenario: Bicycle - Surfaces should not increase speed when pushing bikes | ||||||
|       Given the node map |       Given the node map | ||||||
|          | a | b | |          """ | ||||||
|          | c | d | |          a b | ||||||
|  |          c d | ||||||
|  |          """ | ||||||
| 
 | 
 | ||||||
|       And the ways |       And the ways | ||||||
|         | nodes | highway | oneway | surface | |         | nodes | highway | oneway | surface | | ||||||
|  | |||||||
| @ -7,9 +7,11 @@ Feature: Turn Penalties | |||||||
|     Scenario: Bike - turns should incur a delay that depend on the angle |     Scenario: Bike - turns should incur a delay that depend on the angle | ||||||
| 
 | 
 | ||||||
|         Given the node map |         Given the node map | ||||||
|             | c | d | e | |             """ | ||||||
|             | b | j | f | |             c d e | ||||||
|             | a | s | g | |             b j f | ||||||
|  |             a s g | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
|  | |||||||
| @ -8,7 +8,9 @@ OSRM will use 4/5 of the projected free-flow speed. | |||||||
| 
 | 
 | ||||||
|     Scenario: Car - Advisory speed overwrites maxspeed |     Scenario: Car - Advisory speed overwrites maxspeed | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | |             """ | ||||||
|  |             a b c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway       | maxspeed | maxspeed:advisory | |             | nodes | highway       | maxspeed | maxspeed:advisory | | ||||||
| @ -22,7 +24,9 @@ OSRM will use 4/5 of the projected free-flow speed. | |||||||
| 
 | 
 | ||||||
|     Scenario: Car - Advisory speed overwrites forward maxspeed |     Scenario: Car - Advisory speed overwrites forward maxspeed | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | |             """ | ||||||
|  |             a b c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway       | maxspeed:forward | maxspeed:advisory:forward | |             | nodes | highway       | maxspeed:forward | maxspeed:advisory:forward | | ||||||
| @ -36,7 +40,9 @@ OSRM will use 4/5 of the projected free-flow speed. | |||||||
| 
 | 
 | ||||||
|     Scenario: Car - Advisory speed overwrites backwards maxspeed |     Scenario: Car - Advisory speed overwrites backwards maxspeed | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | |             """ | ||||||
|  |             a b c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway       | maxspeed:backward | maxspeed:advisory:backward | |             | nodes | highway       | maxspeed:backward | maxspeed:advisory:backward | | ||||||
| @ -50,7 +56,9 @@ OSRM will use 4/5 of the projected free-flow speed. | |||||||
| 
 | 
 | ||||||
|     Scenario: Car - Advisory speed overwrites backwards maxspeed |     Scenario: Car - Advisory speed overwrites backwards maxspeed | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | d | |             """ | ||||||
|  |             a b c d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway       | maxspeed:backward | maxspeed:advisory:backward | |             | nodes | highway       | maxspeed:backward | maxspeed:advisory:backward | | ||||||
| @ -65,7 +73,9 @@ OSRM will use 4/5 of the projected free-flow speed. | |||||||
| 
 | 
 | ||||||
|     Scenario: Car - Directional advisory speeds play nice with eachother |     Scenario: Car - Directional advisory speeds play nice with eachother | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | |             """ | ||||||
|  |             a b c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway       | maxspeed:advisory | maxspeed:advisory:forward | maxspeed:advisory:backward | |             | nodes | highway       | maxspeed:advisory | maxspeed:advisory:forward | maxspeed:advisory:backward | | ||||||
|  | |||||||
| @ -6,9 +6,11 @@ Feature: Car - Handle driving | |||||||
| 
 | 
 | ||||||
|     Scenario: Car - Use a ferry route |     Scenario: Car - Use a ferry route | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c |   |   | |             """ | ||||||
|             |   |   | d |   |   | |             a b c | ||||||
|             |   |   | e | f | g | |                 d | ||||||
|  |                 e f g | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | bridge  | bicycle | |             | nodes | highway | bridge  | bicycle | | ||||||
| @ -29,9 +31,11 @@ Feature: Car - Handle driving | |||||||
| 
 | 
 | ||||||
|     Scenario: Car - Properly handle durations |     Scenario: Car - Properly handle durations | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c |   |   | |             """ | ||||||
|             |   |   | d |   |   | |             a b c | ||||||
|             |   |   | e | f | g | |                 d | ||||||
|  |                 e f g | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | bridge  | duration | |             | nodes | highway | bridge  | duration | | ||||||
|  | |||||||
| @ -6,10 +6,12 @@ Feature: Car - Destination only, no passing through | |||||||
| 
 | 
 | ||||||
|     Scenario: Car - Destination only street |     Scenario: Car - Destination only street | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   |   |   | e | |             """ | ||||||
|             |   | b | c | d |   | |             a       e | ||||||
|             |   |   |   |   |   | |               b c d | ||||||
|             | x |   |   |   | y | | 
 | ||||||
|  |             x       y | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | access      | |             | nodes | access      | | ||||||
| @ -31,10 +33,12 @@ Feature: Car - Destination only, no passing through | |||||||
| 
 | 
 | ||||||
|     Scenario: Car - Destination only street |     Scenario: Car - Destination only street | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   |   |   | e | |             """ | ||||||
|             |   | b | c | d |   | |             a       e | ||||||
|             |   |   |   |   |   | |               b c d | ||||||
|             | x |   |   |   | y | | 
 | ||||||
|  |             x       y | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | access      | |             | nodes | access      | | ||||||
| @ -57,9 +61,11 @@ Feature: Car - Destination only, no passing through | |||||||
| 
 | 
 | ||||||
|     Scenario: Car - Routing inside a destination only area |     Scenario: Car - Routing inside a destination only area | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | c |   | e | |             """ | ||||||
|             |   | b |   | d |   | |             a   c   e | ||||||
|             | x |   |   |   | y | |               b   d | ||||||
|  |             x       y | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | access      | |             | nodes | access      | | ||||||
|  | |||||||
| @ -6,9 +6,11 @@ Feature: Car - Handle ferry routes | |||||||
| 
 | 
 | ||||||
|     Scenario: Car - Use a ferry route |     Scenario: Car - Use a ferry route | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c |   |   | |             """ | ||||||
|             |   |   | d |   |   | |             a b c | ||||||
|             |   |   | e | f | g | |                 d | ||||||
|  |                 e f g | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | route | bicycle | |             | nodes | highway | route | bicycle | | ||||||
| @ -29,9 +31,11 @@ Feature: Car - Handle ferry routes | |||||||
| 
 | 
 | ||||||
|     Scenario: Car - Properly handle simple durations |     Scenario: Car - Properly handle simple durations | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c |   |   | |             """ | ||||||
|             |   |   | d |   |   | |             a b c | ||||||
|             |   |   | e | f | g | |                 d | ||||||
|  |                 e f g | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | route | duration | |             | nodes | highway | route | duration | | ||||||
| @ -48,9 +52,11 @@ Feature: Car - Handle ferry routes | |||||||
| 
 | 
 | ||||||
|     Scenario: Car - Properly handle ISO 8601 durations |     Scenario: Car - Properly handle ISO 8601 durations | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c |   |   | |             """ | ||||||
|             |   |   | d |   |   | |             a b c | ||||||
|             |   |   | e | f | g | |                 d | ||||||
|  |                 e f g | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | route | duration | |             | nodes | highway | route | duration | | ||||||
|  | |||||||
| @ -9,8 +9,10 @@ Feature: Car - Speed on links | |||||||
| 
 | 
 | ||||||
|     Scenario: Car - Use motorway_link when reasonable |     Scenario: Car - Use motorway_link when reasonable | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | e |   |   |   | f |   |   | |             """ | ||||||
|             | x | a | b |   |   |   | c | d | y | |                 e       f | ||||||
|  |             x a b       c d y | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway       | |             | nodes | highway       | | ||||||
| @ -30,8 +32,10 @@ Feature: Car - Speed on links | |||||||
| 
 | 
 | ||||||
|     Scenario: Car - Use trunk_link when reasonable |     Scenario: Car - Use trunk_link when reasonable | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | e |   |   |   | f |   |   | |             """ | ||||||
|             | x | a | b |   |   |   | c | d | y | |                 e       f | ||||||
|  |             x a b       c d y | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway      | |             | nodes | highway      | | ||||||
| @ -50,8 +54,10 @@ Feature: Car - Speed on links | |||||||
| 
 | 
 | ||||||
|     Scenario: Car - Use primary_link when reasonable |     Scenario: Car - Use primary_link when reasonable | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | e |   |   |   | f |   |   | |             """ | ||||||
|             | x | a | b |   |   |   | c | d | y | |                 e       f | ||||||
|  |             x a b       c d y | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway        | |             | nodes | highway        | | ||||||
| @ -70,8 +76,10 @@ Feature: Car - Speed on links | |||||||
| 
 | 
 | ||||||
|     Scenario: Car - Use secondary_link when reasonable |     Scenario: Car - Use secondary_link when reasonable | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | e |   |   |   | f |   |   | |             """ | ||||||
|             | x | a | b |   |   |   | c | d | y | |                 e       f | ||||||
|  |             x a b       c d y | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway          | |             | nodes | highway          | | ||||||
| @ -91,8 +99,10 @@ Feature: Car - Speed on links | |||||||
| 
 | 
 | ||||||
|     Scenario: Car - Use tertiary_link when reasonable |     Scenario: Car - Use tertiary_link when reasonable | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | e |   |   |   | f |   |   | |             """ | ||||||
|             | x | a | b |   |   |   | c | d | y | |                 e       f | ||||||
|  |             x a b       c d y | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway         | |             | nodes | highway         | | ||||||
|  | |||||||
| @ -8,7 +8,9 @@ OSRM will use 4/5 of the projected free-flow speed. | |||||||
| 
 | 
 | ||||||
|     Scenario: Car - Respect maxspeeds when lower that way type speed |     Scenario: Car - Respect maxspeeds when lower that way type speed | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | d | e | f | g | |             """ | ||||||
|  |             a b c d e f g | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | maxspeed    | |             | nodes | highway | maxspeed    | | ||||||
| @ -30,7 +32,9 @@ OSRM will use 4/5 of the projected free-flow speed. | |||||||
| 
 | 
 | ||||||
|     Scenario: Car - Do not ignore maxspeed when higher than way speed |     Scenario: Car - Do not ignore maxspeed when higher than way speed | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | d | |             """ | ||||||
|  |             a b c d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway       | maxspeed | |             | nodes | highway       | maxspeed | | ||||||
|  | |||||||
| @ -5,8 +5,10 @@ Feature: Car - Mode flag | |||||||
| 
 | 
 | ||||||
|     Scenario: Car - Mode when using a ferry |     Scenario: Car - Mode when using a ferry | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b |   | |             """ | ||||||
|             |   | c | d | |             a b | ||||||
|  |               c d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | route | duration | |             | nodes | highway | route | duration | | ||||||
| @ -25,7 +27,9 @@ Feature: Car - Mode flag | |||||||
| 
 | 
 | ||||||
|     Scenario: Car - Snapping when using a ferry |     Scenario: Car - Snapping when using a ferry | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b |   | c | d |   | e | f | |             """ | ||||||
|  |             a b   c d   e f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | route | duration | |             | nodes | highway | route | duration | | ||||||
|  | |||||||
| @ -6,8 +6,10 @@ Feature: Car - Street names in instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Car - A named street |     Scenario: Car - A named street | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | |             """ | ||||||
|             |   | c | |             a b | ||||||
|  |               c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name     | ref | |             | nodes | name     | ref | | ||||||
| @ -20,9 +22,11 @@ Feature: Car - Street names in instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Car - A named street with pronunciation |     Scenario: Car - A named street with pronunciation | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | d | |             """ | ||||||
|             |   | 1 |   | |             a b d | ||||||
|             |   | c |   | |               1 | ||||||
|  |               c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name     |name:pronunciation  | ref | |             | nodes | name     |name:pronunciation  | ref | | ||||||
| @ -38,9 +42,11 @@ Feature: Car - Street names in instructions | |||||||
|     # See #2860 |     # See #2860 | ||||||
|     Scenario: Car - same street name but different pronunciation |     Scenario: Car - same street name but different pronunciation | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | |             """ | ||||||
|             |   | d |   | |             a b c | ||||||
|             |   | e |   | |               d | ||||||
|  |               e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name       | name:pronunciation | |             | nodes | name       | name:pronunciation | | ||||||
| @ -55,7 +61,9 @@ Feature: Car - Street names in instructions | |||||||
|     @todo |     @todo | ||||||
|     Scenario: Car - Use way type to describe unnamed ways |     Scenario: Car - Use way type to describe unnamed ways | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | d | |             """ | ||||||
|  |             a b c d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway     | name | |             | nodes | highway     | name | | ||||||
| @ -68,16 +76,18 @@ Feature: Car - Street names in instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Inner city expressway with on road |     Scenario: Inner city expressway with on road | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b |   |   |   | c | g | |             """ | ||||||
|             |   |   |   |   | f |   |   | |             a b       c g | ||||||
|             |   |   |   |   |   |   |   | |                     f | ||||||
|             |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   | d |   | | 
 | ||||||
|             |   |   |   |   |   |   |   | |                       d | ||||||
|             |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   | e |   | | 
 | ||||||
|  |                       e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway      | name  | name:pronunciation | |             | nodes | highway      | name  | name:pronunciation | | ||||||
|  | |||||||
| @ -35,8 +35,10 @@ Feature: Car - Oneway streets | |||||||
| 
 | 
 | ||||||
|     Scenario: Car - Around the Block |     Scenario: Car - Around the Block | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | a | b |   | |             """ | ||||||
|             | f | d | c | e | |               a b | ||||||
|  |             f d c e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
| @ -70,7 +72,9 @@ Feature: Car - Oneway streets | |||||||
| 
 | 
 | ||||||
|     Scenario: Car - Two consecutive oneways |     Scenario: Car - Two consecutive oneways | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b |   | c | |             """ | ||||||
|  |             a b   c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
|  | |||||||
| @ -10,9 +10,11 @@ Feature: Car - Turn restrictions | |||||||
|     @no_turning |     @no_turning | ||||||
|     Scenario: Car - No left turn |     Scenario: Car - No left turn | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | n |   | |             """ | ||||||
|             | w | j | e | |               n | ||||||
|             |   | s |   | |             w j e | ||||||
|  |               s | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
| @ -34,9 +36,11 @@ Feature: Car - Turn restrictions | |||||||
|     @no_turning |     @no_turning | ||||||
|     Scenario: Car - No straight on |     Scenario: Car - No straight on | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | j | d | e | |             """ | ||||||
|             | v |   |   |   | z | |             a b j d e | ||||||
|             |   | w | x | y |   | |             v       z | ||||||
|  |               w x y | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
| @ -62,9 +66,11 @@ Feature: Car - Turn restrictions | |||||||
|     @no_turning |     @no_turning | ||||||
|     Scenario: Car - No right turn |     Scenario: Car - No right turn | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | n |   | |             """ | ||||||
|             | w | j | e | |               n | ||||||
|             |   | s |   | |             w j e | ||||||
|  |               s | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
| @ -86,9 +92,11 @@ Feature: Car - Turn restrictions | |||||||
|     @no_turning |     @no_turning | ||||||
|     Scenario: Car - No u-turn |     Scenario: Car - No u-turn | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | n |   | |             """ | ||||||
|             | w | j | e | |               n | ||||||
|             |   | s |   | |             w j e | ||||||
|  |               s | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
| @ -110,9 +118,11 @@ Feature: Car - Turn restrictions | |||||||
|     @no_turning |     @no_turning | ||||||
|     Scenario: Car - Handle any no_* relation |     Scenario: Car - Handle any no_* relation | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | n |   | |             """ | ||||||
|             | w | j | e | |               n | ||||||
|             |   | s |   | |             w j e | ||||||
|  |               s | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
| @ -134,9 +144,11 @@ Feature: Car - Turn restrictions | |||||||
|     @only_turning |     @only_turning | ||||||
|     Scenario: Car - Only left turn |     Scenario: Car - Only left turn | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | n |   | |             """ | ||||||
|             | w | j | e | |               n | ||||||
|             |   | s |   | |             w j e | ||||||
|  |               s | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
| @ -151,9 +163,11 @@ Feature: Car - Turn restrictions | |||||||
| 
 | 
 | ||||||
|     Scenario: Car - Only right turn, invalid |     Scenario: Car - Only right turn, invalid | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | n |   |   | |             """ | ||||||
|             | w | j | e | r | |               n | ||||||
|             |   | s |   |   | |             w j e r | ||||||
|  |               s | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
| @ -174,9 +188,11 @@ Feature: Car - Turn restrictions | |||||||
|     @only_turning |     @only_turning | ||||||
|     Scenario: Car - Only right turn |     Scenario: Car - Only right turn | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | n |   | |             """ | ||||||
|             | w | j | e | |               n | ||||||
|             |   | s |   | |             w j e | ||||||
|  |               s | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
| @ -198,9 +214,11 @@ Feature: Car - Turn restrictions | |||||||
|     @only_turning |     @only_turning | ||||||
|     Scenario: Car - Only straight on |     Scenario: Car - Only straight on | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | n |   | |             """ | ||||||
|             | w | j | e | |               n | ||||||
|             |   | s |   | |             w j e | ||||||
|  |               s | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
| @ -222,9 +240,11 @@ Feature: Car - Turn restrictions | |||||||
|     @no_turning |     @no_turning | ||||||
|     Scenario: Car - Handle any only_* restriction |     Scenario: Car - Handle any only_* restriction | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | n |   | |             """ | ||||||
|             | w | j | e | |               n | ||||||
|             |   | s |   | |             w j e | ||||||
|  |               s | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
| @ -246,9 +266,11 @@ Feature: Car - Turn restrictions | |||||||
|     @specific |     @specific | ||||||
|     Scenario: Car - :hgv-qualified on a standard turn restriction |     Scenario: Car - :hgv-qualified on a standard turn restriction | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | n |   | |             """ | ||||||
|             | w | j | e | |               n | ||||||
|             |   | s |   | |             w j e | ||||||
|  |               s | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
| @ -270,9 +292,11 @@ Feature: Car - Turn restrictions | |||||||
|     @specific |     @specific | ||||||
|     Scenario: Car - :motorcar-qualified on a standard turn restriction |     Scenario: Car - :motorcar-qualified on a standard turn restriction | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | n |   | |             """ | ||||||
|             | w | j | e | |               n | ||||||
|             |   | s |   | |             w j e | ||||||
|  |               s | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
| @ -294,9 +318,11 @@ Feature: Car - Turn restrictions | |||||||
|     @except |     @except | ||||||
|     Scenario: Car - Except tag and on no_ restrictions |     Scenario: Car - Except tag and on no_ restrictions | ||||||
|         Given the node map |         Given the node map | ||||||
|             | b | x | c | |             """ | ||||||
|             | a | j | d | |             b x c | ||||||
|             |   | s |   | |             a j d | ||||||
|  |               s | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
| @ -324,9 +350,11 @@ Feature: Car - Turn restrictions | |||||||
|     @except |     @except | ||||||
|     Scenario: Car - Except tag and on only_ restrictions |     Scenario: Car - Except tag and on only_ restrictions | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b | |             """ | ||||||
|             |   | j |   | |             a   b | ||||||
|             |   | s |   | |               j | ||||||
|  |               s | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
| @ -346,10 +374,12 @@ Feature: Car - Turn restrictions | |||||||
|     @except |     @except | ||||||
|     Scenario: Car - Several only_ restrictions at the same segment |     Scenario: Car - Several only_ restrictions at the same segment | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   | y |   |   |   |   | |             """ | ||||||
|             | i | j | f | b | x | a | e | g | h | |                     y | ||||||
|             |   |   |   |   |   |   |   |   |   | |             i j f b x a e g h | ||||||
|             |   |   |   | c |   | d |   |   |   | | 
 | ||||||
|  |                   c   d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
| @ -381,13 +411,15 @@ Feature: Car - Turn restrictions | |||||||
|     @except |     @except | ||||||
|     Scenario: Car - two only_ restrictions share same to-way |     Scenario: Car - two only_ restrictions share same to-way | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | e |   |   |   | f |   |   | |             """ | ||||||
|             |   |   |   |   | a |   |   |   |   | |                 e       f | ||||||
|             |   |   |   |   |   |   |   |   |   | |                     a | ||||||
|             |   |   | c |   | x |   | d |   |   | | 
 | ||||||
|             |   |   |   |   | y |   |   |   |   | |                 c   x   d | ||||||
|             |   |   |   |   |   |   |   |   |   | |                     y | ||||||
|             |   |   |   |   | b |   |   |   |   | | 
 | ||||||
|  |                     b | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
| @ -415,13 +447,15 @@ Feature: Car - Turn restrictions | |||||||
|     @except |     @except | ||||||
|     Scenario: Car - two only_ restrictions share same from-way |     Scenario: Car - two only_ restrictions share same from-way | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | e |   |   |   | f |   |   | |             """ | ||||||
|             |   |   |   |   | a |   |   |   |   | |                 e       f | ||||||
|             |   |   |   |   |   |   |   |   |   | |                     a | ||||||
|             |   |   | c |   | x |   | d |   |   | | 
 | ||||||
|             |   |   |   |   | y |   |   |   |   | |                 c   x   d | ||||||
|             |   |   |   |   |   |   |   |   |   | |                     y | ||||||
|             |   |   |   |   | b |   |   |   |   | | 
 | ||||||
|  |                     b | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
| @ -449,9 +483,11 @@ Feature: Car - Turn restrictions | |||||||
|     @specific |     @specific | ||||||
|     Scenario: Car - Ignore unrecognized restriction |     Scenario: Car - Ignore unrecognized restriction | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | n |   | |             """ | ||||||
|             | w | j | e | |               n | ||||||
|             |   | s |   | |             w j e | ||||||
|  |               s | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
|  | |||||||
| @ -6,9 +6,11 @@ Feature: Car - Handle ferryshuttle train routes | |||||||
| 
 | 
 | ||||||
|     Scenario: Car - Use a ferry route |     Scenario: Car - Use a ferry route | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c |   |   |   | |             """ | ||||||
|             |   |   | d |   |   |   | |             a b c | ||||||
|             |   |   | e | f | g | h | |                 d | ||||||
|  |                 e f g h | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | route         | bicycle | |             | nodes | highway | route         | bicycle | | ||||||
|  | |||||||
| @ -8,11 +8,13 @@ Feature: Basic Routing | |||||||
|     @smallest |     @smallest | ||||||
|     Scenario: Summaries when routing on a simple network |     Scenario: Summaries when routing on a simple network | ||||||
|         Given the node map |         Given the node map | ||||||
|             | b |   |   | f | |             """ | ||||||
|             |   |   |   |   | |             b     f | ||||||
|             | c | d |   | g | | 
 | ||||||
|             |   |   |   |   | |             c d   g | ||||||
|             | a |   | e |   | | 
 | ||||||
|  |             a   e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name   | |             | nodes | name   | | ||||||
| @ -30,7 +32,9 @@ Feature: Basic Routing | |||||||
| 
 | 
 | ||||||
|      Scenario: Name Empty |      Scenario: Name Empty | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b |   |   | c | |             """ | ||||||
|  |             a   b     c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name | |             | nodes | name | | ||||||
| @ -43,7 +47,9 @@ Feature: Basic Routing | |||||||
| 
 | 
 | ||||||
|      Scenario: Name Empty But Ref |      Scenario: Name Empty But Ref | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b |   |   | c | |             """ | ||||||
|  |             a   b     c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name | ref | |             | nodes | name | ref | | ||||||
| @ -56,7 +62,9 @@ Feature: Basic Routing | |||||||
| 
 | 
 | ||||||
|      Scenario: Only Refs |      Scenario: Only Refs | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b |   |   | c | |             """ | ||||||
|  |             a   b     c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name | ref | |             | nodes | name | ref | | ||||||
| @ -69,7 +77,9 @@ Feature: Basic Routing | |||||||
| 
 | 
 | ||||||
|      Scenario: Single Ref |      Scenario: Single Ref | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b |   |   | c | |             """ | ||||||
|  |             a   b     c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name | ref | |             | nodes | name | ref | | ||||||
| @ -82,7 +92,9 @@ Feature: Basic Routing | |||||||
| 
 | 
 | ||||||
|      Scenario: Nothing |      Scenario: Nothing | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b |   |   | c | |             """ | ||||||
|  |             a   b     c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name | |             | nodes | name | | ||||||
|  | |||||||
| @ -3,11 +3,33 @@ Feature: Traffic - turn penalties | |||||||
| 
 | 
 | ||||||
|     Background: Evenly spaced grid with multiple intersections |     Background: Evenly spaced grid with multiple intersections | ||||||
|         Given the node map |         Given the node map | ||||||
|             |      | a:1  |      | b:2  |      | |             """ | ||||||
|             | c:3  | d:4  | e:5  | f:6  | g:7  | |               a   b | ||||||
|             |      | h:8  |      | i:9  |      | |             c d e f g | ||||||
|             | j:10 | k:11 | l:12 | m:13 | n:14 | |               h   i | ||||||
|             |      | o:15 |      | p:16 |      | |             j k l m n | ||||||
|  |               o   p | ||||||
|  |             """ | ||||||
|  | 
 | ||||||
|  |         And the nodes | ||||||
|  |             | node | id | | ||||||
|  |             | a    | 1  | | ||||||
|  |             | b    | 2  | | ||||||
|  |             | c    | 3  | | ||||||
|  |             | d    | 4  | | ||||||
|  |             | e    | 5  | | ||||||
|  |             | f    | 6  | | ||||||
|  |             | g    | 7  | | ||||||
|  |             | h    | 8  | | ||||||
|  |             | i    | 9  | | ||||||
|  |             | j    | 10 | | ||||||
|  |             | k    | 11 | | ||||||
|  |             | l    | 12 | | ||||||
|  |             | m    | 13 | | ||||||
|  |             | n    | 14 | | ||||||
|  |             | o    | 15 | | ||||||
|  |             | p    | 16 | | ||||||
|  | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | |             | nodes | highway | | ||||||
|             | ad    | primary | |             | ad    | primary | | ||||||
|  | |||||||
| @ -7,9 +7,11 @@ Feature: Foot - Squares and other areas | |||||||
|     @square |     @square | ||||||
|     Scenario: Foot - Route along edge of a squares |     Scenario: Foot - Route along edge of a squares | ||||||
|         Given the node map |         Given the node map | ||||||
|             | x |   | |             """ | ||||||
|             | a | b | |             x | ||||||
|             | d | c | |             a b | ||||||
|  |             d c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | area | highway     | |             | nodes | area | highway     | | ||||||
| @ -30,9 +32,11 @@ Feature: Foot - Squares and other areas | |||||||
|     @building |     @building | ||||||
|     Scenario: Foot - Don't route on buildings |     Scenario: Foot - Don't route on buildings | ||||||
|         Given the node map |         Given the node map | ||||||
|             | x |   | |             """ | ||||||
|             | a | b | |             x | ||||||
|             | d | c | |             a b | ||||||
|  |             d c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | area | building | access | |             | nodes | highway | area | building | access | | ||||||
| @ -53,9 +57,11 @@ Feature: Foot - Squares and other areas | |||||||
|     @parking |     @parking | ||||||
|     Scenario: Foot - parking areas |     Scenario: Foot - parking areas | ||||||
|         Given the node map |         Given the node map | ||||||
|             | e |   |   | f | |             """ | ||||||
|             | x | a | b | y | |             e     f | ||||||
|             |   | d | c |   | |             x a b y | ||||||
|  |               d c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | amenity | |             | nodes | highway | amenity | | ||||||
| @ -80,8 +86,10 @@ Feature: Foot - Squares and other areas | |||||||
|     @train @platform |     @train @platform | ||||||
|     Scenario: Foot - railway platforms |     Scenario: Foot - railway platforms | ||||||
|         Given the node map |         Given the node map | ||||||
|             | x | a | b | y | |             """ | ||||||
|             |   | d | c |   | |             x a b y | ||||||
|  |               d c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | railway  | |             | nodes | highway | railway  | | ||||||
|  | |||||||
| @ -6,9 +6,11 @@ Feature: Foot - Handle ferry routes | |||||||
| 
 | 
 | ||||||
|     Scenario: Foot - Ferry route |     Scenario: Foot - Ferry route | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c |   |   | |             """ | ||||||
|             |   |   | d |   |   | |             a b c | ||||||
|             |   |   | e | f | g | |                 d | ||||||
|  |                 e f g | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | route | foot | |             | nodes | highway | route | foot | | ||||||
| @ -29,10 +31,12 @@ Feature: Foot - Handle ferry routes | |||||||
| 
 | 
 | ||||||
|     Scenario: Foot - Ferry duration, single node |     Scenario: Foot - Ferry duration, single node | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | d | |             """ | ||||||
|             |   |   | e | f | |             a b c d | ||||||
|             |   |   | g | h | |                 e f | ||||||
|             |   |   | i | j | |                 g h | ||||||
|  |                 i j | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | route | foot | duration | |             | nodes | highway | route | foot | duration | | ||||||
| @ -48,8 +52,10 @@ Feature: Foot - Handle ferry routes | |||||||
| 
 | 
 | ||||||
|     Scenario: Foot - Ferry duration, multiple nodes |     Scenario: Foot - Ferry duration, multiple nodes | ||||||
|         Given the node map |         Given the node map | ||||||
|             | x |   |   |   |   | y | |             """ | ||||||
|             |   | a | b | c | d |   | |             x         y | ||||||
|  |               a b c d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | route | foot | duration | |             | nodes | highway | route | foot | duration | | ||||||
|  | |||||||
| @ -6,8 +6,10 @@ Feature: Foot - Street names in instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Foot - A named street |     Scenario: Foot - A named street | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | |             """ | ||||||
|             |   | c | |             a b | ||||||
|  |               c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name     | ref | |             | nodes | name     | ref | | ||||||
| @ -21,7 +23,9 @@ Feature: Foot - Street names in instructions | |||||||
|     @unnamed |     @unnamed | ||||||
|     Scenario: Foot - Use way type to describe unnamed ways |     Scenario: Foot - Use way type to describe unnamed ways | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | d | |             """ | ||||||
|  |             a b c d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | name | |             | nodes | highway | name | | ||||||
|  | |||||||
| @ -6,7 +6,9 @@ Feature: Foot - Way ref | |||||||
| 
 | 
 | ||||||
|     Scenario: Foot - Way with both name and ref |     Scenario: Foot - Way with both name and ref | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | |             """ | ||||||
|  |             a b | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name         | ref | |             | nodes | name         | ref | | ||||||
| @ -18,7 +20,9 @@ Feature: Foot - Way ref | |||||||
| 
 | 
 | ||||||
|     Scenario: Foot - Way with only ref |     Scenario: Foot - Way with only ref | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | |             """ | ||||||
|  |             a b | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name | ref | |             | nodes | name | ref | | ||||||
| @ -30,7 +34,9 @@ Feature: Foot - Way ref | |||||||
| 
 | 
 | ||||||
|     Scenario: Foot - Way with only name |     Scenario: Foot - Way with only name | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | |             """ | ||||||
|  |             a b | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name         | |             | nodes | name         | | ||||||
|  | |||||||
| @ -8,9 +8,11 @@ Feature: Foot - Turn restrictions | |||||||
|     @no_turning |     @no_turning | ||||||
|     Scenario: Foot - No left turn |     Scenario: Foot - No left turn | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | n |   | |             """ | ||||||
|             | w | j | e | |               n | ||||||
|             |   | s |   | |             w j e | ||||||
|  |               s | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
| @ -32,9 +34,11 @@ Feature: Foot - Turn restrictions | |||||||
|     @no_turning |     @no_turning | ||||||
|     Scenario: Foot - No right turn |     Scenario: Foot - No right turn | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | n |   | |             """ | ||||||
|             | w | j | e | |               n | ||||||
|             |   | s |   | |             w j e | ||||||
|  |               s | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
| @ -56,9 +60,11 @@ Feature: Foot - Turn restrictions | |||||||
|     @no_turning |     @no_turning | ||||||
|     Scenario: Foot - No u-turn |     Scenario: Foot - No u-turn | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | n |   | |             """ | ||||||
|             | w | j | e | |               n | ||||||
|             |   | s |   | |             w j e | ||||||
|  |               s | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
| @ -80,9 +86,11 @@ Feature: Foot - Turn restrictions | |||||||
|     @no_turning |     @no_turning | ||||||
|     Scenario: Foot - Handle any no_* relation |     Scenario: Foot - Handle any no_* relation | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | n |   | |             """ | ||||||
|             | w | j | e | |               n | ||||||
|             |   | s |   | |             w j e | ||||||
|  |               s | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
| @ -104,9 +112,11 @@ Feature: Foot - Turn restrictions | |||||||
|     @only_turning |     @only_turning | ||||||
|     Scenario: Foot - Only left turn |     Scenario: Foot - Only left turn | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | n |   | |             """ | ||||||
|             | w | j | e | |               n | ||||||
|             |   | s |   | |             w j e | ||||||
|  |               s | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
| @ -128,9 +138,11 @@ Feature: Foot - Turn restrictions | |||||||
|     @only_turning |     @only_turning | ||||||
|     Scenario: Foot - Only right turn |     Scenario: Foot - Only right turn | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | n |   | |             """ | ||||||
|             | w | j | e | |               n | ||||||
|             |   | s |   | |             w j e | ||||||
|  |               s | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
| @ -152,9 +164,11 @@ Feature: Foot - Turn restrictions | |||||||
|     @only_turning |     @only_turning | ||||||
|     Scenario: Foot - Only straight on |     Scenario: Foot - Only straight on | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | n |   | |             """ | ||||||
|             | w | j | e | |               n | ||||||
|             |   | s |   | |             w j e | ||||||
|  |               s | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
| @ -176,9 +190,11 @@ Feature: Foot - Turn restrictions | |||||||
|     @no_turning |     @no_turning | ||||||
|     Scenario: Foot - Handle any only_* restriction |     Scenario: Foot - Handle any only_* restriction | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | n |   | |             """ | ||||||
|             | w | j | e | |               n | ||||||
|             |   | s |   | |             w j e | ||||||
|  |               s | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
| @ -200,9 +216,11 @@ Feature: Foot - Turn restrictions | |||||||
|     @except |     @except | ||||||
|     Scenario: Foot - Except tag and on no_ restrictions |     Scenario: Foot - Except tag and on no_ restrictions | ||||||
|         Given the node map |         Given the node map | ||||||
|             | b | x | c | |             """ | ||||||
|             | a | j | d | |             b x c | ||||||
|             |   | s |   | |             a j d | ||||||
|  |               s | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
| @ -230,9 +248,11 @@ Feature: Foot - Turn restrictions | |||||||
|     @except |     @except | ||||||
|     Scenario: Foot - Except tag and on only_ restrictions |     Scenario: Foot - Except tag and on only_ restrictions | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b | |             """ | ||||||
|             |   | j |   | |             a   b | ||||||
|             |   | s |   | |               j | ||||||
|  |               s | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
| @ -252,12 +272,14 @@ Feature: Foot - Turn restrictions | |||||||
|     @except |     @except | ||||||
|     Scenario: Foot - Multiple except tag values |     Scenario: Foot - Multiple except tag values | ||||||
|         Given the node map |         Given the node map | ||||||
|             | s | j | a | |             """ | ||||||
|             |   |   | b | |             s j a | ||||||
|             |   |   | c | |                 b | ||||||
|             |   |   | d | |                 c | ||||||
|             |   |   | e | |                 d | ||||||
|             |   |   | f | |                 e | ||||||
|  |                 f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
|  | |||||||
| @ -10,11 +10,13 @@ Feature: Roundabout Instructions | |||||||
|     # make sense when you're going the opposite way around the roundabout. |     # make sense when you're going the opposite way around the roundabout. | ||||||
| 
 | 
 | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | v |   |   | |             """ | ||||||
|             |   |   | d |   |   | |                 v | ||||||
|             | s | a |   | c | u | |                 d | ||||||
|             |   |   | b |   |   | |             s a   c u | ||||||
|             |   |   | t |   |   | |                 b | ||||||
|  |                 t | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | junction   | |             | nodes | junction   | | ||||||
|  | |||||||
| @ -8,10 +8,12 @@ Feature: Turn Lane Guidance | |||||||
|     @sliproads |     @sliproads | ||||||
|     Scenario: Separate Turn Lanes |     Scenario: Separate Turn Lanes | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   |   |   |   | e |   | |             """ | ||||||
|             | a |   |   | b |   |   |   | c | g | |                           e | ||||||
|             |   |   |   |   |   |   |   | d |   | |             a     b       c g | ||||||
|             |   |   |   |   |   |   |   | f |   | |                           d | ||||||
|  |                           f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | turn:lanes:forward | name     | oneway | |             | nodes | turn:lanes:forward | name     | oneway | | ||||||
| @ -37,10 +39,12 @@ Feature: Turn Lane Guidance | |||||||
|     @sliproads |     @sliproads | ||||||
|     Scenario: Separate Turn Lanes |     Scenario: Separate Turn Lanes | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   |   |   |   | e |   | |             """ | ||||||
|             | a |   |   | b |   |   |   | c | g | |                           e | ||||||
|             |   |   |   |   |   |   |   | d |   | |             a     b       c g | ||||||
|             |   |   |   |   |   |   |   | f |   | |                           d | ||||||
|  |                           f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | turn:lanes:forward | name     | oneway | |             | nodes | turn:lanes:forward | name     | oneway | | ||||||
| @ -66,17 +70,19 @@ Feature: Turn Lane Guidance | |||||||
|     @sliproads |     @sliproads | ||||||
|     Scenario: Separate Turn Lanes Next to other turns |     Scenario: Separate Turn Lanes Next to other turns | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   |   |   |   | e |   | |             """ | ||||||
|             | a |   |   | b |   |   |   | c | g | |                           e | ||||||
|             |   |   |   |   |   |   |   | d |   | |             a     b       c g | ||||||
|             |   |   |   |   |   |   |   | f |   | |                           d | ||||||
|             |   |   |   |   |   |   |   |   |   | |                           f | ||||||
|             |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             | i |   |   | h |   |   |   | j |   | | 
 | ||||||
|  |             i     h       j | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | turn:lanes:forward | name     | oneway | |             | nodes | turn:lanes:forward | name     | oneway | | ||||||
| @ -108,12 +114,14 @@ Feature: Turn Lane Guidance | |||||||
|     #http://www.openstreetmap.org/export#map=19/52.56054/13.32152 |     #http://www.openstreetmap.org/export#map=19/52.56054/13.32152 | ||||||
|     Scenario: Kurt-Schuhmacher-Damm |     Scenario: Kurt-Schuhmacher-Damm | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   | g |   | f | |             """ | ||||||
|             |   |   |   |   |   |   | |                   g   f | ||||||
|             | j |   |   | h |   | e | | 
 | ||||||
|             |   |   |   |   |   |   | |             j     h   e | ||||||
|             | a |   |   | b |   | c | | 
 | ||||||
|             |   |   |   | i |   | d | |             a     b   c | ||||||
|  |                   i   d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name | highway        | oneway | turn:lanes        | |             | nodes | name | highway        | oneway | turn:lanes        | | ||||||
| @ -136,23 +144,25 @@ Feature: Turn Lane Guidance | |||||||
|     #http://www.openstreetmap.org/#map=19/37.77308/-122.42238 |     #http://www.openstreetmap.org/#map=19/37.77308/-122.42238 | ||||||
|     Scenario: Market/Haight without Through Street |     Scenario: Market/Haight without Through Street | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   |   |   |   | g | j |   | |             """ | ||||||
|             |   |   |   |   |   |   |   |   |   |   | |                           g j | ||||||
|             |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   | f | | 
 | ||||||
|             |   |   |   |   |   |   |   |   | e |   | |                               f | ||||||
|             |   |   |   |   |   |   |   | d |   |   | |                             e | ||||||
|             | a |   |   |   |   |   | b | c |   |   | |                           d | ||||||
|             |   |   |   |   |   |   |   |   |   |   | |             a           b c | ||||||
|             |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   | l |   |   | h | i |   | | 
 | ||||||
|  |                     l     h i | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name   | highway     | oneway | turn:lanes:forward | |             | nodes | name   | highway     | oneway | turn:lanes:forward | | ||||||
| @ -182,23 +192,25 @@ Feature: Turn Lane Guidance | |||||||
|     #http://www.openstreetmap.org/#map=19/37.77308/-122.42238 |     #http://www.openstreetmap.org/#map=19/37.77308/-122.42238 | ||||||
|     Scenario: Market/Haight without Through Street |     Scenario: Market/Haight without Through Street | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   |   |   |   | g | j |   | |             """ | ||||||
|             |   |   |   |   |   |   |   |   |   |   | |                           g j | ||||||
|             |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   | f | | 
 | ||||||
|             |   |   |   |   |   |   |   |   | e |   | |                               f | ||||||
|             |   |   |   |   |   |   |   | d |   |   | |                             e | ||||||
|             | a |   |   |   |   |   | b | c |   |   | |                           d | ||||||
|             |   |   |   |   |   |   |   |   |   |   | |             a           b c | ||||||
|             |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   | l |   |   | h | i |   | | 
 | ||||||
|  |                     l     h i | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name   | highway     | oneway | turn:lanes:forward | |             | nodes | name   | highway     | oneway | turn:lanes:forward | | ||||||
|  | |||||||
| @ -8,11 +8,13 @@ Feature: Turn Lane Guidance | |||||||
|     @anticipate |     @anticipate | ||||||
|     Scenario: Anticipate Lane Change for subsequent multi-lane intersections |     Scenario: Anticipate Lane Change for subsequent multi-lane intersections | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b |   | x |   |   | |             """ | ||||||
|             |   |   |   |   |   |   |   | |             a – b – x | ||||||
|             |   |   | c |   | d |   | z | |                 | | ||||||
|             |   |   |   |   |   |   |   | |                 c – d – z | ||||||
|             |   |   | y |   | e |   |   | |                 |   | | ||||||
|  |                 y   e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | turn:lanes:forward           | |             | nodes | turn:lanes:forward           | | ||||||
| @ -32,11 +34,13 @@ Feature: Turn Lane Guidance | |||||||
|     @anticipate |     @anticipate | ||||||
|     Scenario: Anticipate Lane Change for quick same direction turns, staying on the same street |     Scenario: Anticipate Lane Change for quick same direction turns, staying on the same street | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b | x | |             """ | ||||||
|             |   |   |   |   | |             a – b – x | ||||||
|             |   |   | c |   | |                 | | ||||||
|             |   |   |   |   | |                 c | ||||||
|             | e |   | d | y | |                 | | ||||||
|  |             e – d – y | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | turn:lanes:forward    | turn:lanes:backward | name | |             | nodes | turn:lanes:forward    | turn:lanes:backward | name | | ||||||
| @ -55,11 +59,13 @@ Feature: Turn Lane Guidance | |||||||
|     @anticipate |     @anticipate | ||||||
|     Scenario: Anticipate Lane Change for quick same direction turns, changing between streets |     Scenario: Anticipate Lane Change for quick same direction turns, changing between streets | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b | x | |             """ | ||||||
|             |   |   |   |   | |             a – b – x | ||||||
|             |   |   | c |   | |                 | | ||||||
|             |   |   |   |   | |                 c | ||||||
|             | e |   | d | y | |                 | | ||||||
|  |             e – d – y | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | turn:lanes:forward    | turn:lanes:backward | name | |             | nodes | turn:lanes:forward    | turn:lanes:backward | name | | ||||||
| @ -79,9 +85,13 @@ Feature: Turn Lane Guidance | |||||||
|     @anticipate |     @anticipate | ||||||
|     Scenario: Anticipate Lane Change for quick turns during a merge |     Scenario: Anticipate Lane Change for quick turns during a merge | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   |   |   |   | |             """ | ||||||
|             | x | b |   | c | y | |             a | ||||||
|             |   |   |   |   | d | |               \ | ||||||
|  |             x – b – c – y | ||||||
|  |                     | | ||||||
|  |                     d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | turn:lanes:forward       | name | highway       | oneway | |             | nodes | turn:lanes:forward       | name | highway       | oneway | | ||||||
| @ -100,9 +110,12 @@ Feature: Turn Lane Guidance | |||||||
|     Scenario: Schoenefelder Kreuz |     Scenario: Schoenefelder Kreuz | ||||||
|     # https://www.openstreetmap.org/way/264306388#map=16/52.3202/13.5568 |     # https://www.openstreetmap.org/way/264306388#map=16/52.3202/13.5568 | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | x |   |   | i | |             """ | ||||||
|             |   |   | c | d |   |   | |             a b – x | ||||||
|             |   |   |   |   |   | j | |                 \       / i | ||||||
|  |                   c – d | ||||||
|  |                         \ j | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | turn:lanes:forward                                  | lanes | highway       | oneway | name | |             | nodes | turn:lanes:forward                                  | lanes | highway       | oneway | name | | ||||||
| @ -123,8 +136,11 @@ Feature: Turn Lane Guidance | |||||||
|     Scenario: Kreuz Oranienburg |     Scenario: Kreuz Oranienburg | ||||||
|     # https://www.openstreetmap.org/way/4484007#map=18/52.70439/13.20269 |     # https://www.openstreetmap.org/way/4484007#map=18/52.70439/13.20269 | ||||||
|         Given the node map |         Given the node map | ||||||
|             | i |   |   |   |   | a | |             """ | ||||||
|             | j |   | c | b |   | x | |             i               a | ||||||
|  |               ' .       . ' | ||||||
|  |             j – – c – b – – x | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | turn:lanes:forward | lanes | highway       | oneway | name | |             | nodes | turn:lanes:forward | lanes | highway       | oneway | name | | ||||||
| @ -143,11 +159,13 @@ Feature: Turn Lane Guidance | |||||||
|     @anticipate |     @anticipate | ||||||
|     Scenario: Lane anticipation for fan-in |     Scenario: Lane anticipation for fan-in | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b |   | x |   |   | |             """ | ||||||
|             |   |   |   |   |   |   |   | |             a – b – x | ||||||
|             |   |   | c |   | d |   | z | |                 | | ||||||
|             |   |   |   |   |   |   |   | |                 c – d – z | ||||||
|             |   |   | y |   | e |   |   | |                 |   | | ||||||
|  |                 y   e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | turn:lanes:forward           | name | |             | nodes | turn:lanes:forward           | name | | ||||||
| @ -166,11 +184,13 @@ Feature: Turn Lane Guidance | |||||||
|     @anticipate |     @anticipate | ||||||
|     Scenario: Lane anticipation for fan-out |     Scenario: Lane anticipation for fan-out | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b |   | x |   |   | |             """ | ||||||
|             |   |   |   |   |   |   |   | |             a – b – x | ||||||
|             |   |   | c |   | d |   | z | |                 | | ||||||
|             |   |   |   |   |   |   |   | |                 c – d – z | ||||||
|             |   |   | y |   | e |   |   | |                 |   | | ||||||
|  |                 y   e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | turn:lanes:forward           | name | |             | nodes | turn:lanes:forward           | name | | ||||||
| @ -189,11 +209,13 @@ Feature: Turn Lane Guidance | |||||||
|     @anticipate |     @anticipate | ||||||
|     Scenario: Lane anticipation for fan-in followed by fan-out |     Scenario: Lane anticipation for fan-in followed by fan-out | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b |   | x |   |   | |             """ | ||||||
|             |   |   |   |   |   |   |   | |             a – b – x | ||||||
|             |   |   | c |   | d |   | z | |                 | | ||||||
|             |   |   |   |   |   |   |   | |                 c – d – z | ||||||
|             |   |   | y |   | e |   |   | |                 |   | | ||||||
|  |                 y   e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | turn:lanes:forward           | name | |             | nodes | turn:lanes:forward           | name | | ||||||
| @ -212,11 +234,13 @@ Feature: Turn Lane Guidance | |||||||
|     @anticipate |     @anticipate | ||||||
|     Scenario: Lane anticipation for fan-out followed by fan-in |     Scenario: Lane anticipation for fan-out followed by fan-in | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b |   | x |   |   | |             """ | ||||||
|             |   |   |   |   |   |   |   | |             a – b – x | ||||||
|             |   |   | c |   | d |   | z | |                 | | ||||||
|             |   |   |   |   |   |   |   | |                 c – d – z | ||||||
|             |   |   | y |   | e |   |   | |                 |   | | ||||||
|  |                 y   e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | turn:lanes:forward  | name | |             | nodes | turn:lanes:forward  | name | | ||||||
| @ -235,13 +259,15 @@ Feature: Turn Lane Guidance | |||||||
|     @anticipate |     @anticipate | ||||||
|     Scenario: Lane anticipation for multiple hops with same number of lanes |     Scenario: Lane anticipation for multiple hops with same number of lanes | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b |   | x |   |   | |             """ | ||||||
|             |   |   |   |   |   |   |   | |             a – b – x | ||||||
|             |   |   | c |   | d |   | z | |                 | | ||||||
|             |   |   |   |   |   |   |   | |                 c – d – z | ||||||
|             |   |   | y |   | e |   | f | |                 |   | | ||||||
|             |   |   |   |   |   |   |   | |                 y   e – f | ||||||
|             |   |   |   |   | w |   |   | |                     | | ||||||
|  |                     w | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | turn:lanes:forward           | name | |             | nodes | turn:lanes:forward           | name | | ||||||
| @ -262,11 +288,13 @@ Feature: Turn Lane Guidance | |||||||
|        @anticipate |        @anticipate | ||||||
|        Scenario: Anticipate Lanes for through, through with lanes |        Scenario: Anticipate Lanes for through, through with lanes | ||||||
|            Given the node map |            Given the node map | ||||||
|                |   |   |   | f | g |   | |                """ | ||||||
|                |   |   |   |   |   |   | |                          f   g | ||||||
|                | a | b | c | d |   | e | |                         /   / | ||||||
|                |   |   |   |   |   |   | |                a – b – c – d – e | ||||||
|                |   |   |   | h | i |   | |                         \   \ | ||||||
|  |                          h   i | ||||||
|  |                """ | ||||||
| 
 | 
 | ||||||
|            And the ways |            And the ways | ||||||
|                | nodes | turn:lanes:forward                     | name | |                | nodes | turn:lanes:forward                     | name | | ||||||
| @ -286,11 +314,13 @@ Feature: Turn Lane Guidance | |||||||
|        @anticipate |        @anticipate | ||||||
|        Scenario: Anticipate Lanes for through and collapse multiple use lanes |        Scenario: Anticipate Lanes for through and collapse multiple use lanes | ||||||
|            Given the node map |            Given the node map | ||||||
|                |   |   | e | f | g | |                """ | ||||||
|                |   |   |   |   |   | |                      e   f   g | ||||||
|                | a | b | c | d |   | |                     /   /   / | ||||||
|                |   |   |   |   |   | |                a – b – c – d | ||||||
|                |   |   | h | i | j | |                     \   \   \ | ||||||
|  |                      h   i   j | ||||||
|  |                """ | ||||||
| 
 | 
 | ||||||
|            And the ways |            And the ways | ||||||
|                | nodes | turn:lanes:forward                     | name | |                | nodes | turn:lanes:forward                     | name | | ||||||
| @ -312,11 +342,13 @@ Feature: Turn Lane Guidance | |||||||
|        @anticipate |        @anticipate | ||||||
|        Scenario: Anticipate Lanes for through followed by left/right |        Scenario: Anticipate Lanes for through followed by left/right | ||||||
|            Given the node map |            Given the node map | ||||||
|                |   |   | f | g |   | |                """ | ||||||
|                |   |   |   |   | d | |                      f   g   d | ||||||
|                | a | b | c | x |   | |                     /   /   / | ||||||
|                |   |   |   |   | e | |                a – b – c – x | ||||||
|                |   |   | h | i |   | |                     \   \   \ | ||||||
|  |                      h   i   e | ||||||
|  |                """ | ||||||
| 
 | 
 | ||||||
|            And the ways |            And the ways | ||||||
|                | nodes | turn:lanes:forward                              | name  | |                | nodes | turn:lanes:forward                              | name  | | ||||||
| @ -338,11 +370,11 @@ Feature: Turn Lane Guidance | |||||||
|        @anticipate |        @anticipate | ||||||
|        Scenario: Anticipate Lanes for through with turn before / after |        Scenario: Anticipate Lanes for through with turn before / after | ||||||
|            Given the node map |            Given the node map | ||||||
|                | a | b | c | |                """ | ||||||
|                |   | d |   | |                c       g       l | ||||||
|                | f | e | g | |                b – d – e – h - i | ||||||
|                |   | h |   | |                a       f       j | ||||||
|                | j | i | l | |                """ | ||||||
| 
 | 
 | ||||||
|            And the ways |            And the ways | ||||||
|                | nodes | turn:lanes:forward                                           | name  | oneway | |                | nodes | turn:lanes:forward                                           | name  | oneway | | ||||||
| @ -370,10 +402,16 @@ Feature: Turn Lane Guidance | |||||||
| 
 | 
 | ||||||
|        @anticipate |        @anticipate | ||||||
|        Scenario: Anticipate Lanes for turns with through before and after |        Scenario: Anticipate Lanes for turns with through before and after | ||||||
|  |            Given a grid size of 10 meters | ||||||
|            Given the node map |            Given the node map | ||||||
|                | a | b | q |   | s | h | i | |                """ | ||||||
|                |   |   | e | f | g |   |   | |                a – b – q       s   h – i | ||||||
|                | c | d | r |   | t | j | k | |                      \       /   / | ||||||
|  |                        e – f – g | ||||||
|  |                      /       \   \ | ||||||
|  |                c – d – r       t   j – k | ||||||
|  | 
 | ||||||
|  |                """ | ||||||
| 
 | 
 | ||||||
|            And the ways |            And the ways | ||||||
|                | nodes | turn:lanes:forward                              | name | |                | nodes | turn:lanes:forward                              | name | | ||||||
| @ -402,10 +440,15 @@ Feature: Turn Lane Guidance | |||||||
|        @anticipate |        @anticipate | ||||||
|        Scenario: Anticipate Lanes for turn between throughs |        Scenario: Anticipate Lanes for turn between throughs | ||||||
|            Given the node map |            Given the node map | ||||||
|                |   | q |   |   | |                """ | ||||||
|                | a | b | c | s | |                    q | ||||||
|                |   | r | d | t | |                    | | ||||||
|                |   |   | e |   | |                a – b – c – s | ||||||
|  |                    |   | | ||||||
|  |                    r   d – t | ||||||
|  |                        | | ||||||
|  |                        e | ||||||
|  |                """ | ||||||
| 
 | 
 | ||||||
|            And the ways |            And the ways | ||||||
|                | nodes | turn:lanes:forward                                       | name | |                | nodes | turn:lanes:forward                                       | name | | ||||||
| @ -425,13 +468,15 @@ Feature: Turn Lane Guidance | |||||||
|     @anticipate @todo @2661 |     @anticipate @todo @2661 | ||||||
|     Scenario: Anticipate with lanes in roundabout: roundabouts as the unit of anticipation |     Scenario: Anticipate with lanes in roundabout: roundabouts as the unit of anticipation | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | e |   |   | |             """ | ||||||
|             | a | b |   | d | f | |                  /e\ | ||||||
|             |   |   | c |   |   | |             a – b   d – f | ||||||
|             |   |   |   |   |   | |                  \c/ | ||||||
|             |   |   | g |   |   | |                   | | ||||||
|             | k | h |   | j | l | |                  /g\ | ||||||
|             |   |   | i |   |   | |             k – h   j – l | ||||||
|  |                  \i/ | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | turn:lanes:forward                       | highway | junction   | #   | |             | nodes | turn:lanes:forward                       | highway | junction   | #   | | ||||||
| @ -459,9 +504,11 @@ Feature: Turn Lane Guidance | |||||||
|     @anticipate @todo |     @anticipate @todo | ||||||
|     Scenario: Roundabout with lanes only tagged on exit |     Scenario: Roundabout with lanes only tagged on exit | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | e |   |   | |             """ | ||||||
|             | a | b |   | d | f | |                  /e\ | ||||||
|             |   |   | c |   |   | |             a – b   d – f | ||||||
|  |                  \c/ | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | turn:lanes:forward                     | highway | junction   | |             | nodes | turn:lanes:forward                     | highway | junction   | | ||||||
| @ -479,13 +526,16 @@ Feature: Turn Lane Guidance | |||||||
|     @anticipate |     @anticipate | ||||||
|     Scenario: No Lanes for Roundabouts, see #2626 |     Scenario: No Lanes for Roundabouts, see #2626 | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | a |   |   | |             """ | ||||||
|             |   |   | b |   |   | |                 a | ||||||
|             |   | c |   | g | h | |                 | | ||||||
|             |   |   |   |   |   | |                /b\ | ||||||
|             |   | d |   | f |   | |               c   g – h | ||||||
|             |   |   | e |   |   | |              /|   | | ||||||
|             | x |   |   |   | y | |             | d   f | ||||||
|  |             |/ \e/ \ | ||||||
|  |             x     \ y | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | turn:lanes:forward         | highway | junction   | |             | nodes | turn:lanes:forward         | highway | junction   | | ||||||
| @ -509,9 +559,11 @@ Feature: Turn Lane Guidance | |||||||
|     @anticipate |     @anticipate | ||||||
|     Scenario: No Lanes for Roundabouts, see #2626 |     Scenario: No Lanes for Roundabouts, see #2626 | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | a |   |   | |             """ | ||||||
|             | x | b |   | d | y | |                  /a\ | ||||||
|             |   |   | c |   |   | |             x – b   d – y | ||||||
|  |                  \c/ | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | turn:lanes:forward         | highway | junction   | name       | |             | nodes | turn:lanes:forward         | highway | junction   | name       | | ||||||
| @ -535,13 +587,16 @@ Feature: Turn Lane Guidance | |||||||
|         properties.left_hand_driving = true |         properties.left_hand_driving = true | ||||||
|         """ |         """ | ||||||
|         And the node map |         And the node map | ||||||
|             |   |   | a |   |   | |             """ | ||||||
|             |   |   | b |   |   | |                   a | ||||||
|             | h | c |   | g |   | |                   | | ||||||
|             |   |   |   |   |   | |                  /b\ | ||||||
|             |   | d |   | f |   | |             h – c   g | ||||||
|             |   |   | e |   |   | |                 |   |\ | ||||||
|             | x |   |   |   | y | |                 d   f | | ||||||
|  |                / \e/ \| | ||||||
|  |               x /     y | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | turn:lanes:forward         | highway | junction   | |             | nodes | turn:lanes:forward         | highway | junction   | | ||||||
| @ -565,43 +620,45 @@ Feature: Turn Lane Guidance | |||||||
|     @anticipate |     @anticipate | ||||||
|     Scenario: No Lanes for Roundabouts, see #2626 |     Scenario: No Lanes for Roundabouts, see #2626 | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | a |   |   | |             """ | ||||||
|             | x | b |   | d | y | |                  /a\ | ||||||
|             |   |   |   |   |   | |             x – b   d – y | ||||||
|             |   |   |   |   |   | |                 |   | | ||||||
|             |   |   |   |   |   | |                 |   | | ||||||
|             |   |   |   |   |   | |                 |   | | ||||||
|             |   |   |   |   |   | |                 |   | | ||||||
|             |   |   |   |   |   | |                 |   | | ||||||
|             |   |   |   |   |   | |                 |   | | ||||||
|             |   |   |   |   |   | |                 |   | | ||||||
|             |   |   |   |   |   | |                 |   | | ||||||
|             |   |   |   |   |   | |                 |   | | ||||||
|             |   |   |   |   |   | |                 |   | | ||||||
|             |   |   |   |   |   | |                  | | | ||||||
|             |   |   |   |   |   | |                  | | | ||||||
|             |   |   |   |   |   | |                  | | | ||||||
|             |   |   |   |   |   | |                  | | | ||||||
|             |   |   |   |   |   | |                  | | | ||||||
|             |   |   |   |   |   | |                  | | | ||||||
|             |   |   |   |   |   | |                  | | | ||||||
|             |   |   |   |   |   | |                  | | | ||||||
|             |   |   |   |   |   | |                  | | | ||||||
|             |   |   |   |   |   | |                  | | | ||||||
|             |   |   |   |   |   | |                  | | | ||||||
|             |   |   |   |   |   | |                  | | | ||||||
|             |   |   |   |   |   | |                   | | ||||||
|             |   |   |   |   |   | |                   | | ||||||
|             |   |   |   |   |   | |                   | | ||||||
|             |   |   |   |   |   | |                   | | ||||||
|             |   |   |   |   |   | |                   | | ||||||
|             |   |   |   |   |   | |                   | | ||||||
|             |   |   |   |   |   | |                   | | ||||||
|             |   |   |   |   |   | |                   | | ||||||
|             |   |   |   |   |   | |                   | | ||||||
|             |   |   |   |   |   | |                   | | ||||||
|             |   |   |   |   |   | |                   | | ||||||
|             |   |   | c |   |   | |                   | | ||||||
|  |                   c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | turn:lanes:forward         | highway | junction   | name       | |             | nodes | turn:lanes:forward         | highway | junction   | name       | | ||||||
| @ -621,12 +678,15 @@ Feature: Turn Lane Guidance | |||||||
|     @anticipate @todo @2032 |     @anticipate @todo @2032 | ||||||
|     Scenario: No Lanes for Roundabouts, see #2626 |     Scenario: No Lanes for Roundabouts, see #2626 | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b |   |   | x | |             """ | ||||||
|             |   | c |   |   |   | |             a – b –x | ||||||
|             | d |   | f | g | z | |                 | | ||||||
|             |   | e |   | h |   | |                /c\ | ||||||
|             |   |   |   |   |   | |               d   f – g – z | ||||||
|             |   | y |   |   |   | |                \e/    | | ||||||
|  |                 |     h | ||||||
|  |                 y | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | turn:lanes:forward                                  | highway | junction   | name  | |             | nodes | turn:lanes:forward                                  | highway | junction   | name  | | ||||||
| @ -649,10 +709,11 @@ Feature: Turn Lane Guidance | |||||||
|     @anticipate |     @anticipate | ||||||
|     Scenario: Anticipate none tags |     Scenario: Anticipate none tags | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | |             """ | ||||||
|             |   | d |   | |             c       g       l | ||||||
|             | f | e | g | |             b – d – e – h - i | ||||||
|             |   | h |   | |             a       f       j | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | turn:lanes:forward       | highway   | name | |             | nodes | turn:lanes:forward       | highway   | name | | ||||||
| @ -672,14 +733,16 @@ Feature: Turn Lane Guidance | |||||||
|     @anticipate |     @anticipate | ||||||
|     Scenario: Triple Right keeping Left |     Scenario: Triple Right keeping Left | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   |   |   | b |   | i | |             """ | ||||||
|             |   |   |   |   |   |   |   | |                   a – b – i | ||||||
|             |   |   |   |   |   |   |   | |                       | | ||||||
|             | f |   | e |   |   |   | g | |             f – e – g | | ||||||
|             |   |   |   |   |   |   |   | |                 |     | | ||||||
|             |   |   |   |   |   |   |   | |                 |     | | ||||||
|             |   | j | d |   | c |   |   | |             j – d – – c | ||||||
|             |   |   |   |   | h |   |   | |                       | | ||||||
|  |                       h | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | turn:lanes:forward | highway   | name   | |             | nodes | turn:lanes:forward | highway   | name   | | ||||||
| @ -697,14 +760,16 @@ Feature: Turn Lane Guidance | |||||||
|     @anticipate |     @anticipate | ||||||
|     Scenario: Tripple Left keeping Right |     Scenario: Tripple Left keeping Right | ||||||
|         Given the node map |         Given the node map | ||||||
|             | i |   | b |   |   |   | a | |             """ | ||||||
|             |   |   |   |   |   |   |   | |             i – b – a | ||||||
|             |   |   |   |   |   |   |   | |                 | | ||||||
|             | g |   |   |   | e |   | f | |                 | g – e – f | ||||||
|             |   |   |   |   |   |   |   | |                 |     | | ||||||
|             |   |   |   |   |   |   |   | |                 |     | | ||||||
|             |   |   | c |   | d | j |   | |                 c – – d – j | ||||||
|             |   |   | h |   |   |   |   | |                 | | ||||||
|  |                 h | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | turn:lanes:forward | highway   | name   | |             | nodes | turn:lanes:forward | highway   | name   | | ||||||
|  | |||||||
| @ -6,7 +6,9 @@ Feature: Car - Guidance - Bridges and Tunnels | |||||||
| 
 | 
 | ||||||
|     Scenario: Simple Bridge |     Scenario: Simple Bridge | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | d | |             """ | ||||||
|  |             a b c d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | bridge | name               | |             | nodes | highway | bridge | name               | | ||||||
| @ -20,9 +22,11 @@ Feature: Car - Guidance - Bridges and Tunnels | |||||||
| 
 | 
 | ||||||
|     Scenario: Bridge with Immediate Turn |     Scenario: Bridge with Immediate Turn | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   | d | |             """ | ||||||
|             | a |   | b | c | |                   d | ||||||
|             |   |   |   | e | |             a   b c | ||||||
|  |                   e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | bridge | name               | |             | nodes | highway | bridge | name               | | ||||||
| @ -39,9 +43,11 @@ Feature: Car - Guidance - Bridges and Tunnels | |||||||
| 
 | 
 | ||||||
|     Scenario: Bridge with Immediate Turn Front and Back |     Scenario: Bridge with Immediate Turn Front and Back | ||||||
|         Given the node map |         Given the node map | ||||||
|             | f |   |   | d | |             """ | ||||||
|             | a |   | b | c | |             f     d | ||||||
|             | g |   |   | e | |             a   b c | ||||||
|  |             g     e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | bridge | name               | |             | nodes | highway | bridge | name               | | ||||||
| @ -63,7 +69,9 @@ Feature: Car - Guidance - Bridges and Tunnels | |||||||
| 
 | 
 | ||||||
|     Scenario: Simple Tunnel |     Scenario: Simple Tunnel | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | d | |             """ | ||||||
|  |             a b c d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | tunnel | name               | |             | nodes | highway | tunnel | name               | | ||||||
| @ -77,9 +85,11 @@ Feature: Car - Guidance - Bridges and Tunnels | |||||||
| 
 | 
 | ||||||
|     Scenario: Tunnel with Immediate Turn |     Scenario: Tunnel with Immediate Turn | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   | d | |             """ | ||||||
|             | a |   | b | c | |                   d | ||||||
|             |   |   |   | e | |             a   b c | ||||||
|  |                   e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | tunnel | name               | |             | nodes | highway | tunnel | name               | | ||||||
| @ -96,9 +106,11 @@ Feature: Car - Guidance - Bridges and Tunnels | |||||||
| 
 | 
 | ||||||
|     Scenario: Tunnel with Immediate Turn Front and Back |     Scenario: Tunnel with Immediate Turn Front and Back | ||||||
|         Given the node map |         Given the node map | ||||||
|             | f |   |   | d | |             """ | ||||||
|             | a |   | b | c | |             f     d | ||||||
|             | g |   |   | e | |             a   b c | ||||||
|  |             g     e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | bridge | name               | |             | nodes | highway | bridge | name               | | ||||||
|  | |||||||
| @ -8,13 +8,15 @@ Feature: Features related to bugs | |||||||
|     @2852 |     @2852 | ||||||
|     Scenario: Loop |     Scenario: Loop | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | 1 |   | g |   |   | b | |             """ | ||||||
|             |   |   |   |   |   |   |   | |             a 1   g     b | ||||||
|             |   |   |   |   |   |   |   | | 
 | ||||||
|             | e |   |   |   |   |   | f | | 
 | ||||||
|             |   |   |   |   |   |   |   | |             e           f | ||||||
|             |   |   |   |   |   |   | 2 | | 
 | ||||||
|             | d |   |   | h |   |   | c | |                         2 | ||||||
|  |             d     h     c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name   | oneway | |             | nodes | name   | oneway | | ||||||
|  | |||||||
| @ -8,10 +8,12 @@ Feature: Collapse | |||||||
|     @reverse |     @reverse | ||||||
|     Scenario: Collapse U-Turn Triangle Intersection |     Scenario: Collapse U-Turn Triangle Intersection | ||||||
|         Given the node map |         Given the node map | ||||||
|             | g |   | f |   | e |   | d | |             """ | ||||||
|             |   |   |   |   |   |   |   | |             g   f   e   d | ||||||
|             |   |   |   |   |   |   |   | | 
 | ||||||
|             | a |   |   | b |   |   | c | | 
 | ||||||
|  |             a     b     c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway      | name | oneway | |             | nodes | highway      | name | oneway | | ||||||
| @ -28,11 +30,13 @@ Feature: Collapse | |||||||
|     @reverse @traffic-signals |     @reverse @traffic-signals | ||||||
|     Scenario: Collapse U-Turn Triangle Intersection |     Scenario: Collapse U-Turn Triangle Intersection | ||||||
|         Given the node map |         Given the node map | ||||||
|             | g |   | f |   | j |   | e |   | d | |             """ | ||||||
|             |   |   |   |   |   |   |   |   |   | |             g   f   j   e   d | ||||||
|             |   |   |   | h |   | i |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   | |                   h   i | ||||||
|             | a |   |   |   | b |   |   |   | c | | 
 | ||||||
|  |             a       b       c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway      | name | oneway | |             | nodes | highway      | name | oneway | | ||||||
|  | |||||||
| @ -7,12 +7,14 @@ Feature: Collapse | |||||||
| 
 | 
 | ||||||
|     Scenario: Segregated Intersection, Cross Belonging to Single Street |     Scenario: Segregated Intersection, Cross Belonging to Single Street | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | i | l |   |   | |             """ | ||||||
|             |   |   |   |   |   |   | |                 i l | ||||||
|             | d |   | c | b |   | a | | 
 | ||||||
|             | e |   | f | g |   | h | |             d   c b   a | ||||||
|             |   |   |   |   |   |   | |             e   f g   h | ||||||
|             |   |   | j | k |   |   | | 
 | ||||||
|  |                 j k | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | name   | oneway | |             | nodes | highway | name   | oneway | | ||||||
| @ -50,12 +52,14 @@ Feature: Collapse | |||||||
| 
 | 
 | ||||||
|     Scenario: Segregated Intersection, Cross Belonging to Correct Street |     Scenario: Segregated Intersection, Cross Belonging to Correct Street | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | i | l |   |   | |             """ | ||||||
|             |   |   |   |   |   |   | |                 i l | ||||||
|             | d |   | c | b |   | a | | 
 | ||||||
|             | e |   | f | g |   | h | |             d   c b   a | ||||||
|             |   |   |   |   |   |   | |             e   f g   h | ||||||
|             |   |   | j | k |   |   | | 
 | ||||||
|  |                 j k | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | name   | oneway | |             | nodes | highway | name   | oneway | | ||||||
| @ -93,12 +97,14 @@ Feature: Collapse | |||||||
| 
 | 
 | ||||||
|     Scenario: Segregated Intersection, Cross Belonging to Mixed Streets |     Scenario: Segregated Intersection, Cross Belonging to Mixed Streets | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | i | l |   |   | |             """ | ||||||
|             |   |   |   |   |   |   | |                 i l | ||||||
|             | d |   | c | b |   | a | | 
 | ||||||
|             | e |   | f | g |   | h | |             d   c b   a | ||||||
|             |   |   |   |   |   |   | |             e   f g   h | ||||||
|             |   |   | j | k |   |   | | 
 | ||||||
|  |                 j k | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | name   | oneway | |             | nodes | highway | name   | oneway | | ||||||
| @ -136,26 +142,28 @@ Feature: Collapse | |||||||
| 
 | 
 | ||||||
|     Scenario: Partly Segregated Intersection, Two Segregated Roads |     Scenario: Partly Segregated Intersection, Two Segregated Roads | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | n |   | m |   | |             """ | ||||||
|             |   |   |   |   |   | |               n   m | ||||||
|             |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   | | 
 | ||||||
|             |   | g |   | h |   | | 
 | ||||||
|             |   |   |   |   |   | |               g   h | ||||||
|             |   |   |   |   |   | | 
 | ||||||
|             | c |   | b |   | a | | 
 | ||||||
|             | d |   | e |   | f | |             c   b   a | ||||||
|             |   |   |   |   |   | |             d   e   f | ||||||
|             |   |   |   |   |   | | 
 | ||||||
|             |   | j |   | i |   | | 
 | ||||||
|             |   |   |   |   |   | |               j   i | ||||||
|             |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   | | 
 | ||||||
|             |   | k |   | l |   | | 
 | ||||||
|  |               k   l | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | name   | oneway | |             | nodes | highway | name   | oneway | | ||||||
| @ -188,22 +196,24 @@ Feature: Collapse | |||||||
| 
 | 
 | ||||||
|     Scenario: Partly Segregated Intersection, Two Segregated Roads, Intersection belongs to Second |     Scenario: Partly Segregated Intersection, Two Segregated Roads, Intersection belongs to Second | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | n |   | m |   | |             """ | ||||||
|             |   |   |   |   |   | |               n   m | ||||||
|             |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   | | 
 | ||||||
|             |   | g |   | h |   | | 
 | ||||||
|             |   |   |   |   |   | |               g   h | ||||||
|             |   |   |   |   |   | | 
 | ||||||
|             | c |   | b |   | a | | 
 | ||||||
|             | d |   | e |   | f | |             c   b   a | ||||||
|             |   |   |   |   |   | |             d   e   f | ||||||
|             |   |   |   |   |   | | 
 | ||||||
|             |   | j |   | i |   | | 
 | ||||||
|             |   |   |   |   |   | |               j   i | ||||||
|             |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   | | 
 | ||||||
|             |   | k |   | l |   | | 
 | ||||||
|  |               k   l | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | name   | oneway | |             | nodes | highway | name   | oneway | | ||||||
| @ -236,12 +246,14 @@ Feature: Collapse | |||||||
| 
 | 
 | ||||||
|     Scenario: Segregated Intersection, Cross Belonging to Mixed Streets - Slight Angles |     Scenario: Segregated Intersection, Cross Belonging to Mixed Streets - Slight Angles | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | i | l |   |   | |             """ | ||||||
|             |   |   |   |   |   | a | |                 i l | ||||||
|             |   |   | c | b |   | h | |                       a | ||||||
|             | d |   | f | g |   |   | |                 c b   h | ||||||
|             | e |   |   |   |   |   | |             d   f g | ||||||
|             |   |   | j | k |   |   | |             e | ||||||
|  |                 j k | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | name   | oneway | |             | nodes | highway | name   | oneway | | ||||||
| @ -279,12 +291,14 @@ Feature: Collapse | |||||||
| 
 | 
 | ||||||
|     Scenario: Segregated Intersection, Cross Belonging to Mixed Streets - Slight Angles (2) |     Scenario: Segregated Intersection, Cross Belonging to Mixed Streets - Slight Angles (2) | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | i | l |   |   | |             """ | ||||||
|             |   |   |   |   |   |   | |                 i l | ||||||
|             |   |   | c | b |   |   | | 
 | ||||||
|             | d |   | f | g |   | a | |                 c b | ||||||
|             | e |   |   |   |   | h | |             d   f g   a | ||||||
|             |   |   | j | k |   |   | |             e         h | ||||||
|  |                 j k | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | name   | oneway | |             | nodes | highway | name   | oneway | | ||||||
| @ -322,12 +336,14 @@ Feature: Collapse | |||||||
| 
 | 
 | ||||||
|     Scenario: Entering a segregated road |     Scenario: Entering a segregated road | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | a | f |   |   |   | g | |             """ | ||||||
|             |   |   |   |   |   |   |   | |               a f       g | ||||||
|             |   | b | e |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   | |               b e | ||||||
|             |   |   |   |   |   |   |   | | 
 | ||||||
|             | c | d |   |   |   |   |   | | 
 | ||||||
|  |             c d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | name   | oneway | |             | nodes | highway | name   | oneway | | ||||||
| @ -347,9 +363,11 @@ Feature: Collapse | |||||||
| 
 | 
 | ||||||
|     Scenario: Do not collapse turning roads |     Scenario: Do not collapse turning roads | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | e |   |   | |             """ | ||||||
|             |   |   | c |   | d | |                 e | ||||||
|             | a |   | b | f |   | |                 c   d | ||||||
|  |             a   b f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | name   | oneway | |             | nodes | highway | name   | oneway | | ||||||
| @ -367,7 +385,9 @@ Feature: Collapse | |||||||
| 
 | 
 | ||||||
|      Scenario: Bridge on unnamed road |      Scenario: Bridge on unnamed road | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b |   |   |   | c | d | |             """ | ||||||
|  |             a b       c d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | name   | |             | nodes | highway | name   | | ||||||
| @ -381,9 +401,11 @@ Feature: Collapse | |||||||
| 
 | 
 | ||||||
|      Scenario: Crossing Bridge into Segregated Turn |      Scenario: Crossing Bridge into Segregated Turn | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   |   | f | |             """ | ||||||
|             | i | h |   |   | g | e | |                       f | ||||||
|             | a | b |   |   | c | d | |             i h     g e | ||||||
|  |             a b     c d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | oneway | name        | |             | nodes | highway | oneway | name        | | ||||||
| @ -402,9 +424,11 @@ Feature: Collapse | |||||||
| 
 | 
 | ||||||
|     Scenario: Pankenbruecke |     Scenario: Pankenbruecke | ||||||
|         Given the node map |         Given the node map | ||||||
|             | j |   |   |   | h |   |   |   |   |   | i |   |   |   |   |   |   | |             """ | ||||||
|             |   |   |   |   |   |   | b | c | d | e | f |   |   |   |   |   | g | |             j       h           i | ||||||
|             | k |   |   |   | a |   |   |   |   |   |   |   |   |   |   |   |   | |                         b c d e f           g | ||||||
|  |             k       a | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | name    | oneway | |             | nodes | highway | name    | oneway | | ||||||
| @ -421,11 +445,13 @@ Feature: Collapse | |||||||
| 
 | 
 | ||||||
|      Scenario: Close Turns - Don't Collapse |      Scenario: Close Turns - Don't Collapse | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | g | d |   | |             """ | ||||||
|             |   |   |   |   | |               g d | ||||||
|             | e | b | c | f | | 
 | ||||||
|             |   |   |   |   | |             e b c f | ||||||
|             |   | a | h |   | | 
 | ||||||
|  |               a h | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | name     | |             | nodes | highway | name     | | ||||||
| @ -443,8 +469,10 @@ Feature: Collapse | |||||||
| 
 | 
 | ||||||
|      Scenario: No Name During Turns |      Scenario: No Name During Turns | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b |   | |             """ | ||||||
|             |   | c | d | |             a b | ||||||
|  |               c d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway  | name | |             | nodes | highway  | name | | ||||||
| @ -458,8 +486,10 @@ Feature: Collapse | |||||||
| 
 | 
 | ||||||
|     Scenario: No Name During Turns, Random Oneway |     Scenario: No Name During Turns, Random Oneway | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b |   | |             """ | ||||||
|             |   | c | d | |             a b | ||||||
|  |               c d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway  | name | oneway | |             | nodes | highway  | name | oneway | | ||||||
| @ -473,9 +503,11 @@ Feature: Collapse | |||||||
| 
 | 
 | ||||||
|     Scenario: Pulled Back Turn |     Scenario: Pulled Back Turn | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | d | |             """ | ||||||
|             | a | b | c | |                 d | ||||||
|             |   | e |   | |             a b c | ||||||
|  |               e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway  | name  | |             | nodes | highway  | name  | | ||||||
| @ -490,8 +522,10 @@ Feature: Collapse | |||||||
| 
 | 
 | ||||||
|     Scenario: No Name During Turns, keep important turns |     Scenario: No Name During Turns, keep important turns | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | e | |             """ | ||||||
|             |   | c | d | |             a b e | ||||||
|  |               c d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway  | name  | |             | nodes | highway  | name  | | ||||||
| @ -506,17 +540,19 @@ Feature: Collapse | |||||||
| 
 | 
 | ||||||
|     Scenario: Segregated Intersection into Slight Turn |     Scenario: Segregated Intersection into Slight Turn | ||||||
|         Given the node map |         Given the node map | ||||||
|             | h |   |   |   |   |   |   | |             """ | ||||||
|             | a |   |   |   |   |   |   | |             h | ||||||
|             |   |   |   |   |   |   |   | |             a | ||||||
|             |   |   | g |   |   |   |   | | 
 | ||||||
|             |   |   | b | f |   |   |   | |                 g | ||||||
|             |   |   |   | c |   |   |   | |                 b f | ||||||
|             |   |   |   |   |   |   |   | |                   c | ||||||
|             |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   | e | | 
 | ||||||
|             |   |   |   |   |   |   | d | |                         e | ||||||
|             |   |   | j | i |   |   |   | |                         d | ||||||
|  |                 j i | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway   | name | oneway | |             | nodes | highway   | name | oneway | | ||||||
| @ -533,20 +569,22 @@ Feature: Collapse | |||||||
| 
 | 
 | ||||||
|     Scenario: Segregated Intersection into Very Slight Turn |     Scenario: Segregated Intersection into Very Slight Turn | ||||||
|         Given the node map |         Given the node map | ||||||
|             | h |   |   |   |   |   |   | |             """ | ||||||
|             | a |   |   |   |   |   |   | |             h | ||||||
|             |   |   |   |   |   |   |   | |             a | ||||||
|             |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   | g |   |   |   |   | | 
 | ||||||
|             |   |   | b |   |   |   |   | |                 g | ||||||
|             |   |   |   | f |   |   |   | |                 b | ||||||
|             |   |   |   | c |   |   |   | |                   f | ||||||
|             |   |   |   |   |   |   |   | |                   c | ||||||
|             |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   | e | | 
 | ||||||
|             |   |   |   |   |   |   | d | |                         e | ||||||
|             |   |   | j | i |   |   |   | |                         d | ||||||
|  |                 j i | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway   | name | oneway | |             | nodes | highway   | name | oneway | | ||||||
| @ -563,9 +601,11 @@ Feature: Collapse | |||||||
| 
 | 
 | ||||||
|     Scenario: Don't collapse everything to u-turn / too wide |     Scenario: Don't collapse everything to u-turn / too wide | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b |   | e | |             """ | ||||||
|             |   |   |   |   |   | |             a   b   e | ||||||
|             | d |   | c |   | f | | 
 | ||||||
|  |             d   c   f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway   | name   | |             | nodes | highway   | name   | | ||||||
| @ -580,12 +620,14 @@ Feature: Collapse | |||||||
| 
 | 
 | ||||||
|     Scenario: Forking before a turn |     Scenario: Forking before a turn | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   | g |   | |             """ | ||||||
|             |   |   |   |   |   | |                   g | ||||||
|             |   |   |   | c |   | | 
 | ||||||
|             | a |   | b | d | e | |                   c | ||||||
|             |   |   |   |   |   | |             a   b d e | ||||||
|             |   |   |   | f |   | | 
 | ||||||
|  |                   f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name  | oneway | highway   | |             | nodes | name  | oneway | highway   | | ||||||
| @ -607,12 +649,14 @@ Feature: Collapse | |||||||
| 
 | 
 | ||||||
|     Scenario: Forking before a turn (narrow) |     Scenario: Forking before a turn (narrow) | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   | g |   | |             """ | ||||||
|             |   |   |   |   |   | |                   g | ||||||
|             |   |   |   | c |   | | 
 | ||||||
|             | a | b |   | d | e | |                   c | ||||||
|             |   |   |   |   |   | |             a b   d e | ||||||
|             |   |   |   | f |   | | 
 | ||||||
|  |                   f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name  | oneway | highway   | |             | nodes | name  | oneway | highway   | | ||||||
| @ -636,12 +680,14 @@ Feature: Collapse | |||||||
| 
 | 
 | ||||||
|     Scenario: Forking before a turn (forky) |     Scenario: Forking before a turn (forky) | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   |   | g |   |   | |             """ | ||||||
|             |   |   |   |   |   |   |   |   | |                       g | ||||||
|             |   |   |   |   |   | c |   |   | | 
 | ||||||
|             | a |   |   | b |   |   |   |   | |                       c | ||||||
|             |   |   |   |   |   |   | d |   | |             a     b | ||||||
|             |   |   |   |   |   |   | f | e | |                         d | ||||||
|  |                         f e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name  | oneway | highway   | |             | nodes | name  | oneway | highway   | | ||||||
| @ -667,9 +713,11 @@ Feature: Collapse | |||||||
| 
 | 
 | ||||||
|     Scenario: On-Off on Highway |     Scenario: On-Off on Highway | ||||||
|         Given the node map |         Given the node map | ||||||
|             | f |   |   |   | |             """ | ||||||
|             | a | b | c | d | |             f | ||||||
|             |   |   |   | e | |             a b c d | ||||||
|  |                   e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name | highway       | oneway | |             | nodes | name | highway       | oneway | | ||||||
| @ -687,13 +735,15 @@ Feature: Collapse | |||||||
|     @negative @straight |     @negative @straight | ||||||
|     Scenario: Don't collapse going straight if actual turn |     Scenario: Don't collapse going straight if actual turn | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | c | e |   |   | |             """ | ||||||
|             |   |   | d |   | f | |               c e | ||||||
|             |   |   |   |   |   | |                 d   f | ||||||
|             |   |   | b |   |   | | 
 | ||||||
|             |   |   |   |   |   | |                 b | ||||||
|             |   |   |   |   |   | | 
 | ||||||
|             |   |   | a |   |   | | 
 | ||||||
|  |                 a | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name     | highway     | |             | nodes | name     | highway     | | ||||||
| @ -709,12 +759,14 @@ Feature: Collapse | |||||||
| 
 | 
 | ||||||
|     Scenario: Entering a segregated road |     Scenario: Entering a segregated road | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | a | f |   |   | |             """ | ||||||
|             |   |   |   |   | g | |               a f | ||||||
|             |   | b | e |   |   | |                     g | ||||||
|             |   |   |   |   |   | |               b e | ||||||
|             |   |   |   |   |   | | 
 | ||||||
|             | c | d |   |   |   | | 
 | ||||||
|  |             c d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | name   | oneway | |             | nodes | highway | name   | oneway | | ||||||
| @ -729,12 +781,14 @@ Feature: Collapse | |||||||
| 
 | 
 | ||||||
|     Scenario: Entering a segregated road slight turn |     Scenario: Entering a segregated road slight turn | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | a | f |   | |             """ | ||||||
|             |   |   |   |   | g | |                 a f | ||||||
|             |   | b | e |   |   | |                     g | ||||||
|             |   |   |   |   |   | |               b e | ||||||
|             |   |   |   |   |   | | 
 | ||||||
|             | c | d |   |   |   | | 
 | ||||||
|  |             c d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | name   | oneway | |             | nodes | highway | name   | oneway | | ||||||
| @ -749,11 +803,13 @@ Feature: Collapse | |||||||
| 
 | 
 | ||||||
|     Scenario: Do not collapse UseLane step when lanes change |     Scenario: Do not collapse UseLane step when lanes change | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   | f | g |   | |             """ | ||||||
|             |   |   |   |   |   |   | |                   f g | ||||||
|             | a | b | c | d |   | e | | 
 | ||||||
|             |   |   |   |   |   |   | |             a b c d   e | ||||||
|             |   |   |   | h | i |   | | 
 | ||||||
|  |                   h i | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | turn:lanes:forward                     | name | |             | nodes | turn:lanes:forward                     | name | | ||||||
| @ -772,11 +828,13 @@ Feature: Collapse | |||||||
| 
 | 
 | ||||||
|     Scenario: But _do_ collapse UseLane step when lanes stay the same |     Scenario: But _do_ collapse UseLane step when lanes stay the same | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   | f | g |   | |             """ | ||||||
|             |   |   |   |   |   |   | |                   f g | ||||||
|             | a | b | c | d |   | e | | 
 | ||||||
|             |   |   |   |   |   |   | |             a b c d   e | ||||||
|             |   |   |   | h | i |   | | 
 | ||||||
|  |                   h i | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | turn:lanes:forward                     | name | |             | nodes | turn:lanes:forward                     | name | | ||||||
| @ -795,10 +853,12 @@ Feature: Collapse | |||||||
| 
 | 
 | ||||||
|     Scenario: Don't collapse different travel modes |     Scenario: Don't collapse different travel modes | ||||||
|         Given the node map |         Given the node map | ||||||
|             | g |   |   |   |   |   |   | h |   | |             """ | ||||||
|             | a | b |   | c |   |   |   | e | f | |             g             h | ||||||
|             |   |   |   |   |   | d |   |   |   | |             a b   c       e f | ||||||
|             |   |   |   | i | j |   |   |   |   | |                       d | ||||||
|  |                   i j | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | route | name | |             | nodes | highway | route | name | | ||||||
| @ -818,11 +878,13 @@ Feature: Collapse | |||||||
| 
 | 
 | ||||||
|     Scenario: U-Turn onto a Ferry |     Scenario: U-Turn onto a Ferry | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   |   |   | i |   |   | |             """ | ||||||
|             | j | e |   |   |   |   | d | c | h | |                         i | ||||||
|             |   |   |   |   |   |   |   |   |   | |             j e         d c h | ||||||
|             |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             | k | g |   |   |   |   | a | b | f | | 
 | ||||||
|  |             k g         a b f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | route | name  | oneway | |             | nodes | highway | route | name  | oneway | | ||||||
|  | |||||||
| @ -7,8 +7,10 @@ Feature: Continue Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Road turning left |     Scenario: Road turning left | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | c |   | |             """ | ||||||
|             | a |   | b | d | |                 c | ||||||
|  |             a   b d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway | |             | nodes  | highway | | ||||||
| @ -22,8 +24,10 @@ Feature: Continue Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Road turning left and straight |     Scenario: Road turning left and straight | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | c |   | |             """ | ||||||
|             | a |   | b | d | |                 c | ||||||
|  |             a   b d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway | name | |             | nodes  | highway | name | | ||||||
| @ -37,9 +41,11 @@ Feature: Continue Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Road turning left and straight |     Scenario: Road turning left and straight | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | c |   | |             """ | ||||||
|             | a |   | b | d | |                 c | ||||||
|             |   |   | e |   | |             a   b d | ||||||
|  |                 e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway | name | |             | nodes  | highway | name | | ||||||
| @ -55,8 +61,10 @@ Feature: Continue Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Road turning right |     Scenario: Road turning right | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b | d | |             """ | ||||||
|             |   |   | c |   | |             a   b d | ||||||
|  |                 c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway | |             | nodes  | highway | | ||||||
| @ -70,10 +78,12 @@ Feature: Continue Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Road turning slight left |     Scenario: Road turning slight left | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   | c | |             """ | ||||||
|             |   |   |   |   |   | |                     c | ||||||
|             | a |   | b |   |   | | 
 | ||||||
|             |   |   |   | d |   | |             a   b | ||||||
|  |                   d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway | |             | nodes  | highway | | ||||||
| @ -87,10 +97,12 @@ Feature: Continue Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Road turning slight right |     Scenario: Road turning slight right | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   | d |   | |             """ | ||||||
|             | a |   | b |   |   | |                   d | ||||||
|             |   |   |   |   |   | |             a   b | ||||||
|             |   |   |   |   | c | | 
 | ||||||
|  |                     c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway | |             | nodes  | highway | | ||||||
| @ -104,11 +116,13 @@ Feature: Continue Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Road Loop |     Scenario: Road Loop | ||||||
|        Given the node map |        Given the node map | ||||||
|            |   |   | f |   | e | |            """ | ||||||
|            |   |   |   |   |   | |                f   e | ||||||
|            | a |   | b | g |   | | 
 | ||||||
|            |   |   |   |   |   | |            a   b g | ||||||
|            |   |   | c |   | d | | 
 | ||||||
|  |                c   d | ||||||
|  |            """ | ||||||
| 
 | 
 | ||||||
|        And the ways |        And the ways | ||||||
|           | nodes   | highway | |           | nodes   | highway | | ||||||
|  | |||||||
| @ -7,15 +7,17 @@ Feature: Slipways and Dedicated Turn Lanes | |||||||
| 
 | 
 | ||||||
|     Scenario: Turn Instead of Ramp |     Scenario: Turn Instead of Ramp | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   | e |   | |             """ | ||||||
|             | a | b |   |   | c | d | |                     e | ||||||
|             |   |   |   | h |   |   | |             a b     c d | ||||||
|             |   |   |   |   |   |   | |                   h | ||||||
|             |   |   |   | 1 |   |   | | 
 | ||||||
|             |   |   |   |   |   |   | |                   1 | ||||||
|             |   |   |   |   | f |   | | 
 | ||||||
|             |   |   |   |   |   |   | |                     f | ||||||
|             |   |   |   |   | g |   | | 
 | ||||||
|  |                     g | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway    | name   | |             | nodes | highway    | name   | | ||||||
| @ -34,16 +36,18 @@ Feature: Slipways and Dedicated Turn Lanes | |||||||
| 
 | 
 | ||||||
|     Scenario: Turn Instead of Ramp |     Scenario: Turn Instead of Ramp | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   | e |   | |             """ | ||||||
|             | a | b |   |   | c | d | |                     e | ||||||
|             |   |   |   | h |   |   | |             a b     c d | ||||||
|             |   |   |   |   |   |   | |                   h | ||||||
|             |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   | f |   | | 
 | ||||||
|             |   |   |   |   |   |   | |                     f | ||||||
|             |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   | g |   | | 
 | ||||||
|  |                     g | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway       | name   | |             | nodes | highway       | name   | | ||||||
| @ -57,16 +61,18 @@ Feature: Slipways and Dedicated Turn Lanes | |||||||
| 
 | 
 | ||||||
|     Scenario: Inner city expressway with on road |     Scenario: Inner city expressway with on road | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b |   |   |   | c | g | |             """ | ||||||
|             |   |   |   |   | f |   |   | |             a b       c g | ||||||
|             |   |   |   |   |   |   |   | |                     f | ||||||
|             |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   | d |   | | 
 | ||||||
|             |   |   |   |   |   |   |   | |                       d | ||||||
|             |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   | e |   | | 
 | ||||||
|  |                       e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway      | name  | |             | nodes | highway      | name  | | ||||||
| @ -86,14 +92,16 @@ Feature: Slipways and Dedicated Turn Lanes | |||||||
| 
 | 
 | ||||||
|     Scenario: Slipway Round U-Turn |     Scenario: Slipway Round U-Turn | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | f | |             """ | ||||||
|             |   |   |   | |             a   f | ||||||
|             | b |   | e | | 
 | ||||||
|             |   |   |   | |             b   e | ||||||
|             |   |   |   | | 
 | ||||||
|             |   | g |   | | 
 | ||||||
|             |   |   |   | |               g | ||||||
|             | c |   | d | | 
 | ||||||
|  |             c   d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway      | name | oneway | |             | nodes | highway      | name | oneway | | ||||||
| @ -107,13 +115,15 @@ Feature: Slipways and Dedicated Turn Lanes | |||||||
| 
 | 
 | ||||||
|     Scenario: Slipway Steep U-Turn |     Scenario: Slipway Steep U-Turn | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | f | |             """ | ||||||
|             |   |   |   | |             a   f | ||||||
|             | b |   | e | | 
 | ||||||
|             |   | g |   | |             b   e | ||||||
|             |   |   |   | |               g | ||||||
|             |   |   |   | | 
 | ||||||
|             | c |   | d | | 
 | ||||||
|  |             c   d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway      | name | oneway | |             | nodes | highway      | name | oneway | | ||||||
| @ -127,21 +137,23 @@ Feature: Slipways and Dedicated Turn Lanes | |||||||
| 
 | 
 | ||||||
|     Scenario: Schwarzwaldstrasse Autobahn |     Scenario: Schwarzwaldstrasse Autobahn | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   | i |   |   |   |   |   | h |   |   |   |   | g | |             """ | ||||||
|             |   |   | j |   |   |   |   |   |   |   |   |   |   |   |   |   | |                     i           h         g | ||||||
|             | a |   |   |   |   |   |   | k |   |   |   |   |   |   |   |   | |                 j | ||||||
|             |   |   |   | b |   | r | c |   | d |   | e |   |   |   |   | f | |             a             k | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | |                   b   r c   d   e         f | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   | l |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   | m |   |   |   |   |   |   |   |   |   |   | |                       l | ||||||
|             |   |   |   |   |   |   | n |   | q |   |   |   |   |   |   |   | |                       m | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | |                         n   q | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   | o |   | p |   |   |   |   |   |   |   | | 
 | ||||||
|  |                         o   p | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the nodes |         And the nodes | ||||||
|             # the traffic light at `l` is not actually in the data, but necessary for the test to check everything |             # the traffic light at `l` is not actually in the data, but necessary for the test to check everything | ||||||
| @ -171,15 +183,17 @@ Feature: Slipways and Dedicated Turn Lanes | |||||||
|     Scenario: Traffic Lights everywhere |     Scenario: Traffic Lights everywhere | ||||||
|         #http://map.project-osrm.org/?z=18¢er=48.995336%2C8.383813&loc=48.995467%2C8.384548&loc=48.995115%2C8.382761&hl=en&alt=0 |         #http://map.project-osrm.org/?z=18¢er=48.995336%2C8.383813&loc=48.995467%2C8.384548&loc=48.995115%2C8.382761&hl=en&alt=0 | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   |   | k | l |   |   | j |   | |             """ | ||||||
|             |   |   |   |   |   | d | b | c | i | |             a     k l     j | ||||||
|             |   |   |   |   |   |   |   |   |   | |                       d b c i | ||||||
|             |   |   |   |   |   |   | e | g |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   | |                         e g | ||||||
|             |   |   |   |   |   |   | 1 |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   | h |   | |                         1 | ||||||
|             |   |   |   |   |   |   |   |   |   | |                           h | ||||||
|             |   |   |   |   |   |   |   | f |   | | 
 | ||||||
|  |                           f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the nodes |         And the nodes | ||||||
|             | node | highway         | |             | node | highway         | | ||||||
| @ -203,24 +217,25 @@ Feature: Slipways and Dedicated Turn Lanes | |||||||
|     #2839 |     #2839 | ||||||
|     Scenario: Self-Loop |     Scenario: Self-Loop | ||||||
|         Given the node map |         Given the node map | ||||||
|             # 0   1   2   3   4   5   6   7   8   9  10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  25  26  27  28  29  30 |             """ | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | l |   |   | k |   |   |   |   |   |   | |                                                       l     k | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | j |   |   |   | |                                                                   j | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | m |   |   |   |   |   |   |   |   |   |   |   | |                                                   m | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | i |   | |                                                                       i | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | h | |                                                                         h | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | n |   |   |   |   |   |   |   |   |   |   |   |   | |                                                 n | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | g | |                                                                         g | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | o |   |   |   |   |   |   |   |   |   |   |   |   | |                                                 o | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | f |   | |                                                                       f | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | p |   |   |   |   |   |   |   |   |   |   |   |   |   | |                                               p | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | e |   |   |   | |                                                                   e | ||||||
|             | a |   |   |   |   | b |   |   |   |   |   |   |   |   | c |   |   |   |   |   |   |   |   |   | d |   |   |   |   |   |   | |             a         b                 c                   d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|      And the ways |      And the ways | ||||||
|             | nodes           | name    | oneway | highway     | lanes | |             | nodes           | name    | oneway | highway     | lanes | | ||||||
| @ -237,24 +252,25 @@ Feature: Slipways and Dedicated Turn Lanes | |||||||
|     #has to remain as todo (see #https://github.com/Project-OSRM/osrm-backend/pull/2849) |     #has to remain as todo (see #https://github.com/Project-OSRM/osrm-backend/pull/2849) | ||||||
|     Scenario: Self-Loop - Bidirectional |     Scenario: Self-Loop - Bidirectional | ||||||
|         Given the node map |         Given the node map | ||||||
|             # 0   1   2   3   4   5   6   7   8   9  10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  25  26  27  28  29  30 |             """ | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | l |   |   | k |   |   |   |   |   |   | |                                                       l     k | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | j |   |   |   | |                                                                   j | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | m |   |   |   |   |   |   |   |   |   |   |   | |                                                   m | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | i |   | |                                                                       i | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | h | |                                                                         h | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | n |   |   |   |   |   |   |   |   |   |   |   |   | |                                                 n | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | g | |                                                                         g | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | o |   |   |   |   |   |   |   |   |   |   |   |   | |                                                 o | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | f |   | |                                                                       f | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | p |   |   |   |   |   |   |   |   |   |   |   |   |   | |                                               p | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | e |   |   |   | |                                                                   e | ||||||
|             | a |   |   |   |   | b |   |   |   |   |   |   |   |   | c |   |   |   |   |   |   |   |   |   | d |   |   |   |   |   |   | |             a         b                 c                   d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|      And the ways |      And the ways | ||||||
|             | nodes           | name    | oneway | highway     | lanes | |             | nodes           | name    | oneway | highway     | lanes | | ||||||
| @ -268,34 +284,35 @@ Feature: Slipways and Dedicated Turn Lanes | |||||||
|     #http://www.openstreetmap.org/#map=19/38.90597/-77.01276 |     #http://www.openstreetmap.org/#map=19/38.90597/-77.01276 | ||||||
|     Scenario: Don't falsly classify as sliproads |     Scenario: Don't falsly classify as sliproads | ||||||
|         Given the node map |         Given the node map | ||||||
|             # 0   1   2   3   4   5   6   7   8   9  10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  25  26  27  28  29  30 |             """ | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | j |   |   |   |   |   |   |   | |                                                           j | ||||||
|             | a | b |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | c |   |   |   |   |   |   | d | |             a b                                           c             d | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   | e |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | |                     e | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | 1 |   |   |   |   |   |   |   | |                                                           1 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | f |   |   |   |   | g |   |   |   |   |   |   |   | |                                                 f         g | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | i |   |   |   |   |   |   | h | |                                                           i             h | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name       | highway   | oneway | maxspeed | |             | nodes | name       | highway   | oneway | maxspeed | | ||||||
| @ -317,21 +334,23 @@ Feature: Slipways and Dedicated Turn Lanes | |||||||
|     # Merging into degree two loop on dedicated turn detection / 2927 |     # Merging into degree two loop on dedicated turn detection / 2927 | ||||||
|     Scenario: Turn Instead of Ramp |     Scenario: Turn Instead of Ramp | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | f | |             """ | ||||||
|             |   |   |   |   | g |   |   |   |   |   | h |   |   |   |   |   | |                                           f | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   | d |   |   | e | |                     g           h | ||||||
|             | i |   |   |   | c |   |   |   |   |   | j |   |   |   |   |   | |                                     d     e | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | |             i       c           j | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   | b |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | |                 b | ||||||
|             |   |   | a |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|  |                 a | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | name | oneway | |             | nodes | highway | name | oneway | | ||||||
|  | |||||||
| @ -6,15 +6,17 @@ Feature: Destination Signs | |||||||
| 
 | 
 | ||||||
|     Scenario: Car - route name assembly with destination signs |     Scenario: Car - route name assembly with destination signs | ||||||
|         Given the node map |         Given the node map | ||||||
|           | a | b | |           """ | ||||||
|           | c | d | |           a b | ||||||
|           | e | f | |           c d | ||||||
|           | g | h | |           e f | ||||||
|           | i | j | |           g h | ||||||
|           | k | l | |           i j | ||||||
|           | m | n | |           k l | ||||||
|           | o | p | |           m n | ||||||
|           | q | r | |           o p | ||||||
|  |           q r | ||||||
|  |           """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|           | nodes | name | ref | destination    | destination:ref | oneway | #                                    | |           | nodes | name | ref | destination    | destination:ref | oneway | #                                    | | ||||||
|  | |||||||
| @ -7,9 +7,11 @@ Feature: End Of Road Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: End of Road with through street |     Scenario: End of Road with through street | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | c | |             """ | ||||||
|             | a | e | b | |                 c | ||||||
|             |   | f | d | |             a e b | ||||||
|  |               f d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway | |             | nodes  | highway | | ||||||
| @ -24,9 +26,11 @@ Feature: End Of Road Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: End of Road with three streets |     Scenario: End of Road with three streets | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | c | |             """ | ||||||
|             | a | e | b | |                 c | ||||||
|             |   | f | d | |             a e b | ||||||
|  |               f d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway | |             | nodes  | highway | | ||||||
| @ -42,9 +46,11 @@ Feature: End Of Road Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: End of Road with three streets, slightly angled |     Scenario: End of Road with three streets, slightly angled | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | e |   |   |   | c | |             """ | ||||||
|             |   | f |   |   |   | b | |             a e       c | ||||||
|             |   |   |   |   |   | d | |               f       b | ||||||
|  |                       d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway | |             | nodes  | highway | | ||||||
| @ -60,9 +66,11 @@ Feature: End Of Road Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: End of Road with three streets, slightly angled |     Scenario: End of Road with three streets, slightly angled | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   |   | c | |             """ | ||||||
|             |   | f |   |   |   | b | |                       c | ||||||
|             | a | e |   |   |   | d | |               f       b | ||||||
|  |             a e       d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway | |             | nodes  | highway | | ||||||
| @ -78,9 +86,11 @@ Feature: End Of Road Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: End of Road with through street, slightly angled |     Scenario: End of Road with through street, slightly angled | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | e |   |   |   | c | |             """ | ||||||
|             |   | f |   |   |   | b | |             a e       c | ||||||
|             |   |   |   |   |   | d | |               f       b | ||||||
|  |                       d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway | |             | nodes  | highway | | ||||||
| @ -95,9 +105,11 @@ Feature: End Of Road Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: End of Road with through street, slightly angled |     Scenario: End of Road with through street, slightly angled | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   |   | c | |             """ | ||||||
|             |   | f |   |   |   | b | |                       c | ||||||
|             | a | e |   |   |   | d | |               f       b | ||||||
|  |             a e       d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway | |             | nodes  | highway | | ||||||
| @ -112,9 +124,11 @@ Feature: End Of Road Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: End of Road with two ramps - prefer ramp over end of road |     Scenario: End of Road with two ramps - prefer ramp over end of road | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | c | |             """ | ||||||
|             | a | e | b | |                 c | ||||||
|             |   | f | d | |             a e b | ||||||
|  |               f d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway       | |             | nodes  | highway       | | ||||||
| @ -132,19 +146,21 @@ Feature: End Of Road Instructions | |||||||
|     @end-of-road @negative |     @end-of-road @negative | ||||||
|     Scenario: Don't Handle Circles as End-Of-Road |     Scenario: Don't Handle Circles as End-Of-Road | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | r |   |   |   | q |   |   |   |   |   |   | |             """ | ||||||
|             |   |   |   |   |   | a | s |   |   |   |   |   | |               r       q | ||||||
|             |   |   |   | b |   |   |   |   |   |   |   |   | |                       a s | ||||||
|             |   |   |   |   |   |   |   | j |   |   |   |   | |                   b | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   | |                           j | ||||||
|             | l |   | c |   |   |   |   | i |   |   |   | k | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   | |             l   c         i       k | ||||||
|             |   |   |   |   |   |   |   | h |   |   |   |   | | 
 | ||||||
|             | m |   |   |   |   |   |   |   |   |   |   |   | |                           h | ||||||
|             |   |   | d |   |   |   |   |   |   |   |   | n | |             m | ||||||
|             |   |   |   | e |   |   | g |   |   |   |   |   | |                 d                 n | ||||||
|             |   |   |   |   | f |   |   |   |   |   |   |   | |                   e     g | ||||||
|             |   |   |   |   | o |   | p |   |   |   |   |   | |                     f | ||||||
|  |                     o   p | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes        | highway     | name  | oneway | |             | nodes        | highway     | name  | oneway | | ||||||
|  | |||||||
| @ -7,9 +7,11 @@ Feature: Fork Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Fork Same Road Class |     Scenario: Fork Same Road Class | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   | c | |             """ | ||||||
|             | a |   | b |   |   | |                     c | ||||||
|             |   |   |   |   | d | |             a   b | ||||||
|  |                     d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway | |             | nodes  | highway | | ||||||
| @ -24,9 +26,11 @@ Feature: Fork Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Don't Fork On Single Road |     Scenario: Don't Fork On Single Road | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   | c | |             """ | ||||||
|             | a |   | b |   |   | |                     c | ||||||
|             |   |   |   |   | d | |             a   b | ||||||
|  |                     d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway | oneway | |             | nodes  | highway | oneway | | ||||||
| @ -40,8 +44,10 @@ Feature: Fork Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Don't Fork On Single Road |     Scenario: Don't Fork On Single Road | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   |   |   | c | |             """ | ||||||
|             | a |   | b |   | d |   |   | |                         c | ||||||
|  |             a   b   d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway | oneway | name | |             | nodes  | highway | oneway | name | | ||||||
| @ -55,9 +61,11 @@ Feature: Fork Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Do not fork on link type |     Scenario: Do not fork on link type | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   | c | |             """ | ||||||
|             | a |   | b |   |   | |                     c | ||||||
|             |   |   |   |   | d | |             a   b | ||||||
|  |                     d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway      | |             | nodes  | highway      | | ||||||
| @ -72,9 +80,11 @@ Feature: Fork Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Fork in presence of other roads |     Scenario: Fork in presence of other roads | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   | c | |             """ | ||||||
|             | a |   | b |   |   | |                     c | ||||||
|             |   | e |   |   | d | |             a   b | ||||||
|  |               e     d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway | |             | nodes  | highway | | ||||||
| @ -90,10 +100,12 @@ Feature: Fork Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Fork Turning Slight Left |     Scenario: Fork Turning Slight Left | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   |   | c | |             """ | ||||||
|             |   |   |   |   |   |   | |                       c | ||||||
|             | a |   | b |   |   |   | | 
 | ||||||
|             |   |   |   |   | d |   | |             a   b | ||||||
|  |                     d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway | |             | nodes  | highway | | ||||||
| @ -108,10 +120,12 @@ Feature: Fork Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Fork Turning Slight Right |     Scenario: Fork Turning Slight Right | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   | c |   | |             """ | ||||||
|             | a |   | b |   |   |   | |                     c | ||||||
|             |   |   |   |   |   |   | |             a   b | ||||||
|             |   |   |   |   |   | d | | 
 | ||||||
|  |                       d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway | |             | nodes  | highway | | ||||||
| @ -126,9 +140,11 @@ Feature: Fork Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Do not fork on service |     Scenario: Do not fork on service | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   | c | |             """ | ||||||
|             | a |   | b |   |   | |                     c | ||||||
|             |   |   |   |   | d | |             a   b | ||||||
|  |                     d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway     | |             | nodes  | highway     | | ||||||
| @ -142,9 +158,11 @@ Feature: Fork Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Fork Both Turning Slight Right |     Scenario: Fork Both Turning Slight Right | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b |   |   |   | |             """ | ||||||
|             |   |   |   |   |   | c | |             a   b | ||||||
|             |   |   |   |   |   | d | |                       c | ||||||
|  |                       d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway | |             | nodes  | highway | | ||||||
| @ -159,9 +177,11 @@ Feature: Fork Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Fork Both Turning Slight Left |     Scenario: Fork Both Turning Slight Left | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   |   | c | |             """ | ||||||
|             |   |   |   |   |   | d | |                       c | ||||||
|             | a |   | b |   |   |   | |                       d | ||||||
|  |             a   b | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway | |             | nodes  | highway | | ||||||
| @ -176,9 +196,11 @@ Feature: Fork Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Fork Both Turning Slight Right - Unnamed |     Scenario: Fork Both Turning Slight Right - Unnamed | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b |   |   |   | |             """ | ||||||
|             |   |   |   |   |   | c | |             a   b | ||||||
|             |   |   |   |   |   | d | |                       c | ||||||
|  |                       d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway | name | |             | nodes  | highway | name | | ||||||
| @ -193,9 +215,11 @@ Feature: Fork Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Fork Both Turning Slight Left - Unnamed |     Scenario: Fork Both Turning Slight Left - Unnamed | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   |   | c | |             """ | ||||||
|             |   |   |   |   |   | d | |                       c | ||||||
|             | a |   | b |   |   |   | |                       d | ||||||
|  |             a   b | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway | name | |             | nodes  | highway | name | | ||||||
| @ -210,9 +234,11 @@ Feature: Fork Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Fork Both Turning Very Slightly Right - Unnamed |     Scenario: Fork Both Turning Very Slightly Right - Unnamed | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | |             """ | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   | c |   |   |   |   |   |   | |             a   b | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | d | |                                   c | ||||||
|  |                                               d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway | name | |             | nodes  | highway | name | | ||||||
| @ -227,9 +253,11 @@ Feature: Fork Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Fork Both Turning Very Slightly Right - Unnamed Ramps |     Scenario: Fork Both Turning Very Slightly Right - Unnamed Ramps | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | |             """ | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   | c |   |   |   |   |   |   | |             a   b | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | d | |                                   c | ||||||
|  |                                               d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway       | name | |             | nodes  | highway       | name | | ||||||
| @ -244,9 +272,11 @@ Feature: Fork Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Non-Fork on complex intersection - left |     Scenario: Non-Fork on complex intersection - left | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   | c | |             """ | ||||||
|             | a |   | b |   |   | |                     c | ||||||
|             |   | e |   |   | d | |             a   b | ||||||
|  |               e     d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway   | |             | nodes  | highway   | | ||||||
| @ -261,9 +291,11 @@ Feature: Fork Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Non-Fork on complex intersection - right |     Scenario: Non-Fork on complex intersection - right | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | e |   |   | c | |             """ | ||||||
|             | a |   | b |   |   | |               e     c | ||||||
|             |   |   |   |   | d | |             a   b | ||||||
|  |                     d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway   | |             | nodes  | highway   | | ||||||
| @ -278,9 +310,11 @@ Feature: Fork Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Tripple fork |     Scenario: Tripple fork | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   |   |   |   |   | c | |             """ | ||||||
|             | a |   | b |   | d |   |   |   |   | |                             c | ||||||
|             |   |   |   |   |   |   |   |   | e | |             a   b   d | ||||||
|  |                             e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway   | |             | nodes  | highway   | | ||||||
| @ -297,9 +331,11 @@ Feature: Fork Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Tripple fork -- middle obvious |     Scenario: Tripple fork -- middle obvious | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   | c | |             """ | ||||||
|             | a |   | b |   | d | |                     c | ||||||
|             |   |   |   |   | e | |             a   b   d | ||||||
|  |                     e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway   | |             | nodes  | highway   | | ||||||
| @ -315,8 +351,10 @@ Feature: Fork Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Don't Fork when leaving Road |     Scenario: Don't Fork when leaving Road | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b |   | c | |             """ | ||||||
|             |   |   |   |   | d | |             a   b   c | ||||||
|  |                     d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway   | |             | nodes  | highway   | | ||||||
| @ -330,8 +368,10 @@ Feature: Fork Instructions | |||||||
| 
 | 
 | ||||||
|      Scenario: Fork on motorway links - don't fork on through |      Scenario: Fork on motorway links - don't fork on through | ||||||
|         Given the node map |         Given the node map | ||||||
|             | i |   |   |   |   | a | |             """ | ||||||
|             | j |   | c | b |   | x | |             i         a | ||||||
|  |             j   c b   x | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name | highway       | |             | nodes | name | highway       | | ||||||
|  | |||||||
| @ -7,8 +7,10 @@ Feature: Intersections Data | |||||||
| 
 | 
 | ||||||
|     Scenario: Passing Three Way South |     Scenario: Passing Three Way South | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b |   | c | |             """ | ||||||
|             |   |   | d |   |   | |             a   b   c | ||||||
|  |                 d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | name    | |             | nodes  | name    | | ||||||
| @ -22,8 +24,10 @@ Feature: Intersections Data | |||||||
| 
 | 
 | ||||||
|     Scenario: Passing Three Way North |     Scenario: Passing Three Way North | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | d |   |   | |             """ | ||||||
|             | a |   | b |   | c | |                 d | ||||||
|  |             a   b   c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | name    | |             | nodes  | name    | | ||||||
| @ -37,8 +41,10 @@ Feature: Intersections Data | |||||||
| 
 | 
 | ||||||
|     Scenario: Passing Oneway Street In |     Scenario: Passing Oneway Street In | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | d |   |   | |             """ | ||||||
|             | a |   | b |   | c | |                 d | ||||||
|  |             a   b   c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | name    | oneway | |             | nodes  | name    | oneway | | ||||||
| @ -52,8 +58,10 @@ Feature: Intersections Data | |||||||
| 
 | 
 | ||||||
|     Scenario: Passing Oneway Street Out |     Scenario: Passing Oneway Street Out | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | d |   |   | |             """ | ||||||
|             | a |   | b |   | c | |                 d | ||||||
|  |             a   b   c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | name    | oneway | |             | nodes  | name    | oneway | | ||||||
| @ -67,9 +75,11 @@ Feature: Intersections Data | |||||||
| 
 | 
 | ||||||
|     Scenario: Passing Two Intersections |     Scenario: Passing Two Intersections | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | e |   |   |   |   | |             """ | ||||||
|             | a |   | b |   | c |   | d | |                 e | ||||||
|             |   |   |   |   | f |   |   | |             a   b   c   d | ||||||
|  |                     f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | name    | |             | nodes  | name    | | ||||||
| @ -85,9 +95,11 @@ Feature: Intersections Data | |||||||
| 
 | 
 | ||||||
|     Scenario: Passing Two Intersections, Collapsing |     Scenario: Passing Two Intersections, Collapsing | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | e |   |   |   |   | |             """ | ||||||
|             | a |   | b |   | c |   | d | |                 e | ||||||
|             |   |   |   |   | f |   |   | |             a   b   c   d | ||||||
|  |                     f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | name          | |             | nodes  | name          | | ||||||
| @ -104,17 +116,19 @@ Feature: Intersections Data | |||||||
| 
 | 
 | ||||||
|     Scenario: Roundabouts |     Scenario: Roundabouts | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   | e |   |   |   |   | |             """ | ||||||
|             |   |   |   |   |   |   |   |   |   | |                     e | ||||||
|             |   |   |   |   | a |   |   |   |   | | 
 | ||||||
|             |   |   |   | 1 |   | 4 |   |   |   | |                     a | ||||||
|             |   |   |   |   |   |   |   |   |   | |                   1   4 | ||||||
|             | f |   | b |   |   |   | d |   | h | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   | |             f   b       d   h | ||||||
|             |   |   |   | 2 |   | 3 |   |   |   | | 
 | ||||||
|             |   |   |   |   | c |   |   |   |   | |                   2   3 | ||||||
|             |   |   |   |   |   |   |   |   |   | |                     c | ||||||
|             |   |   |   |   | g |   |   |   |   | | 
 | ||||||
|  |                     g | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | junction   | |             | nodes | junction   | | ||||||
|  | |||||||
| @ -8,9 +8,11 @@ Feature: Merging | |||||||
|     @merge |     @merge | ||||||
|     Scenario: Merge on Four Way Intersection |     Scenario: Merge on Four Way Intersection | ||||||
|         Given the node map |         Given the node map | ||||||
|             | d |   |   |   |   |   |   |   |   |   | |             """ | ||||||
|             | a |   | b |   |   |   |   |   |   | c | |             d | ||||||
|             | e |   |   |   |   |   |   |   |   |   | |             a   b             c | ||||||
|  |             e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | |             | nodes | highway | | ||||||
| @ -26,8 +28,10 @@ Feature: Merging | |||||||
|     @merge |     @merge | ||||||
|     Scenario: Merge on Three Way Intersection Right |     Scenario: Merge on Three Way Intersection Right | ||||||
|         Given the node map |         Given the node map | ||||||
|             | d |   |   |   |   |   |   |   |   |   | |             """ | ||||||
|             | a |   | b |   |   |   |   |   |   | c | |             d | ||||||
|  |             a   b             c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | |             | nodes | highway | | ||||||
| @ -41,8 +45,10 @@ Feature: Merging | |||||||
|     @merge @negative |     @merge @negative | ||||||
|     Scenario: Don't Merge on Short-Three Way Intersection Right |     Scenario: Don't Merge on Short-Three Way Intersection Right | ||||||
|         Given the node map |         Given the node map | ||||||
|             | d |   |   |   |   |   |   |   | |             """ | ||||||
|             | a |   | b |   |   |   |   | c | |             d | ||||||
|  |             a   b         c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | |             | nodes | highway | | ||||||
| @ -57,8 +63,10 @@ Feature: Merging | |||||||
|     @merge |     @merge | ||||||
|     Scenario: Merge on Three Way Intersection Right |     Scenario: Merge on Three Way Intersection Right | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b |   |   |   |   |   |   | c | |             """ | ||||||
|             | d |   |   |   |   |   |   |   |   |   | |             a   b             c | ||||||
|  |             d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | |             | nodes | highway | | ||||||
| @ -72,23 +80,25 @@ Feature: Merging | |||||||
|     @merge |     @merge | ||||||
|     Scenario: Merge onto a turning road |     Scenario: Merge onto a turning road | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   |   |   | e | |             """ | ||||||
|             |   |   |   |   |   |   |   | |                         e | ||||||
|             |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   | d |   | | 
 | ||||||
|             |   |   |   |   |   |   |   | |                       d | ||||||
|             |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   | c |   |   | | 
 | ||||||
|             |   |   |   | b |   |   |   | |                     c | ||||||
|             | a |   |   |   |   |   | f | |                   b | ||||||
|  |             a           f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway     | name | |             | nodes | highway     | name | | ||||||
| @ -103,8 +113,10 @@ Feature: Merging | |||||||
|     @merge |     @merge | ||||||
|     Scenario: Merge onto a motorway |     Scenario: Merge onto a motorway | ||||||
|         Given the node map |         Given the node map | ||||||
|             | d |   |   |   |   |   |   |   |   |   | |             """ | ||||||
|             | a |   |   | b |   |   |   |   |   | c | |             d | ||||||
|  |             a     b           c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name | highway       | oneway | |             | nodes | name | highway       | oneway | | ||||||
|  | |||||||
| @ -7,8 +7,10 @@ Feature: Motorway Guidance | |||||||
| 
 | 
 | ||||||
|     Scenario: Ramp Exit Right |     Scenario: Ramp Exit Right | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | d | e | |             """ | ||||||
|             |   |   |   | f | g | |             a b c d e | ||||||
|  |                   f g | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway       | oneway | |             | nodes | highway       | oneway | | ||||||
| @ -22,9 +24,11 @@ Feature: Motorway Guidance | |||||||
| 
 | 
 | ||||||
|     Scenario: Ramp Exit Right Curved Right |     Scenario: Ramp Exit Right Curved Right | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c |   |   | |             """ | ||||||
|             |   |   | f | d |   | |             a b c | ||||||
|             |   |   |   | g | e | |                 f d | ||||||
|  |                   g e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway       | oneway | |             | nodes | highway       | oneway | | ||||||
| @ -38,9 +42,11 @@ Feature: Motorway Guidance | |||||||
| 
 | 
 | ||||||
|     Scenario: Ramp Exit Right Curved Left |     Scenario: Ramp Exit Right Curved Left | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   | e | |             """ | ||||||
|             |   |   |   | d | g | |                     e | ||||||
|             | a | b | c | f |   | |                   d g | ||||||
|  |             a b c f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
| @ -56,8 +62,10 @@ Feature: Motorway Guidance | |||||||
| 
 | 
 | ||||||
|     Scenario: Ramp Exit Left |     Scenario: Ramp Exit Left | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   | f | g | |             """ | ||||||
|             | a | b | c | d | e | |                   f g | ||||||
|  |             a b c d e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway       | oneway | |             | nodes | highway       | oneway | | ||||||
| @ -71,9 +79,11 @@ Feature: Motorway Guidance | |||||||
| 
 | 
 | ||||||
|     Scenario: Ramp Exit Left Curved Left |     Scenario: Ramp Exit Left Curved Left | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   | g | e | |             """ | ||||||
|             |   |   | f | d |   | |                   g e | ||||||
|             | a | b | c |   |   | |                 f d | ||||||
|  |             a b c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway       | oneway | |             | nodes | highway       | oneway | | ||||||
| @ -87,9 +97,11 @@ Feature: Motorway Guidance | |||||||
| 
 | 
 | ||||||
|     Scenario: Ramp Exit Left Curved Right |     Scenario: Ramp Exit Left Curved Right | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | f |   | |             """ | ||||||
|             |   |   |   | d | g | |             a b c f | ||||||
|             |   |   |   |   | e | |                   d g | ||||||
|  |                     e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway       | oneway | |             | nodes | highway       | oneway | | ||||||
| @ -103,8 +115,10 @@ Feature: Motorway Guidance | |||||||
| 
 | 
 | ||||||
|     Scenario: On Ramp Right |     Scenario: On Ramp Right | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | d | e | |             """ | ||||||
|             | f | g |   |   |   | |             a b c d e | ||||||
|  |             f g | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway       | oneway | |             | nodes | highway       | oneway | | ||||||
| @ -118,8 +132,10 @@ Feature: Motorway Guidance | |||||||
| 
 | 
 | ||||||
|     Scenario: On Ramp Left |     Scenario: On Ramp Left | ||||||
|         Given the node map |         Given the node map | ||||||
|             | f | g |   |   |   | |             """ | ||||||
|             | a | b | c | d | e | |             f g | ||||||
|  |             a b c d e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway       | oneway | |             | nodes | highway       | oneway | | ||||||
| @ -133,9 +149,11 @@ Feature: Motorway Guidance | |||||||
| 
 | 
 | ||||||
|     Scenario: Highway Fork |     Scenario: Highway Fork | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   | d | e | |             """ | ||||||
|             | a | b | c |   |   |   | |                     d e | ||||||
|             |   |   |   |   | f | g | |             a b c | ||||||
|  |                     f g | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway  | |             | nodes  | highway  | | ||||||
| @ -149,9 +167,11 @@ Feature: Motorway Guidance | |||||||
| 
 | 
 | ||||||
|      Scenario: Fork After Ramp |      Scenario: Fork After Ramp | ||||||
|        Given the node map |        Given the node map | ||||||
|             |   |   |   |   | d | e | |             """ | ||||||
|             | a | b | c |   |   |   | |                     d e | ||||||
|             |   |   |   |   | f | g | |             a b c | ||||||
|  |                     f g | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway       | oneway | |             | nodes | highway       | oneway | | ||||||
| @ -166,8 +186,10 @@ Feature: Motorway Guidance | |||||||
| 
 | 
 | ||||||
|      Scenario: On And Off Ramp Right |      Scenario: On And Off Ramp Right | ||||||
|        Given the node map |        Given the node map | ||||||
|             | a | b |   | c |   | d | e | |             """ | ||||||
|             | f | g |   |   |   | h | i | |             a b   c   d e | ||||||
|  |             f g       h i | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway       | oneway | |             | nodes | highway       | oneway | | ||||||
| @ -184,8 +206,10 @@ Feature: Motorway Guidance | |||||||
| 
 | 
 | ||||||
|     Scenario: On And Off Ramp Left |     Scenario: On And Off Ramp Left | ||||||
|        Given the node map |        Given the node map | ||||||
|             | f | g |   |   |   | h | i | |             """ | ||||||
|             | a | b |   | c |   | d | e | |             f g       h i | ||||||
|  |             a b   c   d e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway       | oneway | |             | nodes | highway       | oneway | | ||||||
| @ -202,9 +226,11 @@ Feature: Motorway Guidance | |||||||
| 
 | 
 | ||||||
|     Scenario: Merging Motorways |     Scenario: Merging Motorways | ||||||
|         Given the node map |         Given the node map | ||||||
|             | e |   |   | |             """ | ||||||
|             | a | b | c | |             e | ||||||
|             | d |   |   | |             a b c | ||||||
|  |             d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway  | |             | nodes | highway  | | ||||||
| @ -219,9 +245,11 @@ Feature: Motorway Guidance | |||||||
| 
 | 
 | ||||||
|     Scenario: Handle 90 degree off ramps correctly |     Scenario: Handle 90 degree off ramps correctly | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   |   |   |   | |             """ | ||||||
|             | x | b |   | c | y | |             a | ||||||
|             |   |   |   | d |   | |             x b   c y | ||||||
|  |                   d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name | highway       | oneway | |             | nodes | name | highway       | oneway | | ||||||
|  | |||||||
| @ -7,7 +7,9 @@ Feature: New-Name Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Undisturbed name Change |     Scenario: Undisturbed name Change | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b |   | c | |             """ | ||||||
|  |             a   b   c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | |             | nodes  | | ||||||
| @ -21,8 +23,10 @@ Feature: New-Name Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Undisturbed Name Change with unannounced Turn Right |     Scenario: Undisturbed Name Change with unannounced Turn Right | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b |   |   | |             """ | ||||||
|             |   |   |   |   | c | |             a   b | ||||||
|  |                     c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | |             | nodes  | | ||||||
| @ -35,8 +39,10 @@ Feature: New-Name Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Undisturbed Name Change with unannounced Turn Left |     Scenario: Undisturbed Name Change with unannounced Turn Left | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   | c | |             """ | ||||||
|             | a |   | b |   |   | |                     c | ||||||
|  |             a   b | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | |             | nodes  | | ||||||
| @ -49,8 +55,10 @@ Feature: New-Name Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Disturbed Name Change with Turn |     Scenario: Disturbed Name Change with Turn | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b |   |   | |             """ | ||||||
|             |   | d |   |   | c | |             a   b | ||||||
|  |               d     c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | |             | nodes  | | ||||||
| @ -64,8 +72,10 @@ Feature: New-Name Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Undisturbed Name Change with announced Turn Left |     Scenario: Undisturbed Name Change with announced Turn Left | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | c | |             """ | ||||||
|             | a |   | b | |                 c | ||||||
|  |             a   b | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | |             | nodes  | | ||||||
| @ -78,8 +88,10 @@ Feature: New-Name Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Undisturbed Name Change with announced Turn Sharp Left |     Scenario: Undisturbed Name Change with announced Turn Sharp Left | ||||||
|         Given the node map |         Given the node map | ||||||
|             | c |   |   | |             """ | ||||||
|             | a |   | b | |             c | ||||||
|  |             a   b | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | |             | nodes  | | ||||||
| @ -92,8 +104,10 @@ Feature: New-Name Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Undisturbed Name Change with announced Turn Right |     Scenario: Undisturbed Name Change with announced Turn Right | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b | |             """ | ||||||
|             |   |   | c | |             a   b | ||||||
|  |                 c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | |             | nodes  | | ||||||
| @ -106,8 +120,10 @@ Feature: New-Name Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Undisturbed Name Change with announced Turn Sharp Right |     Scenario: Undisturbed Name Change with announced Turn Sharp Right | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b | |             """ | ||||||
|             | c |   |   | |             a   b | ||||||
|  |             c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | |             | nodes  | | ||||||
| @ -121,8 +137,10 @@ Feature: New-Name Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Disturbed Name Change with minor road class |     Scenario: Disturbed Name Change with minor road class | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b |   | d | |             """ | ||||||
|             |   |   |   |   | c | |             a   b   d | ||||||
|  |                     c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway     | oneway | |             | nodes  | highway     | oneway | | ||||||
| @ -136,7 +154,9 @@ Feature: New-Name Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Empty road names - Announce Change From, suppress Change To |     Scenario: Empty road names - Announce Change From, suppress Change To | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |  | b | 1 | c |  | d | |             """ | ||||||
|  |             a   b 1 c   d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name | |             | nodes | name | | ||||||
| @ -151,7 +171,9 @@ Feature: New-Name Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Empty road names - Loose name shortly |     Scenario: Empty road names - Loose name shortly | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |  | b |  | c |  | d |  | e | |             """ | ||||||
|  |             a   b   c   d   e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name      | |             | nodes | name      | | ||||||
| @ -167,7 +189,9 @@ Feature: New-Name Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Both Name and Ref Empty |     Scenario: Both Name and Ref Empty | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |  | b |  | c | |             """ | ||||||
|  |             a   b   c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name | ref | |             | nodes | name | ref | | ||||||
| @ -180,7 +204,9 @@ Feature: New-Name Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Same Name, Ref Extended |     Scenario: Same Name, Ref Extended | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |  | b |  | c | |             """ | ||||||
|  |             a   b   c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name | ref   | |             | nodes | name | ref   | | ||||||
| @ -193,7 +219,9 @@ Feature: New-Name Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Same Name, Ref Removed |     Scenario: Same Name, Ref Removed | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |  | b |  | c | |             """ | ||||||
|  |             a   b   c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name | ref   | |             | nodes | name | ref   | | ||||||
| @ -206,7 +234,9 @@ Feature: New-Name Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Name Removed, Ref Extended |     Scenario: Name Removed, Ref Extended | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |  | b |  | c | |             """ | ||||||
|  |             a   b   c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name | ref   | |             | nodes | name | ref   | | ||||||
| @ -219,7 +249,9 @@ Feature: New-Name Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Name Added, Ref Removed |     Scenario: Name Added, Ref Removed | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |  | b |  | c | |             """ | ||||||
|  |             a   b   c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name | ref   | |             | nodes | name | ref   | | ||||||
| @ -232,7 +264,9 @@ Feature: New-Name Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Prefix Change |     Scenario: Prefix Change | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   |   |   | b |   |   |   | c | |             """ | ||||||
|  |             a       b       c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name                     | ref   | highway  | |             | nodes | name                     | ref   | highway  | | ||||||
| @ -245,7 +279,9 @@ Feature: New-Name Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: Prefix Change |     Scenario: Prefix Change | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   |   |   | b |   |   |   | c | |             """ | ||||||
|  |             a       b       c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name                     | ref   | highway  | |             | nodes | name                     | ref   | highway  | | ||||||
| @ -258,7 +294,9 @@ Feature: New-Name Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: No Name, Same Reference |     Scenario: No Name, Same Reference | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   |   |   | b |   |   |   | c | |             """ | ||||||
|  |             a       b       c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name               | ref   | highway  | |             | nodes | name               | ref   | highway  | | ||||||
| @ -271,7 +309,9 @@ Feature: New-Name Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: No Name, Same Reference |     Scenario: No Name, Same Reference | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   |   |   | b |   |   |   | c | |             """ | ||||||
|  |             a       b       c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name               | ref   | highway  | |             | nodes | name               | ref   | highway  | | ||||||
| @ -284,7 +324,9 @@ Feature: New-Name Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: No Name, Same Reference |     Scenario: No Name, Same Reference | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   |   |   | b |   |   |   | c | |             """ | ||||||
|  |             a       b       c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name | ref         | highway  | |             | nodes | name | ref         | highway  | | ||||||
| @ -297,7 +339,9 @@ Feature: New-Name Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: No Name, Same Reference |     Scenario: No Name, Same Reference | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   |   |   | b |   |   |   | c | |             """ | ||||||
|  |             a       b       c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name | ref         | highway  | |             | nodes | name | ref         | highway  | | ||||||
| @ -310,7 +354,9 @@ Feature: New-Name Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: No Name, Same Reference |     Scenario: No Name, Same Reference | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   |   |   | b |   |   |   | c | |             """ | ||||||
|  |             a       b       c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name | ref         | highway  | |             | nodes | name | ref         | highway  | | ||||||
| @ -323,7 +369,9 @@ Feature: New-Name Instructions | |||||||
| 
 | 
 | ||||||
|     Scenario: No Name, Same Reference |     Scenario: No Name, Same Reference | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   |   |   | b |   |   |   | c | |             """ | ||||||
|  |             a       b       c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name | ref         | highway  | |             | nodes | name | ref         | highway  | | ||||||
|  | |||||||
| @ -7,9 +7,11 @@ Feature: Notification on turn onto mode change | |||||||
| 
 | 
 | ||||||
|     Scenario: Turn onto a Ferry |     Scenario: Turn onto a Ferry | ||||||
|         Given the node map |         Given the node map | ||||||
|             | f |   |   |   |   | |             """ | ||||||
|             | b |   |   | d |   | |             f | ||||||
|             | a |   |   |   | e | |             b     d | ||||||
|  |             a       e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | route | name  | |             | nodes | highway | route | name  | | ||||||
| @ -23,9 +25,11 @@ Feature: Notification on turn onto mode change | |||||||
| 
 | 
 | ||||||
|     Scenario: Turn onto a Ferry |     Scenario: Turn onto a Ferry | ||||||
|         Given the node map |         Given the node map | ||||||
|             | h |   |   | g | |             """ | ||||||
|             | a | c |   | e | |             h     g | ||||||
|             | b |   |   | f | |             a c   e | ||||||
|  |             b     f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | route | name  | |             | nodes | highway | route | name  | | ||||||
| @ -41,10 +45,12 @@ Feature: Notification on turn onto mode change | |||||||
| 
 | 
 | ||||||
|     Scenario: Straight onto a Ferry |     Scenario: Straight onto a Ferry | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   |   | |             """ | ||||||
|             |   | c | d |   | i | | 
 | ||||||
|             | a |   |   |   |   | |               c d   i | ||||||
|             |   |   |   | f |   | |             a | ||||||
|  |                   f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | route | name    | |             | nodes | highway | route | name    | | ||||||
|  | |||||||
| @ -7,15 +7,17 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|     Scenario: Turning into splitting road |     Scenario: Turning into splitting road | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | a |   |   | |             """ | ||||||
|             |   | b |   |   | |               a | ||||||
|             |   |   |   |   | |               b | ||||||
|             |   |   |   |   | | 
 | ||||||
|             | c |   | d |   | | 
 | ||||||
|             |   |   |   |   | |             c   d | ||||||
|             |   |   |   | e | | 
 | ||||||
|             |   |   |   |   | |                   e | ||||||
|             |   |   | f |   | | 
 | ||||||
|  |                 f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name | highway | oneway | |             | nodes | name | highway | oneway | | ||||||
| @ -31,18 +33,20 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|     Scenario: Middle Island |     Scenario: Middle Island | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | a |   | |             """ | ||||||
|             |   |   |   | |               a | ||||||
|             |   | b |   | | 
 | ||||||
|             | c |   | h | |               b | ||||||
|             |   |   |   | |             c   h | ||||||
|             |   |   |   | | 
 | ||||||
|             |   |   |   | | 
 | ||||||
|             |   |   |   | | 
 | ||||||
|             | d |   | g | | 
 | ||||||
|             |   | e |   | |             d   g | ||||||
|             |   |   |   | |               e | ||||||
|             |   | f |   | | 
 | ||||||
|  |               f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name | oneway | |             | nodes | name | oneway | | ||||||
| @ -60,18 +64,20 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|     Scenario: Middle Island Over Bridge |     Scenario: Middle Island Over Bridge | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | a |   | |             """ | ||||||
|             |   |   |   | |               a | ||||||
|             |   | b |   | | 
 | ||||||
|             | c |   | h | |               b | ||||||
|             |   |   |   | |             c   h | ||||||
|             |   |   |   | | 
 | ||||||
|             | 1 |   | 2 | | 
 | ||||||
|             |   |   |   | |             1   2 | ||||||
|             | d |   | g | | 
 | ||||||
|             |   | e |   | |             d   g | ||||||
|             |   |   |   | |               e | ||||||
|             |   | f |   | | 
 | ||||||
|  |               f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name   | oneway | |             | nodes | name   | oneway | | ||||||
| @ -96,19 +102,21 @@ Feature: Simple Turns | |||||||
|     @negative |     @negative | ||||||
|     Scenario: Don't Collapse Places: |     Scenario: Don't Collapse Places: | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   |   |   | h |   |   |   |   |   |   | |             """ | ||||||
|             |   |   |   |   |   |   | g |   |   |   |   |   |   | |                         h | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   | |                         g | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             | a | b |   |   |   |   |   |   |   |   |   | e | f | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   | |             a b                   e f | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   | c |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   | d |   |   |   |   |   |   | |                         c | ||||||
|  |                         d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name   | oneway | |             | nodes | name   | oneway | | ||||||
|  | |||||||
| @ -8,9 +8,11 @@ Feature: General Post-Processing related features | |||||||
|     # this testcase used to crash geometry generation (at that time handled during intersection generation) |     # this testcase used to crash geometry generation (at that time handled during intersection generation) | ||||||
|     Scenario: Regression test #2424 |     Scenario: Regression test #2424 | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | e |   |   |   |   |   | i |   |   |   |   | |             """ | ||||||
|             | a |   | b |   | c |   | d |   | h |   | k |   | m | |                 e           i | ||||||
|             |   |   |   |   | f |   |   |   |   |   | l |   |   | |             a   b   c   d   h   k   m | ||||||
|  |                     f           l | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | name                 | |             | nodes  | name                 | | ||||||
|  | |||||||
| @ -7,8 +7,10 @@ Feature: Ramp Guidance | |||||||
| 
 | 
 | ||||||
|     Scenario: Ramp On Through Street Right |     Scenario: Ramp On Through Street Right | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | |             """ | ||||||
|             |   | d |   | |             a b c | ||||||
|  |               d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway       | |             | nodes | highway       | | ||||||
| @ -21,8 +23,10 @@ Feature: Ramp Guidance | |||||||
| 
 | 
 | ||||||
|     Scenario: Ramp On Through Street Left |     Scenario: Ramp On Through Street Left | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | d |   | |             """ | ||||||
|             | a | b | c | |               d | ||||||
|  |             a b c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway       | |             | nodes | highway       | | ||||||
| @ -35,9 +39,11 @@ Feature: Ramp Guidance | |||||||
| 
 | 
 | ||||||
|     Scenario: Ramp On Through Street Left and Right |     Scenario: Ramp On Through Street Left and Right | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | e |   | |             """ | ||||||
|             | a | b | c | |               e | ||||||
|             |   | d |   | |             a b c | ||||||
|  |               d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway       | |             | nodes | highway       | | ||||||
| @ -52,8 +58,10 @@ Feature: Ramp Guidance | |||||||
| 
 | 
 | ||||||
|     Scenario: Ramp On Three Way Intersection Right |     Scenario: Ramp On Three Way Intersection Right | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | |             """ | ||||||
|             |   | d |   | |             a b c | ||||||
|  |               d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway       | |             | nodes | highway       | | ||||||
| @ -67,9 +75,11 @@ Feature: Ramp Guidance | |||||||
| 
 | 
 | ||||||
|     Scenario: Ramp On Three Way Intersection Right |     Scenario: Ramp On Three Way Intersection Right | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | c | |             """ | ||||||
|             | a | b |   | |                 c | ||||||
|             |   | d |   | |             a b | ||||||
|  |               d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway       | |             | nodes | highway       | | ||||||
| @ -83,9 +93,11 @@ Feature: Ramp Guidance | |||||||
| 
 | 
 | ||||||
|     Scenario: Ramp Off Though Street |     Scenario: Ramp Off Though Street | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   | c | |             """ | ||||||
|             | a |   |   | b |   | |                     c | ||||||
|             |   |   |   | d |   | |             a     b | ||||||
|  |                   d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway       | oneway | |             | nodes | highway       | oneway | | ||||||
| @ -99,8 +111,10 @@ Feature: Ramp Guidance | |||||||
| 
 | 
 | ||||||
|     Scenario: Straight Ramp Off Turning Though Street |     Scenario: Straight Ramp Off Turning Though Street | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | c | |             """ | ||||||
|             | a | b | d | |                 c | ||||||
|  |             a b d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway       | |             | nodes | highway       | | ||||||
| @ -114,9 +128,11 @@ Feature: Ramp Guidance | |||||||
| 
 | 
 | ||||||
|     Scenario: Fork Ramp Off Turning Though Street |     Scenario: Fork Ramp Off Turning Though Street | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | c | |             """ | ||||||
|             | a | b |   | |                 c | ||||||
|             |   |   | d | |             a b | ||||||
|  |                 d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway       | |             | nodes | highway       | | ||||||
| @ -130,9 +146,11 @@ Feature: Ramp Guidance | |||||||
| 
 | 
 | ||||||
|     Scenario: Fork Ramp |     Scenario: Fork Ramp | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | c | |             """ | ||||||
|             | a | b |   | |                 c | ||||||
|             |   |   | d | |             a b | ||||||
|  |                 d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway       | |             | nodes | highway       | | ||||||
| @ -147,9 +165,11 @@ Feature: Ramp Guidance | |||||||
| 
 | 
 | ||||||
|     Scenario: Fork Slight Ramp |     Scenario: Fork Slight Ramp | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   | c | |             """ | ||||||
|             | a | b |   |   | |                   c | ||||||
|             |   |   |   | d | |             a b | ||||||
|  |                   d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway       | |             | nodes | highway       | | ||||||
| @ -164,9 +184,11 @@ Feature: Ramp Guidance | |||||||
| 
 | 
 | ||||||
|     Scenario: Fork Slight Ramp on Through Street |     Scenario: Fork Slight Ramp on Through Street | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   | c | |             """ | ||||||
|             | a | b |   |   | |                   c | ||||||
|             |   |   |   | d | |             a b | ||||||
|  |                   d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway       | |             | nodes | highway       | | ||||||
| @ -180,9 +202,11 @@ Feature: Ramp Guidance | |||||||
| 
 | 
 | ||||||
|     Scenario: Fork Slight Ramp on Obvious Through Street |     Scenario: Fork Slight Ramp on Obvious Through Street | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   | c | |             """ | ||||||
|             | a | b |   |   | |                   c | ||||||
|             |   |   |   | d | |             a b | ||||||
|  |                   d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway       | |             | nodes | highway       | | ||||||
| @ -196,9 +220,11 @@ Feature: Ramp Guidance | |||||||
| 
 | 
 | ||||||
|     Scenario: Two Ramps Joining into common Motorway |     Scenario: Two Ramps Joining into common Motorway | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   |   |   | |             """ | ||||||
|             |   |   | c | d | |             a | ||||||
|             | b |   |   |   | |                 c d | ||||||
|  |             b | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway       | |             | nodes | highway       | | ||||||
| @ -213,9 +239,11 @@ Feature: Ramp Guidance | |||||||
| 
 | 
 | ||||||
|     Scenario: Two Ramps Joining into common Motorway Unnamed |     Scenario: Two Ramps Joining into common Motorway Unnamed | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   |   |   | |             """ | ||||||
|             |   |   | c | d | |             a | ||||||
|             | b |   |   |   | |                 c d | ||||||
|  |             b | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway       | name | |             | nodes | highway       | name | | ||||||
|  | |||||||
| @ -7,11 +7,13 @@ Feature: Rotary | |||||||
| 
 | 
 | ||||||
|     Scenario: Enter and Exit |     Scenario: Enter and Exit | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | a |   |   | |             """ | ||||||
|             |   |   | b |   |   | |                 a | ||||||
|             | h | g |   | c | d | |                 b | ||||||
|             |   |   | e |   |   | |             h g   c d | ||||||
|             |   |   | f |   |   | |                 e | ||||||
|  |                 f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|        And the ways |        And the ways | ||||||
|             | nodes  | junction   | |             | nodes  | junction   | | ||||||
| @ -38,11 +40,13 @@ Feature: Rotary | |||||||
| 
 | 
 | ||||||
|     Scenario: Only Enter |     Scenario: Only Enter | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | a |   |   | |             """ | ||||||
|             |   |   | b |   |   | |                 a | ||||||
|             | d | c |   | g | h | |                 b | ||||||
|             |   |   | e |   |   | |             d c   g h | ||||||
|             |   |   | f |   |   | |                 e | ||||||
|  |                 f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|        And the ways |        And the ways | ||||||
|             | nodes  | junction   | |             | nodes  | junction   | | ||||||
| @ -69,11 +73,13 @@ Feature: Rotary | |||||||
| 
 | 
 | ||||||
|     Scenario: Only Exit |     Scenario: Only Exit | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | a |   |   | |             """ | ||||||
|             |   |   | b |   |   | |                 a | ||||||
|             | d | c |   | g | h | |                 b | ||||||
|             |   |   | e |   |   | |             d c   g h | ||||||
|             |   |   | f |   |   | |                 e | ||||||
|  |                 f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|        And the ways |        And the ways | ||||||
|             | nodes  | junction   | |             | nodes  | junction   | | ||||||
| @ -101,11 +107,13 @@ Feature: Rotary | |||||||
| 
 | 
 | ||||||
|     Scenario: Drive Around |     Scenario: Drive Around | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | a |   |   | |             """ | ||||||
|             |   |   | b |   |   | |                 a | ||||||
|             | d | c |   | g | h | |                 b | ||||||
|             |   |   | e |   |   | |             d c   g h | ||||||
|             |   |   | f |   |   | |                 e | ||||||
|  |                 f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|        And the ways |        And the ways | ||||||
|             | nodes  | junction   | |             | nodes  | junction   | | ||||||
| @ -133,11 +141,13 @@ Feature: Rotary | |||||||
|      #needs to be adjusted when name-discovery works for entrys |      #needs to be adjusted when name-discovery works for entrys | ||||||
|      Scenario: Mixed Entry and Exit |      Scenario: Mixed Entry and Exit | ||||||
|         Given the node map |         Given the node map | ||||||
|            |   | c |   | a |   | |            """ | ||||||
|            | j |   | b |   | f | |              c   a | ||||||
|            |   | k |   | e |   | |            j   b   f | ||||||
|            | l |   | h |   | d | |              k   e | ||||||
|            |   | g |   | i |   | |            l   h   d | ||||||
|  |              g   i | ||||||
|  |            """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|            | nodes | junction   | oneway | |            | nodes | junction   | oneway | | ||||||
|  | |||||||
| @ -7,11 +7,13 @@ Feature: Rotary | |||||||
| 
 | 
 | ||||||
|     Scenario: Enter and Exit |     Scenario: Enter and Exit | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | a |   |   | |             """ | ||||||
|             |   |   | b |   |   | |                 a | ||||||
|             | h | g |   | c | d | |                 b | ||||||
|             |   |   | e |   |   | |             h g   c d | ||||||
|             |   |   | f |   |   | |                 e | ||||||
|  |                 f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|        And the ways |        And the ways | ||||||
|             | nodes  | junction   | |             | nodes  | junction   | | ||||||
| @ -38,11 +40,13 @@ Feature: Rotary | |||||||
| 
 | 
 | ||||||
|     Scenario: Only Enter |     Scenario: Only Enter | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | a |   |   | |             """ | ||||||
|             |   |   | b |   |   | |                 a | ||||||
|             | d | c |   | g | h | |                 b | ||||||
|             |   |   | e |   |   | |             d c   g h | ||||||
|             |   |   | f |   |   | |                 e | ||||||
|  |                 f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|        And the ways |        And the ways | ||||||
|             | nodes  | junction   | |             | nodes  | junction   | | ||||||
| @ -69,11 +73,13 @@ Feature: Rotary | |||||||
| 
 | 
 | ||||||
|     Scenario: Only Exit |     Scenario: Only Exit | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | a |   |   | |             """ | ||||||
|             |   |   | b |   |   | |                 a | ||||||
|             | d | c |   | g | h | |                 b | ||||||
|             |   |   | e |   |   | |             d c   g h | ||||||
|             |   |   | f |   |   | |                 e | ||||||
|  |                 f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|        And the ways |        And the ways | ||||||
|             | nodes  | junction   | |             | nodes  | junction   | | ||||||
| @ -101,11 +107,13 @@ Feature: Rotary | |||||||
| 
 | 
 | ||||||
|     Scenario: Drive Around |     Scenario: Drive Around | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | a |   |   | |             """ | ||||||
|             |   |   | b |   |   | |                 a | ||||||
|             | d | c |   | g | h | |                 b | ||||||
|             |   |   | e |   |   | |             d c   g h | ||||||
|             |   |   | f |   |   | |                 e | ||||||
|  |                 f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|        And the ways |        And the ways | ||||||
|             | nodes  | junction   | |             | nodes  | junction   | | ||||||
| @ -133,11 +141,13 @@ Feature: Rotary | |||||||
|      #needs to be adjusted when name-discovery works for entrys |      #needs to be adjusted when name-discovery works for entrys | ||||||
|      Scenario: Mixed Entry and Exit |      Scenario: Mixed Entry and Exit | ||||||
|         Given the node map |         Given the node map | ||||||
|            |   | c |   | a |   | |            """ | ||||||
|            | j |   | b |   | f | |              c   a | ||||||
|            |   | k |   | e |   | |            j   b   f | ||||||
|            | l |   | h |   | d | |              k   e | ||||||
|            |   | g |   | i |   | |            l   h   d | ||||||
|  |              g   i | ||||||
|  |            """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|            | nodes | junction   | oneway | |            | nodes | junction   | oneway | | ||||||
| @ -168,10 +178,12 @@ Feature: Rotary | |||||||
| 
 | 
 | ||||||
|        Scenario: Collinear in X,Y |        Scenario: Collinear in X,Y | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   |   | |             """ | ||||||
|             | b |   |   | |             a | ||||||
|             | c | d | f | |             b | ||||||
|             | e |   |   | |             c d f | ||||||
|  |             e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | junction   | |             | nodes | junction   | | ||||||
| @ -187,10 +199,12 @@ Feature: Rotary | |||||||
| 
 | 
 | ||||||
|        Scenario: Collinear in X,Y |        Scenario: Collinear in X,Y | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   |   | |             """ | ||||||
|             | d |   |   | |             a | ||||||
|             | b | c | f | |             d | ||||||
|             | e |   |   | |             b c f | ||||||
|  |             e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | junction   | |             | nodes | junction   | | ||||||
| @ -206,10 +220,12 @@ Feature: Rotary | |||||||
| 
 | 
 | ||||||
|        Scenario: Collinear in X,Y |        Scenario: Collinear in X,Y | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   |   | |             """ | ||||||
|             | c |   |   | |             a | ||||||
|             | d | b | f | |             c | ||||||
|             | e |   |   | |             d b f | ||||||
|  |             e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | junction   | |             | nodes | junction   | | ||||||
| @ -225,10 +241,12 @@ Feature: Rotary | |||||||
| 
 | 
 | ||||||
|        Scenario: Collinear in X,Y |        Scenario: Collinear in X,Y | ||||||
|         Given the node map |         Given the node map | ||||||
|             | f |   |   | |             """ | ||||||
|             | d | c | e | |             f | ||||||
|             |   | b |   | |             d c e | ||||||
|             |   | a |   | |               b | ||||||
|  |               a | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | junction   | |             | nodes | junction   | | ||||||
| @ -244,10 +262,12 @@ Feature: Rotary | |||||||
| 
 | 
 | ||||||
|        Scenario: Collinear in X,Y |        Scenario: Collinear in X,Y | ||||||
|         Given the node map |         Given the node map | ||||||
|             | f |   |   | |             """ | ||||||
|             | d | c | e | |             f | ||||||
|             | b |   |   | |             d c e | ||||||
|             | a |   |   | |             b | ||||||
|  |             a | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | junction   | |             | nodes | junction   | | ||||||
|  | |||||||
| @ -7,11 +7,13 @@ Feature: Basic Roundabout | |||||||
| 
 | 
 | ||||||
|     Scenario: Only Enter |     Scenario: Only Enter | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | a |   |   | |             """ | ||||||
|             |   |   | b |   |   | |                 a | ||||||
|             | d | c |   | g | h | |                 b | ||||||
|             |   |   | e |   |   | |             d c   g h | ||||||
|             |   |   | f |   |   | |                 e | ||||||
|  |                 f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|        And the ways |        And the ways | ||||||
|             | nodes  | junction   | |             | nodes  | junction   | | ||||||
| @ -38,11 +40,13 @@ Feature: Basic Roundabout | |||||||
| 
 | 
 | ||||||
|     Scenario: Only Exit |     Scenario: Only Exit | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | a |   |   | |             """ | ||||||
|             |   |   | b |   |   | |                 a | ||||||
|             | d | c |   | g | h | |                 b | ||||||
|             |   |   | e |   |   | |             d c   g h | ||||||
|             |   |   | f |   |   | |                 e | ||||||
|  |                 f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|        And the ways |        And the ways | ||||||
|             | nodes  | junction   | |             | nodes  | junction   | | ||||||
| @ -70,11 +74,13 @@ Feature: Basic Roundabout | |||||||
| 
 | 
 | ||||||
|     Scenario: Drive Around |     Scenario: Drive Around | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | a |   |   | |             """ | ||||||
|             |   |   | b |   |   | |                 a | ||||||
|             | d | c |   | g | h | |                 b | ||||||
|             |   |   | e |   |   | |             d c   g h | ||||||
|             |   |   | f |   |   | |                 e | ||||||
|  |                 f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|        And the ways |        And the ways | ||||||
|             | nodes  | junction   | |             | nodes  | junction   | | ||||||
| @ -101,11 +107,13 @@ Feature: Basic Roundabout | |||||||
| 
 | 
 | ||||||
|      Scenario: Mixed Entry and Exit |      Scenario: Mixed Entry and Exit | ||||||
|         Given the node map |         Given the node map | ||||||
|            |   | c |   | a |   | |            """ | ||||||
|            | j |   | b |   | f | |              c   a | ||||||
|            |   | k |   | e |   | |            j   b   f | ||||||
|            | l |   | h |   | d | |              k   e | ||||||
|            |   | g |   | i |   | |            l   h   d | ||||||
|  |              g   i | ||||||
|  |            """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|            | nodes | junction   | oneway | |            | nodes | junction   | oneway | | ||||||
|  | |||||||
| @ -7,11 +7,13 @@ Feature: Basic Roundabout | |||||||
| 
 | 
 | ||||||
|     Scenario: Enter and Exit |     Scenario: Enter and Exit | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | a |   |   | |             """ | ||||||
|             |   |   | b |   |   | |                 a | ||||||
|             | h | g |   | c | d | |                 b | ||||||
|             |   |   | e |   |   | |             h g   c d | ||||||
|             |   |   | f |   |   | |                 e | ||||||
|  |                 f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|        And the ways |        And the ways | ||||||
|             | nodes  | junction   | |             | nodes  | junction   | | ||||||
|  | |||||||
| @ -7,11 +7,13 @@ Feature: Basic Roundabout | |||||||
| 
 | 
 | ||||||
|     Scenario: Enter and Exit |     Scenario: Enter and Exit | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | a |   |   | |             """ | ||||||
|             |   |   | b |   |   | |                 a | ||||||
|             | h | g |   | c | d | |                 b | ||||||
|             |   |   | e |   |   | |             h g   c d | ||||||
|             |   |   | f |   |   | |                 e | ||||||
|  |                 f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|        And the ways |        And the ways | ||||||
|             | nodes  | junction   | |             | nodes  | junction   | | ||||||
| @ -38,10 +40,12 @@ Feature: Basic Roundabout | |||||||
| 
 | 
 | ||||||
|     Scenario: Enter and Exit - Rotated |     Scenario: Enter and Exit - Rotated | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   |   | d | |             """ | ||||||
|             |   | b | c |   | |             a     d | ||||||
|             |   | g | e |   | |               b c | ||||||
|             | h |   |   | f | |               g e | ||||||
|  |             h     f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|        And the ways |        And the ways | ||||||
|             | nodes  | junction   | |             | nodes  | junction   | | ||||||
| @ -68,11 +72,13 @@ Feature: Basic Roundabout | |||||||
| 
 | 
 | ||||||
|     Scenario: Only Enter |     Scenario: Only Enter | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | a |   |   | |             """ | ||||||
|             |   |   | b |   |   | |                 a | ||||||
|             | d | c |   | g | h | |                 b | ||||||
|             |   |   | e |   |   | |             d c   g h | ||||||
|             |   |   | f |   |   | |                 e | ||||||
|  |                 f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|        And the ways |        And the ways | ||||||
|             | nodes  | junction   | |             | nodes  | junction   | | ||||||
| @ -99,11 +105,13 @@ Feature: Basic Roundabout | |||||||
| 
 | 
 | ||||||
|     Scenario: Only Exit |     Scenario: Only Exit | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | a |   |   | |             """ | ||||||
|             |   |   | b |   |   | |                 a | ||||||
|             | d | c |   | g | h | |                 b | ||||||
|             |   |   | e |   |   | |             d c   g h | ||||||
|             |   |   | f |   |   | |                 e | ||||||
|  |                 f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|        And the ways |        And the ways | ||||||
|             | nodes  | junction   | |             | nodes  | junction   | | ||||||
| @ -131,11 +139,13 @@ Feature: Basic Roundabout | |||||||
| 
 | 
 | ||||||
|     Scenario: Drive Around |     Scenario: Drive Around | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | a |   |   | |             """ | ||||||
|             |   |   | b |   |   | |                 a | ||||||
|             | d | c |   | g | h | |                 b | ||||||
|             |   |   | e |   |   | |             d c   g h | ||||||
|             |   |   | f |   |   | |                 e | ||||||
|  |                 f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|        And the ways |        And the ways | ||||||
|             | nodes  | junction   | |             | nodes  | junction   | | ||||||
| @ -162,11 +172,13 @@ Feature: Basic Roundabout | |||||||
| 
 | 
 | ||||||
|      Scenario: Mixed Entry and Exit - Not an Intersection |      Scenario: Mixed Entry and Exit - Not an Intersection | ||||||
|         Given the node map |         Given the node map | ||||||
|            |   | c |   | a |   | |            """ | ||||||
|            | j |   | b |   | f | |              c   a | ||||||
|            |   | k |   | e |   | |            j   b   f | ||||||
|            | l |   | h |   | d | |              k   e | ||||||
|            |   | g |   | i |   | |            l   h   d | ||||||
|  |              g   i | ||||||
|  |            """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|            | nodes | junction   | oneway | |            | nodes | junction   | oneway | | ||||||
| @ -197,11 +209,13 @@ Feature: Basic Roundabout | |||||||
| 
 | 
 | ||||||
|     Scenario: Segregated roads - Not an intersection |     Scenario: Segregated roads - Not an intersection | ||||||
|         Given the node map |         Given the node map | ||||||
|            |   | a |   | c |   | |            """ | ||||||
|            | l |   | b |   | d | |              a   c | ||||||
|            |   | k |   | e |   | |            l   b   d | ||||||
|            | j |   | h |   | f | |              k   e | ||||||
|            |   | i |   | g |   | |            j   h   f | ||||||
|  |              i   g | ||||||
|  |            """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|            | nodes | junction   | oneway | |            | nodes | junction   | oneway | | ||||||
| @ -232,8 +246,10 @@ Feature: Basic Roundabout | |||||||
| 
 | 
 | ||||||
|        Scenario: Collinear in X |        Scenario: Collinear in X | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | d | f | |             """ | ||||||
|             |   |   | e |   |   | |             a b c d f | ||||||
|  |                 e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | junction   | |             | nodes | junction   | | ||||||
| @ -249,11 +265,13 @@ Feature: Basic Roundabout | |||||||
| 
 | 
 | ||||||
|        Scenario: Collinear in Y |        Scenario: Collinear in Y | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | a | |             """ | ||||||
|             |   | b | |               a | ||||||
|             | e | c | |               b | ||||||
|             |   | d | |             e c | ||||||
|             |   | f | |               d | ||||||
|  |               f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | junction   | |             | nodes | junction   | | ||||||
| @ -269,10 +287,12 @@ Feature: Basic Roundabout | |||||||
| 
 | 
 | ||||||
|        Scenario: Collinear in X,Y |        Scenario: Collinear in X,Y | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   |   | |             """ | ||||||
|             | b |   |   | |             a | ||||||
|             | c | d | f | |             b | ||||||
|             | e |   |   | |             c d f | ||||||
|  |             e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | junction   | |             | nodes | junction   | | ||||||
| @ -288,10 +308,12 @@ Feature: Basic Roundabout | |||||||
| 
 | 
 | ||||||
|        Scenario: Collinear in X,Y |        Scenario: Collinear in X,Y | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   |   | |             """ | ||||||
|             | d |   |   | |             a | ||||||
|             | b | c | f | |             d | ||||||
|             | e |   |   | |             b c f | ||||||
|  |             e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | junction   | |             | nodes | junction   | | ||||||
| @ -307,10 +329,12 @@ Feature: Basic Roundabout | |||||||
| 
 | 
 | ||||||
|        Scenario: Collinear in X,Y |        Scenario: Collinear in X,Y | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   |   | |             """ | ||||||
|             | c |   |   | |             a | ||||||
|             | d | b | f | |             c | ||||||
|             | e |   |   | |             d b f | ||||||
|  |             e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | junction   | |             | nodes | junction   | | ||||||
| @ -326,11 +350,13 @@ Feature: Basic Roundabout | |||||||
| 
 | 
 | ||||||
|     Scenario: Enter and Exit -- too complex |     Scenario: Enter and Exit -- too complex | ||||||
|         Given the node map |         Given the node map | ||||||
|             | j |   | a |   |   | |             """ | ||||||
|             |   | i | b |   |   | |             j   a | ||||||
|             |   | g |   | c | d | |               i b | ||||||
|             | h |   | e |   |   | |               g   c d | ||||||
|             |   |   | f |   |   | |             h   e | ||||||
|  |                 f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|        And the ways |        And the ways | ||||||
|             | nodes  | junction   | |             | nodes  | junction   | | ||||||
| @ -358,11 +384,13 @@ Feature: Basic Roundabout | |||||||
| 
 | 
 | ||||||
|     Scenario: Enter and Exit -- Non-Distinct |     Scenario: Enter and Exit -- Non-Distinct | ||||||
|         Given the node map |         Given the node map | ||||||
|            |   |   | a |   |   | |            """ | ||||||
|            |   |   | b |   |   | |                a | ||||||
|            |   | g |   | c | d | |                b | ||||||
|            |   |   | e |   |   | |              g   c d | ||||||
|            | h |   | f |   |   | |                e | ||||||
|  |            h   f | ||||||
|  |            """ | ||||||
| 
 | 
 | ||||||
|        And the ways |        And the ways | ||||||
|             | nodes | junction   | |             | nodes | junction   | | ||||||
| @ -389,11 +417,13 @@ Feature: Basic Roundabout | |||||||
| 
 | 
 | ||||||
|     Scenario: Enter and Exit -- Bearing |     Scenario: Enter and Exit -- Bearing | ||||||
|         Given the node map |         Given the node map | ||||||
|            |   |   | a |   |   | |            """ | ||||||
|            |   |   | b |   |   | |                a | ||||||
|            | h | g |   | c | d | |                b | ||||||
|            |   |   | e |   |   | |            h g   c d | ||||||
|            |   |   | f |   |   | |                e | ||||||
|  |                f | ||||||
|  |            """ | ||||||
| 
 | 
 | ||||||
|        And the ways |        And the ways | ||||||
|             | nodes | junction   | |             | nodes | junction   | | ||||||
| @ -411,13 +441,15 @@ Feature: Basic Roundabout | |||||||
| 
 | 
 | ||||||
|     Scenario: Enter and Exit - Bearings |     Scenario: Enter and Exit - Bearings | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   | a |   |   |   | |             """ | ||||||
|             |   |   |   |   |   |   |   | |                   a | ||||||
|             |   |   | i | b | l |   |   | | 
 | ||||||
|             | h |   | g |   | c |   | d | |                 i b l | ||||||
|             |   |   | j | e | k |   |   | |             h   g   c   d | ||||||
|             |   |   |   |   |   |   |   | |                 j e k | ||||||
|             |   |   |   | f |   |   |   | | 
 | ||||||
|  |                   f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|        And the ways |        And the ways | ||||||
|             | nodes      | junction   | |             | nodes      | junction   | | ||||||
| @ -437,19 +469,21 @@ Feature: Basic Roundabout | |||||||
|     # http://www.openstreetmap.org/way/348812150 |     # http://www.openstreetmap.org/way/348812150 | ||||||
|     # Note: grid size is 3 meter, this roundabout is more like 5-10 meters in radius |     # Note: grid size is 3 meter, this roundabout is more like 5-10 meters in radius | ||||||
|         Given the node map |         Given the node map | ||||||
|            |   |   |   | a |   |   |   |   |   | |            """ | ||||||
|            |   |   |   |   |   |   |   |   |   | |                  a | ||||||
|            |   |   |   | b |   | n |   |   |   | | 
 | ||||||
|            |   |   |   |   |   |   |   |   |   | |                  b   n | ||||||
|            |   |   | c |   |   |   | m |   |   | | 
 | ||||||
|            |   |   |   |   |   |   |   |   |   | |                c       m | ||||||
|            | e |   | d |   |   |   | k |   | l | | 
 | ||||||
|            |   |   |   |   |   |   |   |   |   | |            e   d       k   l | ||||||
|            |   |   | f |   |   |   | j |   |   | | 
 | ||||||
|            |   |   |   |   |   |   |   |   |   | |                f       j | ||||||
|            |   |   |   | g |   | i |   |   |   | | 
 | ||||||
|            |   |   |   |   |   |   |   |   |   | |                  g   i | ||||||
|            |   |   |   | h |   |   |   |   |   | | 
 | ||||||
|  |                  h | ||||||
|  |            """ | ||||||
| 
 | 
 | ||||||
|        And the ways |        And the ways | ||||||
|             | nodes       | junction   | highway  | name            | |             | nodes       | junction   | highway  | name            | | ||||||
| @ -476,11 +510,13 @@ Feature: Basic Roundabout | |||||||
| 
 | 
 | ||||||
|     Scenario: Enter and Exit - Traffic Signals |     Scenario: Enter and Exit - Traffic Signals | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | a |   |   | |             """ | ||||||
|             |   | i | b | l |   | |                 a | ||||||
|             | h | g |   | c | d | |               i b l | ||||||
|             |   | j | e | k |   | |             h g   c d | ||||||
|             |   |   | f |   |   | |               j e k | ||||||
|  |                 f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|        And the nodes |        And the nodes | ||||||
|             | node | highway         | |             | node | highway         | | ||||||
| @ -516,11 +552,13 @@ Feature: Basic Roundabout | |||||||
|     #at some point we probably want to recognise these situations and don't mention the roundabout at all here |     #at some point we probably want to recognise these situations and don't mention the roundabout at all here | ||||||
|     Scenario: Enter And Exit Throughabout |     Scenario: Enter And Exit Throughabout | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   |   | h |   |   |   |   | |             """ | ||||||
|             |   |   |   |   |   |   |   |   |   |   | |                       h | ||||||
|             | c | b |   | d |   |   |   | e |   | f | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   | |             c b   d       e   f | ||||||
|             |   | a |   |   |   | g |   |   |   |   | | 
 | ||||||
|  |               a       g | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway       | name    | junction   | oneway | |             | nodes | highway       | name    | junction   | oneway | | ||||||
|  | |||||||
| @ -7,11 +7,13 @@ Feature: Basic Roundabout | |||||||
| 
 | 
 | ||||||
|     Scenario: Only Enter |     Scenario: Only Enter | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | a |   |   | |             """ | ||||||
|             |   |   | b |   |   | |                 a | ||||||
|             | d | c |   | g | h | |                 b | ||||||
|             |   |   | e |   |   | |             d c   g h | ||||||
|             |   |   | f |   |   | |                 e | ||||||
|  |                 f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|        And the ways |        And the ways | ||||||
|             | nodes  | junction   | |             | nodes  | junction   | | ||||||
| @ -39,13 +41,11 @@ Feature: Basic Roundabout | |||||||
|     #2927 |     #2927 | ||||||
|     Scenario: Only Roundabout |     Scenario: Only Roundabout | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | a |   |   | |             """ | ||||||
|             |   |   |   |   |   | |               a | ||||||
|             |   |   |   |   |   | |             b   d | ||||||
|             | b |   |   |   | d | |               c | ||||||
|             |   |   |   |   |   | |             """ | ||||||
|             |   |   |   |   |   | |  | ||||||
|             |   |   | c |   |   | |  | ||||||
| 
 | 
 | ||||||
|        And the ways |        And the ways | ||||||
|             | nodes  | junction   | |             | nodes  | junction   | | ||||||
| @ -57,11 +57,13 @@ Feature: Basic Roundabout | |||||||
| 
 | 
 | ||||||
|     Scenario: Only Exit |     Scenario: Only Exit | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | a |   |   | |             """ | ||||||
|             |   |   | b |   |   | |                 a | ||||||
|             | d | c |   | g | h | |                 b | ||||||
|             |   |   | e |   |   | |             d c   g h | ||||||
|             |   |   | f |   |   | |                 e | ||||||
|  |                 f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|        And the ways |        And the ways | ||||||
|             | nodes  | junction   | |             | nodes  | junction   | | ||||||
| @ -89,11 +91,13 @@ Feature: Basic Roundabout | |||||||
| 
 | 
 | ||||||
|     Scenario: Drive Around |     Scenario: Drive Around | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | a |   |   | |             """ | ||||||
|             |   |   | b |   |   | |                 a | ||||||
|             | d | c |   | g | h | |                 b | ||||||
|             |   |   | e |   |   | |             d c   g h | ||||||
|             |   |   | f |   |   | |                 e | ||||||
|  |                 f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|        And the ways |        And the ways | ||||||
|             | nodes  | junction   | |             | nodes  | junction   | | ||||||
| @ -120,11 +124,13 @@ Feature: Basic Roundabout | |||||||
| 
 | 
 | ||||||
|      Scenario: Mixed Entry and Exit |      Scenario: Mixed Entry and Exit | ||||||
|         Given the node map |         Given the node map | ||||||
|            |   | c |   | a |   | |            """ | ||||||
|            | j |   | b |   | f | |              c   a | ||||||
|            |   | k |   | e |   | |            j   b   f | ||||||
|            | l |   | h |   | d | |              k   e | ||||||
|            |   | g |   | i |   | |            l   h   d | ||||||
|  |              g   i | ||||||
|  |            """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|            | nodes | junction   | oneway | |            | nodes | junction   | oneway | | ||||||
| @ -155,13 +161,15 @@ Feature: Basic Roundabout | |||||||
| 
 | 
 | ||||||
|     Scenario: Mixed Entry and Exit - segregated roads |     Scenario: Mixed Entry and Exit - segregated roads | ||||||
|         Given the node map |         Given the node map | ||||||
|            |   |   | a |   | c |   |   | |            """ | ||||||
|            |   |   |   |   |   |   |   | |                a   c | ||||||
|            | l |   |   | b |   |   | d | | 
 | ||||||
|            |   |   | k |   | e |   |   | |            l     b     d | ||||||
|            | j |   |   | h |   |   | f | |                k   e | ||||||
|            |   |   |   |   |   |   |   | |            j     h     f | ||||||
|            |   |   | i |   | g |   |   | | 
 | ||||||
|  |                i   g | ||||||
|  |            """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|            | nodes | junction   | oneway | |            | nodes | junction   | oneway | | ||||||
| @ -192,13 +200,15 @@ Feature: Basic Roundabout | |||||||
| 
 | 
 | ||||||
|     Scenario: Mixed Entry and Exit - segregated roads, different names |     Scenario: Mixed Entry and Exit - segregated roads, different names | ||||||
|         Given the node map |         Given the node map | ||||||
|            |   |   | a |   | c |   |   | |            """ | ||||||
|            |   |   |   |   |   |   |   | |                a   c | ||||||
|            | l |   |   | b |   |   | d | | 
 | ||||||
|            |   |   | k |   | e |   |   | |            l     b     d | ||||||
|            | j |   |   | h |   |   | f | |                k   e | ||||||
|            |   |   |   |   |   |   |   | |            j     h     f | ||||||
|            |   |   | i |   | g |   |   | | 
 | ||||||
|  |                i   g | ||||||
|  |            """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|            | nodes | junction   | oneway | |            | nodes | junction   | oneway | | ||||||
| @ -234,21 +244,23 @@ Feature: Basic Roundabout | |||||||
|     Scenario: Motorway Roundabout |     Scenario: Motorway Roundabout | ||||||
|     #See 39.933742 -75.082345 |     #See 39.933742 -75.082345 | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   | l |   |   |   | a |   | i | |             """ | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   | |                     l       a   i | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   | b |   |   |   |   | | 
 | ||||||
|             |   |   |   | c |   |   |   |   |   |   |   | |                         b | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   | |                   c | ||||||
|             |   |   |   |   |   |   |   |   | h |   |   | | 
 | ||||||
|             | n |   |   |   |   |   |   |   |   |   |   | |                             h | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   | |             n | ||||||
|             |   |   | d |   |   |   |   |   |   |   | j | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   | |                 d               j | ||||||
|             |   |   |   |   | m |   |   | g |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   | |                     m     g | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   | e |   | f |   |   |   |   |   |   | | 
 | ||||||
|  |                 e   f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | junction   | name     | highway    | oneway | ref    | |             | nodes | junction   | name     | highway    | oneway | ref    | | ||||||
| @ -272,15 +284,17 @@ Feature: Basic Roundabout | |||||||
|     Scenario: Double Roundabout with through-lane |     Scenario: Double Roundabout with through-lane | ||||||
|     #http://map.project-osrm.org/?z=18¢er=38.911752%2C-77.048667&loc=38.912003%2C-77.050831&loc=38.909277%2C-77.042516&hl=en&alt=0 |     #http://map.project-osrm.org/?z=18¢er=38.911752%2C-77.048667&loc=38.912003%2C-77.050831&loc=38.909277%2C-77.042516&hl=en&alt=0 | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   | o |   |   |   |   |   |   |   |   |   |   |   | n |   |   |   |   | |             """ | ||||||
|             |   |   |   |   | e |   |   |   |   |   |   |   |   |   |   |   | j |   |   |   |   | |                     o                       n | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | |                     e                       j | ||||||
|             |   |   |   |   |   |   | q |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             | a |   | b |   |   |   |   |   | s |   | f |   |   |   | g |   |   |   | i |   | k | |                         q | ||||||
|             |   |   |   |   |   |   | r |   |   |   |   |   |   |   |   |   |   | p |   |   |   | |             a   b           s   f       g       i   k | ||||||
|             |   |   |   |   |   |   |   |   |   |   | t |   |   |   |   |   |   |   |   |   |   | |                         r                     p | ||||||
|             |   |   |   |   | c |   | d |   |   |   |   |   |   |   |   |   | h |   |   |   |   | |                                 t | ||||||
|             |   |   |   |   | l |   |   |   |   |   |   |   |   |   |   |   | m |   |   |   |   | |                     c   d                   h | ||||||
|  |                     l                       m | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the nodes |         And the nodes | ||||||
|             | node | highway         | |             | node | highway         | | ||||||
| @ -311,36 +325,38 @@ Feature: Basic Roundabout | |||||||
|     #2856 - http://www.openstreetmap.org/#map=19/47.23318/-1.56563 |     #2856 - http://www.openstreetmap.org/#map=19/47.23318/-1.56563 | ||||||
|     Scenario: Linked Roundabouts |     Scenario: Linked Roundabouts | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   | x | |             """ | ||||||
|             |   | u |   |   |   |   |   |   |   |   |   |   | r |   | |                                     x | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   | |             u                     r   | ||||||
|             |   |   |   | t |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   | s |   |   |   | |                 t                     | ||||||
|             |   |   | v |   |   | i |   | h |   | g |   |   |   |   | |                               s       | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   | q |   |   | |               v     i   h   g         | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   | |                                 q     | ||||||
|             |   |   |   | j |   |   |   |   |   |   |   | f |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   | |                 j               f     | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   | a |   |   |   |   |   |   |   | e |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   | |                 a               e     | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   | |                     | ||||||
|             |   |   |   |   |   | b |   | c |   | d |   | p |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   | |                     b   c   d   p     | ||||||
|             |   |   | m |   |   |   |   |   |   |   | n |   |   |   | | 
 | ||||||
|             |   |   |   |   | l |   |   |   |   |   |   |   |   |   | |               m               n       | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   | |                   l                   | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   | k |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   | |               k                       | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   | w |   |   |   |   |   |   |   |   |   | o |   |   | | 
 | ||||||
|  |             w                   o     | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | junction   | name | highway   | oneway | |             | nodes | junction   | name | highway   | oneway | | ||||||
|  | |||||||
| @ -9,12 +9,14 @@ Feature: Staggered Intersections | |||||||
|     # https://www.openstreetmap.org/#map=19/39.26022/-84.25144 |     # https://www.openstreetmap.org/#map=19/39.26022/-84.25144 | ||||||
|     Scenario: Staggered Intersection: Oak St, Cedar Dr |     Scenario: Staggered Intersection: Oak St, Cedar Dr | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | j |   |   | |             """ | ||||||
|             | a | b | c |   |   | |                 j | ||||||
|             |   |   | d |   |   | |             a b c | ||||||
|             |   |   | e | f | g | |                 d | ||||||
|             |   |   | h |   |   | |                 e f g | ||||||
|             |   |   | i |   |   | |                 h | ||||||
|  |                 i | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway     | name     | |             | nodes  | highway     | name     | | ||||||
| @ -29,16 +31,18 @@ Feature: Staggered Intersections | |||||||
| 
 | 
 | ||||||
|     Scenario: Staggered Intersection: do not collapse if long segment in between |     Scenario: Staggered Intersection: do not collapse if long segment in between | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | j |   |   | |             """ | ||||||
|             | a | b | c |   |   | |                 j | ||||||
|             |   |   |   |   |   | |             a b c | ||||||
|             |   |   |   |   |   | | 
 | ||||||
|             |   |   | d |   |   | | 
 | ||||||
|             |   |   |   |   |   | |                 d | ||||||
|             |   |   |   |   |   | | 
 | ||||||
|             |   |   | e | f | g | | 
 | ||||||
|             |   |   | h |   |   | |                 e f g | ||||||
|             |   |   | i |   |   | |                 h | ||||||
|  |                 i | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway     | name     | |             | nodes  | highway     | name     | | ||||||
| @ -53,12 +57,14 @@ Feature: Staggered Intersections | |||||||
| 
 | 
 | ||||||
|     Scenario: Staggered Intersection: do not collapse if not left-right or right-left |     Scenario: Staggered Intersection: do not collapse if not left-right or right-left | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | j |   |   | |             """ | ||||||
|             | a | b | c |   |   | |                 j | ||||||
|             |   |   | d |   |   | |             a b c | ||||||
|             | g | f | e |   |   | |                 d | ||||||
|             |   |   | h |   |   | |             g f e | ||||||
|             |   |   | i |   |   | |                 h | ||||||
|  |                 i | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway     | name     | |             | nodes  | highway     | name     | | ||||||
| @ -73,12 +79,14 @@ Feature: Staggered Intersections | |||||||
| 
 | 
 | ||||||
|     Scenario: Staggered Intersection: do not collapse if the names are not the same |     Scenario: Staggered Intersection: do not collapse if the names are not the same | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | j |   |   | |             """ | ||||||
|             | a | b | c |   |   | |                 j | ||||||
|             |   |   | d |   |   | |             a b c | ||||||
|             |   |   | e | f | g | |                 d | ||||||
|             |   |   | h |   |   | |                 e f g | ||||||
|             |   |   | i |   |   | |                 h | ||||||
|  |                 i | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway     | name     | |             | nodes  | highway     | name     | | ||||||
|  | |||||||
| @ -7,7 +7,9 @@ Feature: Suppress New Names on dedicated Suffices | |||||||
| 
 | 
 | ||||||
|     Scenario: Suffix To Suffix |     Scenario: Suffix To Suffix | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b |   | c | |             """ | ||||||
|  |             a   b   c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | name | |             | nodes  | name | | ||||||
| @ -20,7 +22,9 @@ Feature: Suppress New Names on dedicated Suffices | |||||||
| 
 | 
 | ||||||
|     Scenario: Suffix To Suffix Ref |     Scenario: Suffix To Suffix Ref | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b |   | c | |             """ | ||||||
|  |             a   b   c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | name | ref | |             | nodes  | name | ref | | ||||||
| @ -33,7 +37,9 @@ Feature: Suppress New Names on dedicated Suffices | |||||||
| 
 | 
 | ||||||
|     Scenario: Prefix Change |     Scenario: Prefix Change | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b |   | c | |             """ | ||||||
|  |             a   b   c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | name    | |             | nodes  | name    | | ||||||
| @ -46,7 +52,9 @@ Feature: Suppress New Names on dedicated Suffices | |||||||
| 
 | 
 | ||||||
|     Scenario: Prefix Change ref |     Scenario: Prefix Change ref | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b |   | c | |             """ | ||||||
|  |             a   b   c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | name    | |             | nodes  | name    | | ||||||
| @ -59,7 +67,9 @@ Feature: Suppress New Names on dedicated Suffices | |||||||
| 
 | 
 | ||||||
|     Scenario: Prefix Change and Reference |     Scenario: Prefix Change and Reference | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b |   | c | |             """ | ||||||
|  |             a   b   c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | name    | ref | |             | nodes  | name    | ref | | ||||||
| @ -72,8 +82,10 @@ Feature: Suppress New Names on dedicated Suffices | |||||||
| 
 | 
 | ||||||
|     Scenario: Suffix To Suffix - Turn |     Scenario: Suffix To Suffix - Turn | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b |   | c | |             """ | ||||||
|             |   |   | d |   |   | |             a   b   c | ||||||
|  |                 d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | name | |             | nodes  | name | | ||||||
| @ -88,7 +100,9 @@ Feature: Suppress New Names on dedicated Suffices | |||||||
| 
 | 
 | ||||||
|     Scenario: Suffix To No Suffix |     Scenario: Suffix To No Suffix | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b |   | c | |             """ | ||||||
|  |             a   b   c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | name | |             | nodes  | name | | ||||||
| @ -101,7 +115,9 @@ Feature: Suppress New Names on dedicated Suffices | |||||||
| 
 | 
 | ||||||
|     Scenario: No Suffix To Suffix |     Scenario: No Suffix To Suffix | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b |   | c | |             """ | ||||||
|  |             a   b   c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | name | |             | nodes  | name | | ||||||
|  | |||||||
| @ -7,8 +7,10 @@ Feature: Suppressed Turns | |||||||
| 
 | 
 | ||||||
|     Scenario: Do not announce passing a exit ramp |     Scenario: Do not announce passing a exit ramp | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | d | e | |             """ | ||||||
|             |   |   |   | f | g | |             a b c d e | ||||||
|  |                   f g | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway       | |             | nodes  | highway       | | ||||||
| @ -21,7 +23,9 @@ Feature: Suppressed Turns | |||||||
| 
 | 
 | ||||||
|     Scenario: Do not announce reference changes |     Scenario: Do not announce reference changes | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | d | e | f | |             """ | ||||||
|  |             a b c d e f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway  | name     | ref   | |             | nodes | highway  | name     | ref   | | ||||||
| @ -38,8 +42,10 @@ Feature: Suppressed Turns | |||||||
| 
 | 
 | ||||||
|     Scenario: Don't Announce Turn on following major road class -- service |     Scenario: Don't Announce Turn on following major road class -- service | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | d | |             """ | ||||||
|             |   |   | c | |             a b d | ||||||
|  |                 c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | |             | nodes | highway | | ||||||
| @ -52,8 +58,10 @@ Feature: Suppressed Turns | |||||||
| 
 | 
 | ||||||
|     Scenario: Don't Announce Turn on following major road class -- residential |     Scenario: Don't Announce Turn on following major road class -- residential | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | d | |             """ | ||||||
|             |   |   | c | |             a b d | ||||||
|  |                 c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway     | |             | nodes | highway     | | ||||||
|  | |||||||
| @ -8,38 +8,40 @@ Feature: General Post-Processing related features | |||||||
|     # this testcase used to crash geometry generation (at that time handled during intersection generation) |     # this testcase used to crash geometry generation (at that time handled during intersection generation) | ||||||
|     Scenario: Regression Test 2754  |     Scenario: Regression Test 2754  | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | d | e |   |   |   |   | |             """ | ||||||
|             |   |   |   |   |   |   |   |   |   | |             a b c d e | ||||||
|             |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   | f | g | h | i | j | | 
 | ||||||
|  |                     f g h i j | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
|  | |||||||
| @ -8,8 +8,10 @@ Feature: Turn Lane Guidance | |||||||
|     @simple |     @simple | ||||||
|     Scenario: Basic Turn Lane 3-way Turn with empty lanes |     Scenario: Basic Turn Lane 3-way Turn with empty lanes | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b |   | c | |             """ | ||||||
|             |   |   | d |   |   | |             a   b   c | ||||||
|  |                 d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | turn:lanes     | turn:lanes:forward | turn:lanes:backward | name     | |             | nodes  | turn:lanes     | turn:lanes:forward | turn:lanes:backward | name     | | ||||||
| @ -26,8 +28,10 @@ Feature: Turn Lane Guidance | |||||||
| 
 | 
 | ||||||
|     Scenario: Basic Turn Lane 3-way Turn with designated lane |     Scenario: Basic Turn Lane 3-way Turn with designated lane | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b |   | c | |             """ | ||||||
|             |   |   | d |   |   | |             a   b   c | ||||||
|  |                 d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | turn:lanes     | turn:lanes:forward      | name     | vehicle:lanes:forward | |             | nodes  | turn:lanes     | turn:lanes:forward      | name     | vehicle:lanes:forward | | ||||||
| @ -43,9 +47,11 @@ Feature: Turn Lane Guidance | |||||||
|     @simple |     @simple | ||||||
|     Scenario: Basic Turn Lane 4-Way Turn |     Scenario: Basic Turn Lane 4-Way Turn | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | e |   |   | |             """ | ||||||
|             | a |   | b |   | c | |                 e | ||||||
|             |   |   | d |   |   | |             a   b   c | ||||||
|  |                 d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | turn:lanes     | turn:lanes:forward | turn:lanes:backward | name     | |             | nodes  | turn:lanes     | turn:lanes:forward | turn:lanes:backward | name     | | ||||||
| @ -66,9 +72,11 @@ Feature: Turn Lane Guidance | |||||||
|     @simple @none |     @simple @none | ||||||
|     Scenario: Basic Turn Lane 4-Way Turn using none |     Scenario: Basic Turn Lane 4-Way Turn using none | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | e |   |   | |             """ | ||||||
|             | a |   | b |   | c | |                 e | ||||||
|             |   |   | d |   |   | |             a   b   c | ||||||
|  |                 d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | turn:lanes     | turn:lanes:forward | turn:lanes:backward | name     | |             | nodes  | turn:lanes     | turn:lanes:forward | turn:lanes:backward | name     | | ||||||
| @ -86,9 +94,11 @@ Feature: Turn Lane Guidance | |||||||
|     @simple @reverse |     @simple @reverse | ||||||
|     Scenario: Basic Turn Lane 4-Way With U-Turn Lane |     Scenario: Basic Turn Lane 4-Way With U-Turn Lane | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | e |   |   | |             """ | ||||||
|             | a | 1 | b |   | c | |                 e | ||||||
|             |   |   | d |   |   | |             a 1 b   c | ||||||
|  |                 d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | turn:lanes     | turn:lanes:forward          | name     | |             | nodes  | turn:lanes     | turn:lanes:forward          | name     | | ||||||
| @ -109,9 +119,11 @@ Feature: Turn Lane Guidance | |||||||
|     @simple @psv @none |     @simple @psv @none | ||||||
|     Scenario: Turn with Bus-Lane |     Scenario: Turn with Bus-Lane | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b |   | c | |             """ | ||||||
|             |   |   |   |   |   | |             a   b   c | ||||||
|             |   |   | d |   |   | | 
 | ||||||
|  |                 d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name | turn:lanes:forward | lanes:psv:forward | |             | nodes | name | turn:lanes:forward | lanes:psv:forward | | ||||||
| @ -126,10 +138,12 @@ Feature: Turn Lane Guidance | |||||||
| 
 | 
 | ||||||
|     Scenario: Turn with Bus-Lane Left |     Scenario: Turn with Bus-Lane Left | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | d |   |   |   |   | |             """ | ||||||
|             |   |   |   |   |   |   |   | |                 d | ||||||
|             | a |   | b |   | c |   | f | | 
 | ||||||
|             |   |   |   |   | e |   |   | |             a   b   c   f | ||||||
|  |                     e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name | turn:lanes:forward  | lanes:psv:forward | oneway | |             | nodes | name | turn:lanes:forward  | lanes:psv:forward | oneway | | ||||||
| @ -147,9 +161,11 @@ Feature: Turn Lane Guidance | |||||||
|     # This tests whether empty/invalid PSV tags cause osrm-extract to crash |     # This tests whether empty/invalid PSV tags cause osrm-extract to crash | ||||||
|     Scenario: Turn with Bus-Lane |     Scenario: Turn with Bus-Lane | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b |   | c | |             """ | ||||||
|             |   |   |   |   |   | |             a   b   c | ||||||
|             |   |   | d |   |   | | 
 | ||||||
|  |                 d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name | turn:lanes:forward | lanes:psv:forward | lanes:psv:backward | |             | nodes | name | turn:lanes:forward | lanes:psv:forward | lanes:psv:backward | | ||||||
| @ -164,9 +180,11 @@ Feature: Turn Lane Guidance | |||||||
|     @simple @psv |     @simple @psv | ||||||
|     Scenario: Turn with Bus-Lane but without lanes |     Scenario: Turn with Bus-Lane but without lanes | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b |   | c | |             """ | ||||||
|             |   |   |   |   |   | |             a   b   c | ||||||
|             |   |   | d |   |   | | 
 | ||||||
|  |                 d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name | lanes:psv | |             | nodes | name | lanes:psv | | ||||||
| @ -183,12 +201,14 @@ Feature: Turn Lane Guidance | |||||||
|     @todo @collapse @partition-lanes |     @todo @collapse @partition-lanes | ||||||
|     Scenario: Turn Lanes at Segregated Road |     Scenario: Turn Lanes at Segregated Road | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | i | l |   |   | |             """ | ||||||
|             |   |   |   |   |   |   | |                 i l | ||||||
|             | h |   | g | f |   | e | | 
 | ||||||
|             | a |   | b | c |   | d | |             h   g f   e | ||||||
|             |   |   |   |   |   |   | |             a   b c   d | ||||||
|             |   |   | j | k |   |   | | 
 | ||||||
|  |                 j k | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name  | turn:lanes:forward       | oneway | |             | nodes | name  | turn:lanes:forward       | oneway | | ||||||
| @ -228,12 +248,14 @@ Feature: Turn Lane Guidance | |||||||
|     @collapse @partition-lanes |     @collapse @partition-lanes | ||||||
|     Scenario: Turn Lanes at Segregated Road |     Scenario: Turn Lanes at Segregated Road | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | i | l |   |   | |             """ | ||||||
|             |   |   |   |   |   |   | |                 i l | ||||||
|             | h |   | g | f |   | e | | 
 | ||||||
|             | a |   | b | c |   | d | |             h   g f   e | ||||||
|             |   |   |   |   |   |   | |             a   b c   d | ||||||
|             |   |   | j | k |   |   | | 
 | ||||||
|  |                 j k | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name  | turn:lanes:forward       | oneway | |             | nodes | name  | turn:lanes:forward       | oneway | | ||||||
| @ -262,10 +284,12 @@ Feature: Turn Lane Guidance | |||||||
|     @partition-lanes |     @partition-lanes | ||||||
|     Scenario: Turn Lanes at Segregated Road |     Scenario: Turn Lanes at Segregated Road | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | g | f |   |   | |             """ | ||||||
|             | a |   | b | c |   | d | |                 g f | ||||||
|             |   |   |   |   |   |   | |             a   b c   d | ||||||
|             |   |   | j | k |   |   | | 
 | ||||||
|  |                 j k | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name  | turn:lanes:forward   | oneway | |             | nodes | name  | turn:lanes:forward   | oneway | | ||||||
| @ -285,9 +309,11 @@ Feature: Turn Lane Guidance | |||||||
|     @2654 @previous-lanes |     @2654 @previous-lanes | ||||||
|     Scenario: Turn Lanes Given earlier than actual turn |     Scenario: Turn Lanes Given earlier than actual turn | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b | c |   | d | |             """ | ||||||
|             |   |   |   |   |   |   | |             a   b c   d | ||||||
|             |   |   |   | e |   |   | | 
 | ||||||
|  |                   e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name | turn:lanes:forward | |             | nodes | name | turn:lanes:forward | | ||||||
| @ -304,8 +330,10 @@ Feature: Turn Lane Guidance | |||||||
|     @2654 @previous-lanes |     @2654 @previous-lanes | ||||||
|     Scenario: Turn Lanes Given earlier than actual turn |     Scenario: Turn Lanes Given earlier than actual turn | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b | c | d |   | e |   | f | g | h |   | i | |             """ | ||||||
|             |   |   | j |   |   |   |   |   |   |   | k |   |   | |             a   b c d   e   f g h   i | ||||||
|  |                 j               k | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name        | turn:lanes:forward | turn:lanes:backward | |             | nodes | name        | turn:lanes:forward | turn:lanes:backward | | ||||||
| @ -327,8 +355,10 @@ Feature: Turn Lane Guidance | |||||||
|     @previous-lanes |     @previous-lanes | ||||||
|     Scenario: Passing a one-way street |     Scenario: Passing a one-way street | ||||||
|         Given the node map |         Given the node map | ||||||
|             | e |   |   | f |   | |             """ | ||||||
|             | a |   | b | c | d | |             e     f | ||||||
|  |             a   b c d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name | turn:lanes:forward | oneway | |             | nodes | name | turn:lanes:forward | oneway | | ||||||
| @ -344,9 +374,11 @@ Feature: Turn Lane Guidance | |||||||
|     @partition-lanes |     @partition-lanes | ||||||
|     Scenario: Passing a one-way street, partly pulled back lanes |     Scenario: Passing a one-way street, partly pulled back lanes | ||||||
|         Given the node map |         Given the node map | ||||||
|             | e |   |   | f |   | |             """ | ||||||
|             | a |   | b | c | d | |             e     f | ||||||
|             |   |   | g |   |   | |             a   b c d | ||||||
|  |                 g | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name  | turn:lanes:forward  | oneway | |             | nodes | name  | turn:lanes:forward  | oneway | | ||||||
| @ -365,9 +397,11 @@ Feature: Turn Lane Guidance | |||||||
|     @partition-lanes @previous-lanes |     @partition-lanes @previous-lanes | ||||||
|     Scenario: Passing a one-way street, partly pulled back lanes, no through |     Scenario: Passing a one-way street, partly pulled back lanes, no through | ||||||
|         Given the node map |         Given the node map | ||||||
|             | e |   |   | f | |             """ | ||||||
|             | a |   | b | c | |             e     f | ||||||
|             |   |   | g |   | |             a   b c | ||||||
|  |                 g | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name  | turn:lanes:forward  | oneway | |             | nodes | name  | turn:lanes:forward  | oneway | | ||||||
| @ -385,10 +419,12 @@ Feature: Turn Lane Guidance | |||||||
|     @todo @partition-lanes @previous-lanes |     @todo @partition-lanes @previous-lanes | ||||||
|     Scenario: Narrowing Turn Lanes |     Scenario: Narrowing Turn Lanes | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   | g |   | |             """ | ||||||
|             |   |   |   |   |   |   | |                     g | ||||||
|             | a |   | b | c | d | e | | 
 | ||||||
|             |   |   |   | f |   |   | |             a   b c d e | ||||||
|  |                   f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name    | turn:lanes:forward   | |             | nodes | name    | turn:lanes:forward   | | ||||||
| @ -408,8 +444,10 @@ Feature: Turn Lane Guidance | |||||||
|     @previous-lanes |     @previous-lanes | ||||||
|     Scenario: Turn at a traffic light |     Scenario: Turn at a traffic light | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | d | |             """ | ||||||
|             |   |   | e |   | |             a b c d | ||||||
|  |                 e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the nodes |         And the nodes | ||||||
|             | node | highway         | |             | node | highway         | | ||||||
| @ -430,17 +468,19 @@ Feature: Turn Lane Guidance | |||||||
|     @todo @roundabout |     @todo @roundabout | ||||||
|     Scenario: Theodor Heuss Platz |     Scenario: Theodor Heuss Platz | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   | i | o |   |   | l |   | |             """ | ||||||
|             |   |   | b |   |   |   | a |   | m | |                   i o     l | ||||||
|             |   | c |   |   |   |   |   |   |   | |                 b       a   m | ||||||
|             |   |   |   |   |   |   |   | h |   | |               c | ||||||
|             |   |   |   |   |   |   |   |   |   | |                           h | ||||||
|             | j |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   | g |   | |             j | ||||||
|             |   |   |   |   |   |   |   |   |   | |                           g | ||||||
|             |   | d |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   | e |   |   |   | f |   |   | |               d | ||||||
|             |   |   |   |   | k |   |   |   | n | |                 e       f | ||||||
|  |                     k       n | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the nodes |         And the nodes | ||||||
|             | node | highway         | |             | node | highway         | | ||||||
| @ -467,12 +507,14 @@ Feature: Turn Lane Guidance | |||||||
|     @sliproads |     @sliproads | ||||||
|     Scenario: Turn Lanes Breaking up |     Scenario: Turn Lanes Breaking up | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   | g |   | |             """ | ||||||
|             |   |   |   |   |   | |                   g | ||||||
|             |   |   |   | c |   | | 
 | ||||||
|             | a | b |   | d | e | |                   c | ||||||
|             |   |   |   |   |   | |             a b   d e | ||||||
|             |   |   |   | f |   | | 
 | ||||||
|  |                   f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name  | turn:lanes:forward                  | oneway | highway   | |             | nodes | name  | turn:lanes:forward                  | oneway | highway   | | ||||||
| @ -498,11 +540,13 @@ Feature: Turn Lane Guidance | |||||||
|     @reverse @previous-lanes |     @reverse @previous-lanes | ||||||
|     Scenario: U-Turn Road at Intersection |     Scenario: U-Turn Road at Intersection | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   |   |   | h |   | |             """ | ||||||
|             |   |   |   |   | f |   | e | j | |                         h | ||||||
|             | a | b |   |   |   |   |   |   | |                     f   e j | ||||||
|             |   |   |   |   | c |   | d | i | |             a b | ||||||
|             |   |   |   |   |   |   | g |   | |                     c   d i | ||||||
|  |                         g | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name  | turn:lanes:forward | oneway | highway  | |             | nodes | name  | turn:lanes:forward | oneway | highway  | | ||||||
| @ -532,13 +576,15 @@ Feature: Turn Lane Guidance | |||||||
|     @reverse |     @reverse | ||||||
|     Scenario: Segregated Intersection Merges With Lanes |     Scenario: Segregated Intersection Merges With Lanes | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   |   |   | f | |             """ | ||||||
|             |   |   |   |   |   |   |   | |                         f | ||||||
|             | e |   |   | d |   |   |   | | 
 | ||||||
|             |   |   |   |   |   | c | g | |             e     d | ||||||
|             | a |   |   | b |   |   |   | |                       c g | ||||||
|             |   |   |   |   |   |   |   | |             a     b | ||||||
|             |   |   |   |   |   | h |   | | 
 | ||||||
|  |                       h | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name     | turn:lanes:forward                 | oneway | highway   | |             | nodes | name     | turn:lanes:forward                 | oneway | highway   | | ||||||
| @ -557,13 +603,15 @@ Feature: Turn Lane Guidance | |||||||
|     @todo @roundabout |     @todo @roundabout | ||||||
|     Scenario: Passing Through a Roundabout |     Scenario: Passing Through a Roundabout | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | h |   | g |   |   | |             """ | ||||||
|             |   | a |   |   |   | f | k | |                 h   g | ||||||
|             | i |   |   |   |   |   |   | |               a       f k | ||||||
|             |   |   |   |   |   |   |   | |             i | ||||||
|             |   | b |   |   |   | e |   | | 
 | ||||||
|             |   |   | c |   | d |   |   | |               b       e | ||||||
|             |   |   |   |   | j |   |   | |                 c   d | ||||||
|  |                     j | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name   | turn:lanes:forward                     | oneway | highway   | junction   | |             | nodes | name   | turn:lanes:forward                     | oneway | highway   | junction   | | ||||||
| @ -584,8 +632,10 @@ Feature: Turn Lane Guidance | |||||||
|     @previous-lanes |     @previous-lanes | ||||||
|     Scenario: Crossing Traffic Light |     Scenario: Crossing Traffic Light | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b |   | c |   | d | |             """ | ||||||
|             |   |   |   |   |   |   | e | |             a   b   c   d | ||||||
|  |                         e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the nodes |         And the nodes | ||||||
|             | node | highway         | |             | node | highway         | | ||||||
| @ -605,8 +655,10 @@ Feature: Turn Lane Guidance | |||||||
|     @ramp |     @ramp | ||||||
|     Scenario: Highway Ramp |     Scenario: Highway Ramp | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b |   | c |   | d | |             """ | ||||||
|             |   |   |   |   |   |   | e | |             a   b   c   d | ||||||
|  |                         e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name | turn:lanes:forward                                   | highway       | |             | nodes | name | turn:lanes:forward                                   | highway       | | ||||||
| @ -622,10 +674,12 @@ Feature: Turn Lane Guidance | |||||||
|     @todo |     @todo | ||||||
|     Scenario: Turning Off Ramp |     Scenario: Turning Off Ramp | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | a |   | |             """ | ||||||
|             | d | c | b | |               a | ||||||
|             | e | f | g | |             d c b | ||||||
|             |   | h |   | |             e f g | ||||||
|  |               h | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name | turn:lanes:forward | highway       | oneway | |             | nodes | name | turn:lanes:forward | highway       | oneway | | ||||||
| @ -644,10 +698,12 @@ Feature: Turn Lane Guidance | |||||||
|     @ramp |     @ramp | ||||||
|     Scenario: Off Ramp In a Turn |     Scenario: Off Ramp In a Turn | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   |   |   |   |   |   |   |   |   |   |   | |             """ | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   | |             a | ||||||
|             |   |   |   |   |   | b |   |   |   |   |   | c | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   | d |   | |                       b           c | ||||||
|  |                                 d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name | turn:lanes:forward             | highway       | oneway | |             | nodes | name | turn:lanes:forward             | highway       | oneway | | ||||||
| @ -663,10 +719,12 @@ Feature: Turn Lane Guidance | |||||||
|     @reverse |     @reverse | ||||||
|     Scenario: Reverse Lane in Segregated Road |     Scenario: Reverse Lane in Segregated Road | ||||||
|         Given the node map |         Given the node map | ||||||
|             | h |   |   |   |   | g |   |   |   |   |   | f | |             """ | ||||||
|             |   |   |   |   |   |   |   | e |   |   |   |   | |             h         g           f | ||||||
|             |   |   |   |   |   |   |   | d |   |   |   |   | |                           e | ||||||
|             | a |   |   |   |   | b |   |   |   |   |   | c | |                           d | ||||||
|  |             a         b           c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name | turn:lanes:forward        | highway      | oneway | |             | nodes | name | turn:lanes:forward        | highway      | oneway | | ||||||
| @ -682,10 +740,12 @@ Feature: Turn Lane Guidance | |||||||
|     @reverse |     @reverse | ||||||
|     Scenario: Reverse Lane in Segregated Road with none |     Scenario: Reverse Lane in Segregated Road with none | ||||||
|         Given the node map |         Given the node map | ||||||
|             | h |   |   |   |   | g |   |   |   |   |   | f | |             """ | ||||||
|             |   |   |   |   |   |   |   | e |   |   |   |   | |             h         g           f | ||||||
|             |   |   |   |   |   |   |   | d |   |   |   |   | |                           e | ||||||
|             | a |   |   |   |   | b |   |   |   |   |   | c | |                           d | ||||||
|  |             a         b           c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name | turn:lanes:forward     | highway      | oneway | |             | nodes | name | turn:lanes:forward     | highway      | oneway | | ||||||
| @ -701,11 +761,13 @@ Feature: Turn Lane Guidance | |||||||
|     @reverse |     @reverse | ||||||
|     Scenario: Reverse Lane in Segregated Road with none, Service Turn Prior |     Scenario: Reverse Lane in Segregated Road with none, Service Turn Prior | ||||||
|         Given the node map |         Given the node map | ||||||
|             | h |   |   |   |   | g |   |   |   |   |   | f | |             """ | ||||||
|             |   |   |   |   |   |   |   | e |   |   |   |   | |             h         g           f | ||||||
|             |   |   |   |   |   |   |   | d |   |   |   |   | |                           e | ||||||
|             | a |   | j |   |   | b |   |   |   |   |   | c | |                           d | ||||||
|             |   |   | i |   |   |   |   |   |   |   |   |   | |             a   j     b           c | ||||||
|  |                 i | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name | turn:lanes:forward     | highway      | oneway | |             | nodes | name | turn:lanes:forward     | highway      | oneway | | ||||||
| @ -722,9 +784,11 @@ Feature: Turn Lane Guidance | |||||||
|     @simple |     @simple | ||||||
|     Scenario: Don't collapse everything to u-turn / too wide |     Scenario: Don't collapse everything to u-turn / too wide | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b |   | e | |             """ | ||||||
|             |   |   |   |   |   | |             a   b   e | ||||||
|             | d |   | c |   | f | | 
 | ||||||
|  |             d   c   f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway   | name   | turn:lanes:forward | |             | nodes | highway   | name   | turn:lanes:forward | | ||||||
| @ -742,8 +806,10 @@ Feature: Turn Lane Guidance | |||||||
|     @simple |     @simple | ||||||
|     Scenario: Merge Lanes Onto Freeway |     Scenario: Merge Lanes Onto Freeway | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   |   | b | c | |             """ | ||||||
|             |   | d |   |   |   | |             a     b c | ||||||
|  |               d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway       | name | turn:lanes:forward         | |             | nodes | highway       | name | turn:lanes:forward         | | ||||||
| @ -757,8 +823,10 @@ Feature: Turn Lane Guidance | |||||||
|     @2654 @simple |     @2654 @simple | ||||||
|     Scenario: Fork on motorway links - don't fork on through but use lane |     Scenario: Fork on motorway links - don't fork on through but use lane | ||||||
|         Given the node map |         Given the node map | ||||||
|             | i |   |   |   |   | a | |             """ | ||||||
|             | j |   | c | b |   | x | |             i         a | ||||||
|  |             j   c b   x | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name | highway       | turn:lanes:forward | |             | nodes | name | highway       | turn:lanes:forward | | ||||||
| @ -777,10 +845,12 @@ Feature: Turn Lane Guidance | |||||||
|     @todo @ramp @2645 |     @todo @ramp @2645 | ||||||
|     Scenario: Kreuz Schoeneberg - Continue on ramp, don't merge |     Scenario: Kreuz Schoeneberg - Continue on ramp, don't merge | ||||||
|         Given the node map |         Given the node map | ||||||
|             | i |   |   |   |   | j |   |   |   |   |   |   |   |   |   |   |   | |             """ | ||||||
|             |   |   |   |   | k |   |   |   |   |   |   |   |   |   |   |   |   | |             i         j | ||||||
|             | h | g |   | l |   |   | f |   |   |   |   |   |   |   |   |   | e | |                     k | ||||||
|             | d |   |   |   |   |   |   |   | c |   |   |   |   | b |   |   | a | |             h g   l     f                   e | ||||||
|  |             d               c         b     a | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway       | name  | oneway | lanes | turn:lanes            | |             | nodes | highway       | name  | oneway | lanes | turn:lanes            | | ||||||
| @ -808,8 +878,10 @@ Feature: Turn Lane Guidance | |||||||
|     @collapse @use-lane |     @collapse @use-lane | ||||||
|     Scenario: Collapse Multiple Use Lanes |     Scenario: Collapse Multiple Use Lanes | ||||||
|         Given the node map |         Given the node map | ||||||
|             | x | a |   | b |   |   | c |   |   | d | |             """ | ||||||
|             |   |   |   | e |   |   | f |   |   |   | |             x a   b     c     d | ||||||
|  |                   e     f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name | highway | turn:lanes:forward | |             | nodes | name | highway | turn:lanes:forward | | ||||||
| @ -827,12 +899,14 @@ Feature: Turn Lane Guidance | |||||||
|     @partition-lanes |     @partition-lanes | ||||||
|     Scenario: Partitioned turn, Slight Curve |     Scenario: Partitioned turn, Slight Curve | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | f |   | e | |             """ | ||||||
|             |   |   |   |   |   | |                 f   e | ||||||
|             |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   | c | | 
 | ||||||
|             | a |   | b |   |   | |                     c | ||||||
|             |   |   | g |   | d | |             a   b | ||||||
|  |                 g   d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name  | highway | oneway | turn:lanes:forward | |             | nodes | name  | highway | oneway | turn:lanes:forward | | ||||||
| @ -848,9 +922,11 @@ Feature: Turn Lane Guidance | |||||||
| 
 | 
 | ||||||
|     Scenario: Lane Parsing Issue #2694 |     Scenario: Lane Parsing Issue #2694 | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | c | |             """ | ||||||
|             | a | b | |               c | ||||||
|             |   | d | |             a b | ||||||
|  |               d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | turn:lanes:forward | |             | nodes | highway | turn:lanes:forward | | ||||||
| @ -866,12 +942,14 @@ Feature: Turn Lane Guidance | |||||||
|     @todo |     @todo | ||||||
|     Scenario: Lane Parsing Issue #2706: None Assignments I |     Scenario: Lane Parsing Issue #2706: None Assignments I | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | f |   |   | j  |   | |             """ | ||||||
|             |   |   |   |   |    |   | |               f     j | ||||||
|             | a | b | c |   | d  | e | | 
 | ||||||
|             |   |   |   |   |    |   | |             a b c   d e | ||||||
|             |   |   |   |   | i  |   | | 
 | ||||||
|             |   | g |   |   | h  |   | |                     i | ||||||
|  |               g     h | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the nodes |         And the nodes | ||||||
|             | node | highway         | |             | node | highway         | | ||||||
| @ -906,10 +984,12 @@ Feature: Turn Lane Guidance | |||||||
|     @todo |     @todo | ||||||
|     Scenario: Lane Parsing Issue #2706: None Assignments II |     Scenario: Lane Parsing Issue #2706: None Assignments II | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | k | l |   | |             """ | ||||||
|             | j | a | b | f | |               k l | ||||||
|             | i | c | d | e | |             j a b f | ||||||
|             |   | h | g |   | |             i c d e | ||||||
|  |               h g | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway        | name           | oneway | turn:lanes                           | |             | nodes | highway        | name           | oneway | turn:lanes                           | | ||||||
| @ -941,10 +1021,12 @@ Feature: Turn Lane Guidance | |||||||
|     @todo |     @todo | ||||||
|     Scenario: Lane Parsing Issue #2706: None Assignments III - Minimal reproduction recipe |     Scenario: Lane Parsing Issue #2706: None Assignments III - Minimal reproduction recipe | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | l |   | |             """ | ||||||
|             |   | a | b |   | |                 l | ||||||
|             |   |   | d |   | |               a b | ||||||
|             |   |   |   |   | |                 d | ||||||
|  | 
 | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway        | name           | oneway | turn:lanes                           | |             | nodes | highway        | name           | oneway | turn:lanes                           | | ||||||
| @ -960,9 +1042,11 @@ Feature: Turn Lane Guidance | |||||||
|     @reverse @2730 @todo |     @reverse @2730 @todo | ||||||
|     Scenario: Reverse on the right |     Scenario: Reverse on the right | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   |   | c |   | |             """ | ||||||
|             |   |   |   | b | d | |             a     c | ||||||
|             | f |   |   | e |   | |                   b d | ||||||
|  |             f     e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | name    | turn:lanes:forward           | oneway | |             | nodes | highway | name    | turn:lanes:forward           | oneway | | ||||||
| @ -983,12 +1067,14 @@ Feature: Turn Lane Guidance | |||||||
|     #http://www.openstreetmap.org/export#map=19/52.56054/13.32152 |     #http://www.openstreetmap.org/export#map=19/52.56054/13.32152 | ||||||
|     Scenario: Kurt-Schuhmacher-Damm |     Scenario: Kurt-Schuhmacher-Damm | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   | g |   | f | |             """ | ||||||
|             |   |   |   |   |   |   | |                   g   f | ||||||
|             | j |   |   | h |   | e | | 
 | ||||||
|             |   |   |   |   |   |   | |             j     h   e | ||||||
|             | a |   |   | b |   | c | | 
 | ||||||
|             |   |   |   | i |   | d | |             a     b   c | ||||||
|  |                   i   d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name | highway        | oneway | turn:lanes        | |             | nodes | name | highway        | oneway | turn:lanes        | | ||||||
|  | |||||||
| @ -7,9 +7,11 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|     Scenario: Four Way Intersection |     Scenario: Four Way Intersection | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | c |   | |             """ | ||||||
|             | a | b | e | |               c | ||||||
|             |   | d |   | |             a b e | ||||||
|  |               d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway | |             | nodes  | highway | | ||||||
| @ -35,9 +37,11 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|     Scenario: Rotated Four Way Intersection |     Scenario: Rotated Four Way Intersection | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | c | |             """ | ||||||
|             |   | b |   | |             a   c | ||||||
|             | d |   | e | |               b | ||||||
|  |             d   e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway | |             | nodes  | highway | | ||||||
| @ -64,9 +68,11 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|     Scenario: Four Way Intersection Through Street |     Scenario: Four Way Intersection Through Street | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | c |   | |             """ | ||||||
|             | a | b | e | |               c | ||||||
|             |   | d |   | |             a b e | ||||||
|  |               d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway | |             | nodes  | highway | | ||||||
| @ -91,9 +97,11 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|     Scenario: Four Way Intersection Double Through Street |     Scenario: Four Way Intersection Double Through Street | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | c |   | |             """ | ||||||
|             | a | b | e | |               c | ||||||
|             |   | d |   | |             a b e | ||||||
|  |               d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway | |             | nodes  | highway | | ||||||
| @ -117,8 +125,10 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|     Scenario: Three Way Intersection |     Scenario: Three Way Intersection | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | c |   | |             """ | ||||||
|             | a | b | d | |               c | ||||||
|  |             a b d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway | |             | nodes  | highway | | ||||||
| @ -135,8 +145,10 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|     Scenario: Three Way Intersection - Meeting Oneways |     Scenario: Three Way Intersection - Meeting Oneways | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | c |   | |             """ | ||||||
|             | a | b | d | |               c | ||||||
|  |             a b d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway | oneway | |             | nodes  | highway | oneway | | ||||||
| @ -151,8 +163,10 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|     Scenario: Three Way Intersection on Through Street |     Scenario: Three Way Intersection on Through Street | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | d |   | |             """ | ||||||
|             | a | b | c | |               d | ||||||
|  |             a b c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway | |             | nodes  | highway | | ||||||
| @ -168,13 +182,15 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|      Scenario: High Degree Intersection |      Scenario: High Degree Intersection | ||||||
|         Given the node map |         Given the node map | ||||||
|             | i |   | b |   | c | |             """ | ||||||
|             |   |   |   |   |   | |             i   b   c | ||||||
|             |   |   |   |   |   | | 
 | ||||||
|             | h |   | a |   | d | | 
 | ||||||
|             |   |   |   |   |   | |             h   a   d | ||||||
|             |   |   |   |   |   | | 
 | ||||||
|             | g |   | f |   | e | | 
 | ||||||
|  |             g   f   e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | |             | nodes | highway | | ||||||
| @ -199,13 +215,15 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|     Scenario: Disturbed High Degree Intersection |     Scenario: Disturbed High Degree Intersection | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | b |   |   | |             """ | ||||||
|             | i |   |   |   | c | |                 b | ||||||
|             |   |   |   |   |   | |             i       c | ||||||
|             | h |   | a |   | d | | 
 | ||||||
|             |   |   |   |   |   | |             h   a   d | ||||||
|             | g |   |   |   | e | | 
 | ||||||
|             |   |   | f |   |   | |             g       e | ||||||
|  |                 f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | |             | nodes | highway | | ||||||
| @ -262,21 +280,23 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|     Scenario: Four Way Intersection Double Through Street Segregated |     Scenario: Four Way Intersection Double Through Street Segregated | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   | q |   | p |   |   |   |   | |             """ | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   | |                     q   p | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   | b |   | c |   |   |   |   | | 
 | ||||||
|             | j |   |   | i |   |   |   | d |   |   | o | |                     b   c | ||||||
|             |   |   |   |   |   | a |   |   |   |   |   | |             j     i       d     o | ||||||
|             | k |   |   | h |   |   |   | e |   |   | n | |                       a | ||||||
|             |   |   |   |   | g |   | f |   |   |   |   | |             k     h       e     n | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   | |                     g   f | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   | l |   | m |   |   |   |   | | 
 | ||||||
|  |                     l   m | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | highway | oneway | name   | |             | nodes  | highway | oneway | name   | | ||||||
| @ -306,9 +326,11 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|     Scenario: Three Way Similar Sharp Turns |     Scenario: Three Way Similar Sharp Turns | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   |   |   | b | |             """ | ||||||
|             | c |   |   |   |   | |             a       b | ||||||
|             |   | d |   |   |   | |             c | ||||||
|  |               d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | |             | nodes | highway | | ||||||
| @ -325,9 +347,11 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|     Scenario: Left Turn Assignment (1) |     Scenario: Left Turn Assignment (1) | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   | d | |             """ | ||||||
|             | a |   | b |   | c | |                     d | ||||||
|             |   |   | e |   |   | |             a   b   c | ||||||
|  |                 e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | |             | nodes | highway | | ||||||
| @ -341,10 +365,12 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|     Scenario: Left Turn Assignment (2) |     Scenario: Left Turn Assignment (2) | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   | d | |             """ | ||||||
|             |   |   |   |   |   | |                     d | ||||||
|             | a |   | b |   | c | | 
 | ||||||
|             |   |   | e |   |   | |             a   b   c | ||||||
|  |                 e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | |             | nodes | highway | | ||||||
| @ -358,11 +384,13 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|     Scenario: Left Turn Assignment (3) |     Scenario: Left Turn Assignment (3) | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   | d |   | |             """ | ||||||
|             |   |   |   |   |   | |                   d | ||||||
|             |   |   |   |   |   | | 
 | ||||||
|             | a |   | b |   | c | | 
 | ||||||
|             |   |   | e |   |   | |             a   b   c | ||||||
|  |                 e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | |             | nodes | highway | | ||||||
| @ -376,12 +404,14 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|     Scenario: Left Turn Assignment (4) |     Scenario: Left Turn Assignment (4) | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | d |   |   | |             """ | ||||||
|             |   |   |   |   |   | |                 d | ||||||
|             |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   | | 
 | ||||||
|             | a |   | b |   | c | | 
 | ||||||
|             |   |   | e |   |   | |             a   b   c | ||||||
|  |                 e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | |             | nodes | highway | | ||||||
| @ -395,11 +425,13 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|     Scenario: Left Turn Assignment (5) |     Scenario: Left Turn Assignment (5) | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | d |   |   |   | |             """ | ||||||
|             |   |   |   |   |   | |               d | ||||||
|             |   |   |   |   |   | | 
 | ||||||
|             | a |   | b |   | c | | 
 | ||||||
|             |   |   | e |   |   | |             a   b   c | ||||||
|  |                 e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | |             | nodes | highway | | ||||||
| @ -413,10 +445,12 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|     Scenario: Left Turn Assignment (6) |     Scenario: Left Turn Assignment (6) | ||||||
|         Given the node map |         Given the node map | ||||||
|             | d |   |   |   |   | |             """ | ||||||
|             |   |   |   |   |   | |             d | ||||||
|             | a |   | b |   | c | | 
 | ||||||
|             |   |   | e |   |   | |             a   b   c | ||||||
|  |                 e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | |             | nodes | highway | | ||||||
| @ -430,9 +464,11 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|     Scenario: Left Turn Assignment (7) |     Scenario: Left Turn Assignment (7) | ||||||
|         Given the node map |         Given the node map | ||||||
|             | d |   |   |   |   | |             """ | ||||||
|             | a |   | b |   | c | |             d | ||||||
|             |   |   | e |   |   | |             a   b   c | ||||||
|  |                 e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | |             | nodes | highway | | ||||||
| @ -446,9 +482,11 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|     Scenario: Right Turn Assignment (1) |     Scenario: Right Turn Assignment (1) | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | e |   |   | |             """ | ||||||
|             | a |   | b |   | c | |                 e | ||||||
|             |   |   |   |   | d | |             a   b   c | ||||||
|  |                     d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | |             | nodes | highway | | ||||||
| @ -462,10 +500,12 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|     Scenario: Right Turn Assignment (2) |     Scenario: Right Turn Assignment (2) | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | e |   |   | |             """ | ||||||
|             | a |   | b |   | c | |                 e | ||||||
|             |   |   |   |   |   | |             a   b   c | ||||||
|             |   |   |   |   | d | | 
 | ||||||
|  |                     d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | |             | nodes | highway | | ||||||
| @ -479,11 +519,13 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|     Scenario: Right Turn Assignment (3) |     Scenario: Right Turn Assignment (3) | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | e |   |   | |             """ | ||||||
|             | a |   | b |   | c | |                 e | ||||||
|             |   |   |   |   |   | |             a   b   c | ||||||
|             |   |   |   |   |   | | 
 | ||||||
|             |   |   |   | d |   | | 
 | ||||||
|  |                   d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | |             | nodes | highway | | ||||||
| @ -497,12 +539,14 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|     Scenario: Right Turn Assignment (4) |     Scenario: Right Turn Assignment (4) | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | e |   |   | |             """ | ||||||
|             | a |   | b |   | c | |                 e | ||||||
|             |   |   |   |   |   | |             a   b   c | ||||||
|             |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   | | 
 | ||||||
|             |   |   | d |   |   | | 
 | ||||||
|  |                 d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | |             | nodes | highway | | ||||||
| @ -516,11 +560,13 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|     Scenario: Right Turn Assignment (5) |     Scenario: Right Turn Assignment (5) | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | e |   |   | |             """ | ||||||
|             | a |   | b |   | c | |                 e | ||||||
|             |   |   |   |   |   | |             a   b   c | ||||||
|             |   |   |   |   |   | | 
 | ||||||
|             |   | d |   |   |   | | 
 | ||||||
|  |               d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | |             | nodes | highway | | ||||||
| @ -534,10 +580,12 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|     Scenario: Right Turn Assignment (6) |     Scenario: Right Turn Assignment (6) | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | e |   |   | |             """ | ||||||
|             | a |   | b |   | c | |                 e | ||||||
|             |   |   |   |   |   | |             a   b   c | ||||||
|             | d |   |   |   |   | | 
 | ||||||
|  |             d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
| @ -552,9 +600,11 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|     Scenario: Right Turn Assignment (7) |     Scenario: Right Turn Assignment (7) | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | e |   |   | |             """ | ||||||
|             | a |   | b |   | c | |                 e | ||||||
|             | d |   |   |   |   | |             a   b   c | ||||||
|  |             d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
| @ -569,10 +619,12 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|    Scenario: Right Turn Assignment Two Turns |    Scenario: Right Turn Assignment Two Turns | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | f |   |   | |             """ | ||||||
|             | a |   | b |   | c | |                 f | ||||||
|             |   |   |   |   |   | |             a   b   c | ||||||
|             | d | e |   |   |   | | 
 | ||||||
|  |             d e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
| @ -589,10 +641,12 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|    Scenario: Right Turn Assignment Two Turns (2) |    Scenario: Right Turn Assignment Two Turns (2) | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | f |   | c | |             """ | ||||||
|             | a |   | b |   |   | |                 f   c | ||||||
|             |   |   |   |   | e | |             a   b | ||||||
|             |   |   |   | d |   | |                     e | ||||||
|  |                   d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
| @ -609,10 +663,12 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|    Scenario: Right Turn Assignment Two Turns (3) |    Scenario: Right Turn Assignment Two Turns (3) | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | f |   |   | |             """ | ||||||
|             | a |   | b |   | c | |                 f | ||||||
|             |   |   |   |   | e | |             a   b   c | ||||||
|             |   |   |   | d |   | |                     e | ||||||
|  |                   d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
| @ -629,10 +685,12 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|    Scenario: Right Turn Assignment Two Turns (4) |    Scenario: Right Turn Assignment Two Turns (4) | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | f |   |   | |             """ | ||||||
|             | a |   | b |   | c | |                 f | ||||||
|             |   |   |   |   |   | |             a   b   c | ||||||
|             |   |   | d |   | e | | 
 | ||||||
|  |                 d   e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
| @ -649,10 +707,12 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|    Scenario: Right Turn Assignment Three Turns |    Scenario: Right Turn Assignment Three Turns | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | g |   |   | |             """ | ||||||
|             | a |   | b |   | c | |                 g | ||||||
|             |   | d |   | f |   | |             a   b   c | ||||||
|             |   |   | e |   |   | |               d   f | ||||||
|  |                 e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | |             | nodes | highway | | ||||||
| @ -670,11 +730,13 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|     Scenario: Slight Turn involving Oneways |     Scenario: Slight Turn involving Oneways | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | a |   |   | |             """ | ||||||
|             |   |   |   |   |   | |                 a | ||||||
|             |   |   | b |   | e | | 
 | ||||||
|             | d |   |   |   |   | |                 b   e | ||||||
|             |   |   | c |   |   | |             d | ||||||
|  |                 c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | oneway | |             | nodes | highway | oneway | | ||||||
| @ -689,12 +751,14 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|     Scenario: Slight Turn involving Oneways |     Scenario: Slight Turn involving Oneways | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   | a |   | |             """ | ||||||
|             |   |   |   |   |   | |                   a | ||||||
|             |   |   |   |   |   | | 
 | ||||||
|             |   |   | b |   | e | | 
 | ||||||
|             | d |   |   |   |   | |                 b   e | ||||||
|             |   |   | c |   |   | |             d | ||||||
|  |                 c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | oneway | |             | nodes | highway | oneway | | ||||||
| @ -710,11 +774,13 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|     Scenario: Slight Turn involving Oneways - Name Change |     Scenario: Slight Turn involving Oneways - Name Change | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | a |   |   | |             """ | ||||||
|             |   |   |   |   |   | |                 a | ||||||
|             |   |   | b |   | e | | 
 | ||||||
|             | d |   |   |   |   | |                 b   e | ||||||
|             |   |   | c |   |   | |             d | ||||||
|  |                 c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | oneway | |             | nodes | highway | oneway | | ||||||
| @ -730,10 +796,12 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|      Scenario: Right Turn Assignment Three Conflicting Turns with invalid - 1 |      Scenario: Right Turn Assignment Three Conflicting Turns with invalid - 1 | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | g |   |   | |             """ | ||||||
|             | a |   | b |   | c | |                 g | ||||||
|             |   |   |   |   |   | |             a   b   c | ||||||
|             |   | d | e | f |   | | 
 | ||||||
|  |               d e f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | oneway | |             | nodes | highway | oneway | | ||||||
| @ -750,10 +818,12 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|      Scenario: Right Turn Assignment Three Conflicting Turns with invalid - 2 |      Scenario: Right Turn Assignment Three Conflicting Turns with invalid - 2 | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | g |   |   | |             """ | ||||||
|             | a |   | b |   | c | |                 g | ||||||
|             |   |   |   |   |   | |             a   b   c | ||||||
|             |   | d | e | f |   | | 
 | ||||||
|  |               d e f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | oneway | |             | nodes | highway | oneway | | ||||||
| @ -770,10 +840,12 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|     Scenario: Right Turn Assignment Three Conflicting Turns with invalid - 3 |     Scenario: Right Turn Assignment Three Conflicting Turns with invalid - 3 | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | g |   |   | |             """ | ||||||
|             | a |   | b |   | c | |                 g | ||||||
|             |   |   |   |   |   | |             a   b   c | ||||||
|             |   | d | e | f |   | | 
 | ||||||
|  |               d e f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | oneway | |             | nodes | highway | oneway | | ||||||
| @ -790,10 +862,12 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|     Scenario: Conflicting Turns with well distinguished turn |     Scenario: Conflicting Turns with well distinguished turn | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   |   | b |   |   | c | |             """ | ||||||
|             |   |   |   |   |   |   |   | |             a     b     c | ||||||
|             | f |   |   |   |   |   | d | | 
 | ||||||
|             |   |   |   |   |   |   | e | |             f           d | ||||||
|  |                         e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | |             | nodes | highway | | ||||||
| @ -810,10 +884,12 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|     Scenario: Conflicting Turns with well distinguished turn (back) |     Scenario: Conflicting Turns with well distinguished turn (back) | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   |   | b |   |   | c | |             """ | ||||||
|             |   |   |   |   |   |   |   | |             a     b     c | ||||||
|             | d |   |   |   |   |   | f | | 
 | ||||||
|             |   | e |   |   |   |   |   | |             d           f | ||||||
|  |               e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | |             | nodes | highway | | ||||||
| @ -830,12 +906,14 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|     Scenario: Turn Lane on Splitting up Road |     Scenario: Turn Lane on Splitting up Road | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | |             """ | ||||||
|             | g |   |   |   | f |   |   |   |   |   |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | |             g       f | ||||||
|             |   |   |   |   |   | h |   |   | e |   |   | c |   |   | d | | 
 | ||||||
|             | a |   |   | b |   |   |   |   |   |   |   |   |   |   |   | |                       h     e     c     d | ||||||
|             |   |   |   | i |   |   |   |   |   |   |   |   |   |   |   | |             a     b | ||||||
|  |                   i | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway        | oneway | name  | |             | nodes | highway        | oneway | name  | | ||||||
| @ -858,12 +936,14 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|      Scenario: Go onto turning major road |      Scenario: Go onto turning major road | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   | c | |             """ | ||||||
|             |   |   |   |   | |                   c | ||||||
|             |   |   |   |   | | 
 | ||||||
|             | a |   |   | b | | 
 | ||||||
|             |   |   |   |   | |             a     b | ||||||
|             |   |   |   | d | | 
 | ||||||
|  |                   d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway     | name | |             | nodes | highway     | name | | ||||||
| @ -878,12 +958,14 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|     Scenario: Channing Street |     Scenario: Channing Street | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | g | f |   | |             """ | ||||||
|             |   |   |   |   |   | |                 g f | ||||||
|             | d |   | c | b | a | | 
 | ||||||
|             |   |   |   |   |   | |             d   c b a | ||||||
|             |   |   |   |   |   | | 
 | ||||||
|             |   |   | h | e |   | | 
 | ||||||
|  |                 h e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the nodes |         And the nodes | ||||||
|             | node | highway         | |             | node | highway         | | ||||||
| @ -906,11 +988,13 @@ Feature: Simple Turns | |||||||
|     # https://www.mapillary.com/app/?focus=map&lat=38.91815595&lng=-77.03880249&z=17&pKey=sCxepTOCTZD3OoBXuqGEOw |     # https://www.mapillary.com/app/?focus=map&lat=38.91815595&lng=-77.03880249&z=17&pKey=sCxepTOCTZD3OoBXuqGEOw | ||||||
|     # http://www.openstreetmap.org/way/6062557#map=19/38.91805/-77.03892 |     # http://www.openstreetmap.org/way/6062557#map=19/38.91805/-77.03892 | ||||||
|         Given the node map |         Given the node map | ||||||
|             | y |   |   | x |   |   | |             """ | ||||||
|             |   |   | c |   |   |   | |             y     x | ||||||
|             |   | d |   |   | b | a | |                 c | ||||||
|             |   |   |   |   |   |   | |               d     b a | ||||||
|             | e |   |   |   |   |   | | 
 | ||||||
|  |             e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name                           | highway     | oneway | |             | nodes | name                           | highway     | oneway | | ||||||
| @ -925,15 +1009,17 @@ Feature: Simple Turns | |||||||
|     # http://www.openstreetmap.org/node/182805179 |     # http://www.openstreetmap.org/node/182805179 | ||||||
|     Scenario: Make Sharp Left at Traffic Signal |     Scenario: Make Sharp Left at Traffic Signal | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   | g |   |   |   | |             """ | ||||||
|             |   |   |   |   |   |   |   | |                   g | ||||||
|             |   |   |   | f |   |   | y | | 
 | ||||||
|             | i |   |   |   |   |   |   | |                   f     y | ||||||
|             | j | k | a |   | b |   | x | |             i | ||||||
|             |   |   |   | e |   | c |   | |             j k a   b   x | ||||||
|             |   |   |   |   | d |   |   | |                   e   c | ||||||
|             |   |   |   |   |   |   |   | |                     d | ||||||
|             |   |   |   | h |   |   |   | | 
 | ||||||
|  |                   h | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the nodes |         And the nodes | ||||||
|             | node | highway         | |             | node | highway         | | ||||||
| @ -957,9 +1043,11 @@ Feature: Simple Turns | |||||||
|     # https://www.openstreetmap.org/#map=20/52.51609/13.41080 |     # https://www.openstreetmap.org/#map=20/52.51609/13.41080 | ||||||
|     Scenario: Unnecessary Slight Left onto Stralauer Strasse |     Scenario: Unnecessary Slight Left onto Stralauer Strasse | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | e |   |   |   |   |   | |             """ | ||||||
|             |   |   |   |   |   |   |   | |               e | ||||||
|             | a |   | b |   | c |   | d | | 
 | ||||||
|  |             a   b   c   d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name          | highway   | oneway | |             | nodes | name          | highway   | oneway | | ||||||
| @ -975,9 +1063,11 @@ Feature: Simple Turns | |||||||
| 
 | 
 | ||||||
|     Scenario: Unnecessary Slight Left onto Stralauer Strasse |     Scenario: Unnecessary Slight Left onto Stralauer Strasse | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | e |   |   |   |   |   | |             """ | ||||||
|             |   |   |   |   |   |   |   | |               e | ||||||
|             | a |   | b |   | c |   | d | | 
 | ||||||
|  |             a   b   c   d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name          | highway   | oneway | |             | nodes | name          | highway   | oneway | | ||||||
| @ -995,22 +1085,24 @@ Feature: Simple Turns | |||||||
|     # http://www.openstreetmap.org/#map=19/52.46750/13.43171 |     # http://www.openstreetmap.org/#map=19/52.46750/13.43171 | ||||||
|     Scenario: Collapse Turn Instruction, Issue #2725 |     Scenario: Collapse Turn Instruction, Issue #2725 | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | f |   | |             """ | ||||||
|             |   | e |   | |               f | ||||||
|             |   |   |   | |               e | ||||||
|             |   |   |   | | 
 | ||||||
|             | g |   | d | | 
 | ||||||
|             |   |   |   | |             g   d | ||||||
|             |   |   |   | | 
 | ||||||
|             | h |   | c | | 
 | ||||||
|             |   |   |   | |             h   c | ||||||
|             |   |   |   | | 
 | ||||||
|             |   | b |   | | 
 | ||||||
|             |   | a |   | |               b | ||||||
|             |   |   |   | |               a | ||||||
|             |   |   |   | | 
 | ||||||
|             | r | x | s | | 
 | ||||||
|             |   | y |   | |             r x s | ||||||
|  |               y | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name           | highway   | oneway | |             | nodes | name           | highway   | oneway | | ||||||
| @ -1041,20 +1133,22 @@ Feature: Simple Turns | |||||||
|     # https://www.mapillary.com/app/?lat=52.466483333333336&lng=13.431908333333332&z=17&focus=photo&pKey=LWXnKqoGqUNLnG0lofiO0Q |     # https://www.mapillary.com/app/?lat=52.466483333333336&lng=13.431908333333332&z=17&focus=photo&pKey=LWXnKqoGqUNLnG0lofiO0Q | ||||||
|     # http://www.openstreetmap.org/#map=19/52.46750/13.43171 |     # http://www.openstreetmap.org/#map=19/52.46750/13.43171 | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | f |   | |             """ | ||||||
|             |   | e |   | |               f | ||||||
|             | g |   | d | |               e | ||||||
|             |   |   |   | |             g   d | ||||||
|             |   |   |   | | 
 | ||||||
|             | h |   | c | | 
 | ||||||
|             |   |   |   | |             h   c | ||||||
|             |   |   |   | | 
 | ||||||
|             |   | b |   | | 
 | ||||||
|             |   | a |   | |               b | ||||||
|             |   |   |   | |               a | ||||||
|             |   |   |   | | 
 | ||||||
|             | r | x | s | | 
 | ||||||
|             |   | y |   | |             r x s | ||||||
|  |               y | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | name           | highway   | oneway | |             | nodes | name           | highway   | oneway | | ||||||
| @ -1085,8 +1179,10 @@ Feature: Simple Turns | |||||||
|      @3002 |      @3002 | ||||||
|      Scenario: Obvious Index wigh very narrow turn to the right |      Scenario: Obvious Index wigh very narrow turn to the right | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b |   |   |   |   |   | c | |             """ | ||||||
|             |   |   |   |   |   |   |   |   | d | |             a   b           c | ||||||
|  |                             d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway      | name | |             | nodes | highway      | name | | ||||||
| @ -1102,8 +1198,10 @@ Feature: Simple Turns | |||||||
|      @3002 |      @3002 | ||||||
|      Scenario: Obvious Index wigh very narrow turn to the right |      Scenario: Obvious Index wigh very narrow turn to the right | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b |   |   |   |   |   | c |   | |             """ | ||||||
|             |   |   |   |   | e |   |   |   | d | f | |             a   b           c | ||||||
|  |                     e       d f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway      | name | |             | nodes | highway      | name | | ||||||
| @ -1120,8 +1218,10 @@ Feature: Simple Turns | |||||||
|     @3002 |     @3002 | ||||||
|     Scenario: Obvious Index wigh very narrow turn to the left |     Scenario: Obvious Index wigh very narrow turn to the left | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   |   |   |   |   | d | |             """ | ||||||
|             | a |   | b |   |   |   |   |   | c | |                             d | ||||||
|  |             a   b           c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway      | name | |             | nodes | highway      | name | | ||||||
| @ -1137,8 +1237,10 @@ Feature: Simple Turns | |||||||
|      @3002 |      @3002 | ||||||
|      Scenario: Obvious Index wigh very narrow turn to the left |      Scenario: Obvious Index wigh very narrow turn to the left | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   | e |   |   |   | d | f | |             """ | ||||||
|             | a |   | b |   |   |   |   |   | c |   | |                     e       d f | ||||||
|  |             a   b           c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway      | name | |             | nodes | highway      | name | | ||||||
|  | |||||||
| @ -113,6 +113,10 @@ class Node { | |||||||
|     addTag (k, v) { |     addTag (k, v) { | ||||||
|         this.tags[k] = v; |         this.tags[k] = v; | ||||||
|     } |     } | ||||||
|  | 
 | ||||||
|  |     setID (id ) { | ||||||
|  |         this.id = id; | ||||||
|  |     } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| class Way { | class Way { | ||||||
|  | |||||||
| @ -6,11 +6,13 @@ Feature: Locating Nearest node on a Way - pick closest way | |||||||
| 
 | 
 | ||||||
|     Scenario: Nearest - two ways crossing |     Scenario: Nearest - two ways crossing | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | 0 | c | 1 |   | |             """ | ||||||
|             | 7 |   | n |   | 2 | |               0 c 1 | ||||||
|             | a | k | x | m | b | |             7   n   2 | ||||||
|             | 6 |   | l |   | 3 | |             a k x m b | ||||||
|             |   | 5 | d | 4 |   | |             6   l   3 | ||||||
|  |               5 d 4 | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
| @ -34,12 +36,14 @@ Feature: Locating Nearest node on a Way - pick closest way | |||||||
| 
 | 
 | ||||||
|     Scenario: Nearest - inside a triangle |     Scenario: Nearest - inside a triangle | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |  |  |   |   | c |   |   |  |  |   | |             """ | ||||||
|             |   |  |  |   |   |   |   |   |  |  |   | |                       c | ||||||
|             |   |  |  | y |   |   |   | z |  |  |   | | 
 | ||||||
|             |   |  |  |   | 0 |   | 1 |   |  |  |   | |                   y       z | ||||||
|             |   |  |  | 2 |   | 3 |   | 4 |  |  |   | |                     0   1 | ||||||
|             | a |  |  | x |   | u |   | w |  |  | b | |                   2   3   4 | ||||||
|  |             a     x   u   w     b | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
|  | |||||||
| @ -6,9 +6,11 @@ Feature: Locating Nearest node on a Way - basic projection onto way | |||||||
| 
 | 
 | ||||||
|     Scenario: Nearest - easy-west way |     Scenario: Nearest - easy-west way | ||||||
|         Given the node map |         Given the node map | ||||||
|             | 0 | 1 | 2 | 3 | 4 | |             """ | ||||||
|             |   | a | x | b |   | |             0 1 2 3 4 | ||||||
|             | 5 | 6 | 7 | 8 | 9 | |               a x b | ||||||
|  |             5 6 7 8 9 | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
| @ -29,11 +31,13 @@ Feature: Locating Nearest node on a Way - basic projection onto way | |||||||
| 
 | 
 | ||||||
|     Scenario: Nearest - north-south way |     Scenario: Nearest - north-south way | ||||||
|         Given the node map |         Given the node map | ||||||
|             | 0 |   | 5 | |             """ | ||||||
|             | 1 | a | 6 | |             0   5 | ||||||
|             | 2 | x | 7 | |             1 a 6 | ||||||
|             | 3 | b | 8 | |             2 x 7 | ||||||
|             | 4 |   | 9 | |             3 b 8 | ||||||
|  |             4   9 | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
| @ -54,12 +58,14 @@ Feature: Locating Nearest node on a Way - basic projection onto way | |||||||
| 
 | 
 | ||||||
|     Scenario: Nearest - diagonal 1 |     Scenario: Nearest - diagonal 1 | ||||||
|         Given the node map |         Given the node map | ||||||
|             | 8 |   | 4 |   |   |   | |             """ | ||||||
|             |   | a |   | 5 |   |   | |             8   4 | ||||||
|             | 0 |   | x |   | 6 |   | |               a   5 | ||||||
|             |   | 1 |   | y |   | 7 | |             0   x   6 | ||||||
|             |   |   | 2 |   | b |   | |               1   y   7 | ||||||
|             |   |   |   | 3 |   | 9 | |                 2   b | ||||||
|  |                   3   9 | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
| @ -80,12 +86,14 @@ Feature: Locating Nearest node on a Way - basic projection onto way | |||||||
| 
 | 
 | ||||||
|     Scenario: Nearest - diagonal 2 |     Scenario: Nearest - diagonal 2 | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   | 3 |   | 9 | |             """ | ||||||
|             |   |   | 2 |   | b |   | |                   3   9 | ||||||
|             |   | 1 |   | y |   | 7 | |                 2   b | ||||||
|             | 0 |   | x |   | 6 |   | |               1   y   7 | ||||||
|             |   | a |   | 5 |   |   | |             0   x   6 | ||||||
|             | 8 |   | 4 |   |   |   | |               a   5 | ||||||
|  |             8   4 | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
|  | |||||||
| @ -7,22 +7,24 @@ Feature: osrm-contract command line options: datasources | |||||||
|         Given the profile "testbot" |         Given the profile "testbot" | ||||||
|         Given the extract extra arguments "--generate-edge-lookup" |         Given the extract extra arguments "--generate-edge-lookup" | ||||||
|         And the node map |         And the node map | ||||||
|             | a | b | |             """ | ||||||
|  |             a b | ||||||
|  |             """ | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
|             | ab    | |             | ab    | | ||||||
|         And the speed file |         And the speed file | ||||||
|         """ |         """ | ||||||
|         1,2,27 |         1,2,50 | ||||||
|         2,1,27 |         2,1,50 | ||||||
|         2,3,27 |         2,3,50 | ||||||
|         3,2,27 |         3,2,50 | ||||||
|         1,4,27 |         1,4,50 | ||||||
|         4,1,27 |         4,1,50 | ||||||
|         """ |         """ | ||||||
|         And the data has been extracted |         And the data has been extracted | ||||||
| 
 | 
 | ||||||
|     Scenario: osrm-contract - Passing base file |     Scenario: osrm-contract - Passing base file | ||||||
|         When I run "osrm-contract --segment-speed-file {speeds_file} {processed_file}" |         When I run "osrm-contract --segment-speed-file {speeds_file} {processed_file}" | ||||||
|         Then datasource names should contain "lua profile,25_osrmcontract_passing_base_file_speeds" |         Then datasource names should contain "lua profile,27_osrmcontract_passing_base_file_speeds" | ||||||
|         And it should exit successfully |         And it should exit successfully | ||||||
|  | |||||||
| @ -3,7 +3,9 @@ Feature: osrm-contract command line options: files | |||||||
|     Background: |     Background: | ||||||
|         Given the profile "testbot" |         Given the profile "testbot" | ||||||
|         And the node map |         And the node map | ||||||
|             | a | b | |             """ | ||||||
|  |             a b | ||||||
|  |             """ | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
|             | ab    | |             | ab    | | ||||||
|  | |||||||
| @ -7,7 +7,9 @@ Feature: osrm-extract command line options: files | |||||||
|     Background: |     Background: | ||||||
|         Given the profile "testbot" |         Given the profile "testbot" | ||||||
|         And the node map |         And the node map | ||||||
|             | a | b | |             """ | ||||||
|  |             a b | ||||||
|  |             """ | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
|             | ab    | |             | ab    | | ||||||
|  | |||||||
| @ -15,7 +15,9 @@ Feature: osrm-routed command line options: files | |||||||
|     Background: |     Background: | ||||||
|         Given the profile "testbot" |         Given the profile "testbot" | ||||||
|         And the node map |         And the node map | ||||||
|             | a | b | |             """ | ||||||
|  |             a b | ||||||
|  |             """ | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
|             | ab    | |             | ab    | | ||||||
|  | |||||||
| @ -3,7 +3,9 @@ Feature: osrm-extract with a profile containing raster source | |||||||
|     Scenario: osrm-extract on a valid profile |     Scenario: osrm-extract on a valid profile | ||||||
|         Given the profile "rasterbot" |         Given the profile "rasterbot" | ||||||
|         And the node map |         And the node map | ||||||
|             | a | b | |             """ | ||||||
|  |             a b | ||||||
|  |             """ | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
|             | ab    | |             | ab    | | ||||||
|  | |||||||
| @ -48,41 +48,26 @@ module.exports = function () { | |||||||
|         q.awaitAll(callback); |         q.awaitAll(callback); | ||||||
|     }); |     }); | ||||||
| 
 | 
 | ||||||
|     this.Given(/^the node map$/, (table, callback) => { |     this.Given(/^the node map$/, (docstring, callback) => { | ||||||
|         let q = d3.queue(); |         var q = d3.queue(); | ||||||
| 
 | 
 | ||||||
|         let addNode = (name, ri, ci, cb) => { |         var addNode = (name, ri, ci, cb) => { | ||||||
|             if (name) { |             var lonLat = this.tableCoordToLonLat(ci, ri); | ||||||
|                 let nodeWithID = name.match(/([a-z])\:([0-9]*)/); |             if (name.match(/[a-z]/) ) { | ||||||
|                 if (nodeWithID) { |  | ||||||
|                     let nodeName = nodeWithID[1], |  | ||||||
|                         nodeID = nodeWithID[2]; |  | ||||||
|                     if (this.nameNodeHash[nodeName]) throw new Error(util.format('*** duplicate node %s', name)); |  | ||||||
|                     let lonLat = this.tableCoordToLonLat(ci, ri); |  | ||||||
|                     this.addOSMNode(nodeName, lonLat[0], lonLat[1], nodeID); |  | ||||||
|                 } else { |  | ||||||
|                     if (name.length !== 1) throw new Error(util.format('*** node invalid name %s, must be single characters', name)); |  | ||||||
|                     if (!name.match(/[a-z0-9]/)) throw new Error(util.format('*** invalid node name %s, must me alphanumeric', name)); |  | ||||||
| 
 |  | ||||||
|                     if (name.match(/[a-z]/)) { |  | ||||||
|                 if (this.nameNodeHash[name]) throw new Error(util.format('*** duplicate node %s', name)); |                 if (this.nameNodeHash[name]) throw new Error(util.format('*** duplicate node %s', name)); | ||||||
|                         let lonLat = this.tableCoordToLonLat(ci, ri); |  | ||||||
|                 this.addOSMNode(name, lonLat[0], lonLat[1], null); |                 this.addOSMNode(name, lonLat[0], lonLat[1], null); | ||||||
|                     } else { |             } else if (name.match(/[0-9]/) ) { | ||||||
|                 if (this.locationHash[name]) throw new Error(util.format('*** duplicate node %s'), name); |                 if (this.locationHash[name]) throw new Error(util.format('*** duplicate node %s'), name); | ||||||
|                         let lonLat = this.tableCoordToLonLat(ci, ri); |  | ||||||
|                 this.addLocation(name, lonLat[0], lonLat[1], null); |                 this.addLocation(name, lonLat[0], lonLat[1], null); | ||||||
|             } |             } | ||||||
|                 } |  | ||||||
| 
 |  | ||||||
|             cb(); |             cb(); | ||||||
|             } |  | ||||||
|             else cb(); |  | ||||||
|         }; |         }; | ||||||
| 
 | 
 | ||||||
|         table.raw().forEach((row, ri) => { |         docstring.split(/\n/).forEach( (row,ri) => { | ||||||
|             row.forEach((name, ci) => { |             row.split('').forEach( (cell,ci) => { | ||||||
|                 q.defer(addNode, name, ri, ci); |                 if( cell.match(/[a-z0-9]/) ) { | ||||||
|  |                     q.defer(addNode, cell, ri, ci*0.5); | ||||||
|  |                 } | ||||||
|             }); |             }); | ||||||
|         }); |         }); | ||||||
| 
 | 
 | ||||||
| @ -120,8 +105,12 @@ module.exports = function () { | |||||||
|             delete row.node; |             delete row.node; | ||||||
|             if (!node) throw new Error(util.format('*** unknown node %s'), name); |             if (!node) throw new Error(util.format('*** unknown node %s'), name); | ||||||
|             for (let key in row) { |             for (let key in row) { | ||||||
|  |                 if (key=='id') { | ||||||
|  |                     node.setID( row[key] ); | ||||||
|  |                 } else { | ||||||
|                     node.addTag(key, row[key]); |                     node.addTag(key, row[key]); | ||||||
|                 } |                 } | ||||||
|  |             } | ||||||
|             cb(); |             cb(); | ||||||
|         }; |         }; | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -8,9 +8,11 @@ Feature: Stress testing | |||||||
|     #osrm-routed hangs very often |     #osrm-routed hangs very often | ||||||
|         Given a grid size of 10000 meters |         Given a grid size of 10000 meters | ||||||
|         Given the node map |         Given the node map | ||||||
|             | h | a | b | |             """ | ||||||
|             | g | x | c | |             h a b | ||||||
|             | f | e | d | |             g x c | ||||||
|  |             f e d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | |             | nodes | highway | | ||||||
| @ -31,9 +33,11 @@ Feature: Stress testing | |||||||
|     #osrm-routed hangs sometimes |     #osrm-routed hangs sometimes | ||||||
|         Given a grid size of 10000 meters |         Given a grid size of 10000 meters | ||||||
|         Given the node map |         Given the node map | ||||||
|             | h | a | b | |             """ | ||||||
|             | g | x | c | |             h a b | ||||||
|             | f | e | d | |             g x c | ||||||
|  |             f e d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | |             | nodes | highway | | ||||||
|  | |||||||
| @ -6,9 +6,11 @@ Feature: Alternative route | |||||||
|         And a grid size of 200 meters |         And a grid size of 200 meters | ||||||
| 
 | 
 | ||||||
|         And the node map |         And the node map | ||||||
|             |   | b | c | d |   |   | |             """ | ||||||
|             | a |   | k |   |   | z | |               b c d | ||||||
|             |   | g | h | i | j |   | |             a   k     z | ||||||
|  |               g h i j | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
|  | |||||||
| @ -6,10 +6,12 @@ Feature: Alternative route | |||||||
| 
 | 
 | ||||||
|     Scenario: Alternative Loop Paths |     Scenario: Alternative Loop Paths | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | 2 | 1 | b | |             """ | ||||||
|             | 7 |   |   | 4 | |             a 2 1 b | ||||||
|             | 8 |   |   | 3 | |             7     4 | ||||||
|             | c | 5 | 6 | d | |             8     3 | ||||||
|  |             c 5 6 d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
|  | |||||||
| @ -6,7 +6,9 @@ Feature: Handle bad data in a graceful manner | |||||||
| 
 | 
 | ||||||
|     Scenario: Empty dataset |     Scenario: Empty dataset | ||||||
|         Given the node map |         Given the node map | ||||||
|             |  | |             """ | ||||||
|  | 
 | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         Given the ways |         Given the ways | ||||||
|             | nodes | |             | nodes | | ||||||
| @ -16,7 +18,9 @@ Feature: Handle bad data in a graceful manner | |||||||
| 
 | 
 | ||||||
|     Scenario: Only dead-end oneways |     Scenario: Only dead-end oneways | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | d | e | |             """ | ||||||
|  |             a b c d e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         Given the ways |         Given the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
| @ -29,8 +33,10 @@ Feature: Handle bad data in a graceful manner | |||||||
|     @todo |     @todo | ||||||
|     Scenario: Start/end point at the same location |     Scenario: Start/end point at the same location | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | |             """ | ||||||
|             | 1 | 2 | |             a b | ||||||
|  |             1 2 | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         Given the ways |         Given the ways | ||||||
|             | nodes | |             | nodes | | ||||||
|  | |||||||
| @ -7,7 +7,9 @@ Feature: Basic Routing | |||||||
|     @smallest |     @smallest | ||||||
|     Scenario: A single way with two nodes |     Scenario: A single way with two nodes | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | |             """ | ||||||
|  |             a b | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
| @ -20,7 +22,9 @@ Feature: Basic Routing | |||||||
| 
 | 
 | ||||||
|     Scenario: Routing in between two nodes of way |     Scenario: Routing in between two nodes of way | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | 1 | 2 | c | d | |             """ | ||||||
|  |             a b 1 2 c d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
| @ -33,7 +37,9 @@ Feature: Basic Routing | |||||||
| 
 | 
 | ||||||
|     Scenario: Routing between the middle nodes of way |     Scenario: Routing between the middle nodes of way | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | d | e | f | |             """ | ||||||
|  |             a b c d e f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | |             | nodes  | | ||||||
| @ -56,7 +62,9 @@ Feature: Basic Routing | |||||||
| 
 | 
 | ||||||
|     Scenario: Two ways connected in a straight line |     Scenario: Two ways connected in a straight line | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b |   | c | |             """ | ||||||
|  |             a   b   c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
| @ -74,8 +82,10 @@ Feature: Basic Routing | |||||||
| 
 | 
 | ||||||
|     Scenario: 2 unconnected parallel ways |     Scenario: 2 unconnected parallel ways | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | |             """ | ||||||
|             | d | e | f | |             a b c | ||||||
|  |             d e f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
| @ -113,9 +123,11 @@ Feature: Basic Routing | |||||||
| 
 | 
 | ||||||
|     Scenario: 3 ways connected in a triangle |     Scenario: 3 ways connected in a triangle | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | b | |             """ | ||||||
|             |   |   |   | |             a   b | ||||||
|             |   | c |   | | 
 | ||||||
|  |               c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
| @ -135,10 +147,12 @@ Feature: Basic Routing | |||||||
|     Scenario: 3 connected triangles |     Scenario: 3 connected triangles | ||||||
|         Given a grid size of 100 meters |         Given a grid size of 100 meters | ||||||
|         Given the node map |         Given the node map | ||||||
|             | x | a |   | b | s | |             """ | ||||||
|             | y |   |   |   | t | |             x a   b s | ||||||
|             |   |   | c |   |   | |             y       t | ||||||
|             |   | v |   | w |   | |                 c | ||||||
|  |               v   w | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
| @ -166,9 +180,11 @@ Feature: Basic Routing | |||||||
| 
 | 
 | ||||||
|     Scenario: To ways connected at a 45 degree angle |     Scenario: To ways connected at a 45 degree angle | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   |   | |             """ | ||||||
|             | b |   |   | |             a | ||||||
|             | c | d | e | |             b | ||||||
|  |             c d e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
| @ -186,10 +202,12 @@ Feature: Basic Routing | |||||||
| 
 | 
 | ||||||
|     Scenario: Grid city center |     Scenario: Grid city center | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | d | |             """ | ||||||
|             | e | f | g | h | |             a b c d | ||||||
|             | i | j | k | l | |             e f g h | ||||||
|             | m | n | o | p | |             i j k l | ||||||
|  |             m n o p | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
| @ -211,10 +229,12 @@ Feature: Basic Routing | |||||||
| 
 | 
 | ||||||
|     Scenario: Grid city periphery |     Scenario: Grid city periphery | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | d | |             """ | ||||||
|             | e | f | g | h | |             a b c d | ||||||
|             | i | j | k | l | |             e f g h | ||||||
|             | m | n | o | p | |             i j k l | ||||||
|  |             m n o p | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
| @ -236,9 +256,11 @@ Feature: Basic Routing | |||||||
| 
 | 
 | ||||||
|     Scenario: Testbot - Triangle challenge |     Scenario: Testbot - Triangle challenge | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   | d | |             """ | ||||||
|             | a | b | c |   | |                   d | ||||||
|             |   |   |   | e | |             a b c | ||||||
|  |                   e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | oneway | |             | nodes | highway | oneway | | ||||||
| @ -254,7 +276,9 @@ Feature: Basic Routing | |||||||
| 
 | 
 | ||||||
|     Scenario: Ambiguous edge weights - Use minimal edge weight |     Scenario: Ambiguous edge weights - Use minimal edge weight | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | |             """ | ||||||
|  |             a b | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway   | name | |             | nodes | highway   | name | | ||||||
| @ -269,7 +293,9 @@ Feature: Basic Routing | |||||||
| 
 | 
 | ||||||
|     Scenario: Ambiguous edge names - Use lexicographically smallest name |     Scenario: Ambiguous edge names - Use lexicographically smallest name | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | |             """ | ||||||
|  |             a b c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | name | |             | nodes | highway | name | | ||||||
|  | |||||||
| @ -6,8 +6,10 @@ Feature: Compass bearing | |||||||
| 
 | 
 | ||||||
|     Scenario: Bearing when going northwest |     Scenario: Bearing when going northwest | ||||||
|         Given the node map |         Given the node map | ||||||
|             | b |   | |             """ | ||||||
|             |   | a | |             b | ||||||
|  |               a | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
| @ -19,7 +21,9 @@ Feature: Compass bearing | |||||||
| 
 | 
 | ||||||
|     Scenario: Bearing when going west |     Scenario: Bearing when going west | ||||||
|         Given the node map |         Given the node map | ||||||
|             | b | a | |             """ | ||||||
|  |             b a | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
| @ -31,9 +35,11 @@ Feature: Compass bearing | |||||||
| 
 | 
 | ||||||
|     Scenario: Bearing af 45 degree intervals |     Scenario: Bearing af 45 degree intervals | ||||||
|         Given the node map |         Given the node map | ||||||
|             | b | a | h | |             """ | ||||||
|             | c | x | g | |             b a h | ||||||
|             | d | e | f | |             c x g | ||||||
|  |             d e f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
| @ -59,10 +65,12 @@ Feature: Compass bearing | |||||||
| 
 | 
 | ||||||
|     Scenario: Bearing in a roundabout |     Scenario: Bearing in a roundabout | ||||||
|         Given the node map |         Given the node map | ||||||
|             | k | d | c | j | |             """ | ||||||
|             | e |   |   | b | |             k d c j | ||||||
|             | f |   |   | a | |             e     b | ||||||
|             | l | g | h | i | |             f     a | ||||||
|  |             l g h i | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
| @ -90,10 +98,12 @@ Feature: Compass bearing | |||||||
| 
 | 
 | ||||||
|     Scenario: Bearing should stay constant when zig-zagging |     Scenario: Bearing should stay constant when zig-zagging | ||||||
|         Given the node map |         Given the node map | ||||||
|             | i | j | k |   | |             """ | ||||||
|             | b | d | f | h | |             i j k | ||||||
|             | a | c | e | g | |             b d f h | ||||||
|             |   | m | n | o | |             a c e g | ||||||
|  |               m n o | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
| @ -117,7 +127,9 @@ Feature: Compass bearing | |||||||
| 
 | 
 | ||||||
|     Scenario: Bearings on an east-west way. |     Scenario: Bearings on an east-west way. | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | d | e | f | |             """ | ||||||
|  |             a b c d e f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | |             | nodes  | | ||||||
|  | |||||||
| @ -7,7 +7,9 @@ Feature: Bearing parameter | |||||||
| 
 | 
 | ||||||
|     Scenario: Testbot - Intial bearing in simple case |     Scenario: Testbot - Intial bearing in simple case | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | d | |             """ | ||||||
|  |             a b c d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
| @ -23,9 +25,11 @@ Feature: Bearing parameter | |||||||
| 
 | 
 | ||||||
|     Scenario: Testbot - Intial bearing in simple case |     Scenario: Testbot - Intial bearing in simple case | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | |             """ | ||||||
|             | 0 | c | |             a | ||||||
|             | b |   | |             0 c | ||||||
|  |             b | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
| @ -43,8 +47,10 @@ Feature: Bearing parameter | |||||||
| 
 | 
 | ||||||
|     Scenario: Testbot - Initial bearing on split way |     Scenario: Testbot - Initial bearing on split way | ||||||
|         Given the node map |         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 |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
| @ -76,13 +82,15 @@ Feature: Bearing parameter | |||||||
| 
 | 
 | ||||||
|     Scenario: Testbot - Initial bearing in all direction |     Scenario: Testbot - Initial bearing in all direction | ||||||
|         Given the node map |         Given the node map | ||||||
|             | h |  | q | a |   |  | b | |             """ | ||||||
|             |   |  |   |   |   |  |   | |             h   q a     b | ||||||
|             |   |  | p | i | j |  |   | | 
 | ||||||
|             | g |  | o | 0 | k |  | c | |                 p i j | ||||||
|             |   |  | n | m | l |  |   | |             g   o 0 k   c | ||||||
|             |   |  |   |   |   |  |   | |                 n m l | ||||||
|             | f |  |   | e |   |  | d | | 
 | ||||||
|  |             f     e     d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | name | |             | nodes | oneway | name | | ||||||
|  | |||||||
| @ -6,9 +6,11 @@ Feature: Geometry Compression | |||||||
| 
 | 
 | ||||||
|     Scenario: Compressed segments have correct order |     Scenario: Compressed segments have correct order | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a |   | d |   |   |   | h | |             """ | ||||||
|             | b |   |   |   | e |   | f | |             a   d       h | ||||||
|             |   | c |   |   |   |   | g | |             b       e   f | ||||||
|  |               c         g | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | |             | nodes  | | ||||||
|  | |||||||
| @ -7,8 +7,10 @@ Feature: U-turns at via points | |||||||
| 
 | 
 | ||||||
|     Scenario: Continue straight at waypoints enabled by default |     Scenario: Continue straight at waypoints enabled by default | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | d | |             """ | ||||||
|             |   | e | f | g | |             a b c d | ||||||
|  |               e f g | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
| @ -26,8 +28,10 @@ Feature: U-turns at via points | |||||||
| 
 | 
 | ||||||
|     Scenario: Query parameter to disallow changing direction at all waypoints |     Scenario: Query parameter to disallow changing direction at all waypoints | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | d | |             """ | ||||||
|             |   | e | f | g | |             a b c d | ||||||
|  |               e f g | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the query options |         And the query options | ||||||
|             | continue_straight | false | |             | continue_straight | false | | ||||||
| @ -48,8 +52,10 @@ Feature: U-turns at via points | |||||||
| 
 | 
 | ||||||
|     Scenario: Instructions at waypoints at u-turns |     Scenario: Instructions at waypoints at u-turns | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | d | |             """ | ||||||
|             |   | e | f | g | |             a b c d | ||||||
|  |               e f g | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the query options |         And the query options | ||||||
|             | continue_straight | false | |             | continue_straight | false | | ||||||
| @ -70,9 +76,11 @@ Feature: U-turns at via points | |||||||
| 
 | 
 | ||||||
|     Scenario: u-turn mixed with non-uturn vias |     Scenario: u-turn mixed with non-uturn vias | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | 1 | b | 3 | c | 5 | d | |             """ | ||||||
|             |   |   | 2 |   |   |   | 4 | |             a 1 b 3 c 5 d | ||||||
|             |   |   | e |   | f |   | g | |                 2       4 | ||||||
|  |                 e   f   g | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the query options |         And the query options | ||||||
|             | continue_straight | false | |             | continue_straight | false | | ||||||
|  | |||||||
| @ -6,7 +6,9 @@ Feature: Temporary tests related to osrm-datastore | |||||||
| 
 | 
 | ||||||
|     Scenario: Scenario ab |     Scenario: Scenario ab | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | |             """ | ||||||
|  |             a b | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
| @ -19,7 +21,9 @@ Feature: Temporary tests related to osrm-datastore | |||||||
| 
 | 
 | ||||||
|     Scenario: Scenaria xy |     Scenario: Scenaria xy | ||||||
|         Given the node map |         Given the node map | ||||||
|             | x | y | |             """ | ||||||
|  |             x y | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
|  | |||||||
| @ -7,7 +7,9 @@ Feature: Distance calculation | |||||||
|     Scenario: 100m distance |     Scenario: 100m distance | ||||||
|         Given a grid size of 100 meters |         Given a grid size of 100 meters | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | |             """ | ||||||
|  |             a b | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
| @ -19,9 +21,11 @@ Feature: Distance calculation | |||||||
| 
 | 
 | ||||||
|     Scenario: Distance should equal sum of segments, leftwinded |     Scenario: Distance should equal sum of segments, leftwinded | ||||||
|         Given the node map |         Given the node map | ||||||
|             | e |   | |             """ | ||||||
|             | d | c | |             e | ||||||
|             | a | b | |             d c | ||||||
|  |             a b | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
| @ -33,9 +37,11 @@ Feature: Distance calculation | |||||||
| 
 | 
 | ||||||
|     Scenario: Distance should equal sum of segments, rightwinded |     Scenario: Distance should equal sum of segments, rightwinded | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | e | |             """ | ||||||
|             | c | d | |               e | ||||||
|             | b | a | |             c d | ||||||
|  |             b a | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
| @ -48,8 +54,10 @@ Feature: Distance calculation | |||||||
|     Scenario: 10m distances |     Scenario: 10m distances | ||||||
|         Given a grid size of 10 meters |         Given a grid size of 10 meters | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | |             """ | ||||||
|             |   | c | |             a b | ||||||
|  |               c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
| @ -67,8 +75,10 @@ Feature: Distance calculation | |||||||
|     Scenario: 100m distances |     Scenario: 100m distances | ||||||
|         Given a grid size of 100 meters |         Given a grid size of 100 meters | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | |             """ | ||||||
|             |   | c | |             a b | ||||||
|  |               c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
| @ -86,8 +96,10 @@ Feature: Distance calculation | |||||||
|     Scenario: 1km distance |     Scenario: 1km distance | ||||||
|         Given a grid size of 1000 meters |         Given a grid size of 1000 meters | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | |             """ | ||||||
|             |   | c | |             a b | ||||||
|  |               c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
| @ -105,10 +117,12 @@ Feature: Distance calculation | |||||||
|     Scenario: Distance of a winding south-north path |     Scenario: Distance of a winding south-north path | ||||||
|         Given a grid size of 10 meters |         Given a grid size of 10 meters | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | |             """ | ||||||
|             | d | c | |             a b | ||||||
|             | e | f | |             d c | ||||||
|             | h | g | |             e f | ||||||
|  |             h g | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes    | |             | nodes    | | ||||||
| @ -127,8 +141,10 @@ Feature: Distance calculation | |||||||
|     Scenario: Distance of a winding east-west path |     Scenario: Distance of a winding east-west path | ||||||
|         Given a grid size of 10 meters |         Given a grid size of 10 meters | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | d | e | h | |             """ | ||||||
|             | b | c | f | g | |             a d e h | ||||||
|  |             b c f g | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes    | |             | nodes    | | ||||||
| @ -147,13 +163,15 @@ Feature: Distance calculation | |||||||
|     Scenario: Geometric distances |     Scenario: Geometric distances | ||||||
|         Given a grid size of 100 meters |         Given a grid size of 100 meters | ||||||
|         Given the node map |         Given the node map | ||||||
|             | v | w | y | a | b | c | d | |             """ | ||||||
|             | u |   |   |   |   |   | e | |             v w y a b c d | ||||||
|             | t |   |   |   |   |   | f | |             u           e | ||||||
|             | s |   |   | x |   |   | g | |             t           f | ||||||
|             | r |   |   |   |   |   | h | |             s     x     g | ||||||
|             | q |   |   |   |   |   | i | |             r           h | ||||||
|             | p | o | n | m | l | k | j | |             q           i | ||||||
|  |             p o n m l k j | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
| @ -213,11 +231,13 @@ Feature: Distance calculation | |||||||
|     Scenario: Distance of a maze of short segments |     Scenario: Distance of a maze of short segments | ||||||
|         Given a grid size of 7 meters |         Given a grid size of 7 meters | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | s | t | |             """ | ||||||
|             | d | c | r | q | |             a b s t | ||||||
|             | e | f | o | p | |             d c r q | ||||||
|             | h | g | n | m | |             e f o p | ||||||
|             | i | j | k | l | |             h g n m | ||||||
|  |             i j k l | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes                | |             | nodes                | | ||||||
|  | |||||||
| @ -9,7 +9,9 @@ Feature: Basic Distance Matrix | |||||||
| 
 | 
 | ||||||
|     Scenario: Testbot - Travel time matrix of minimal network |     Scenario: Testbot - Travel time matrix of minimal network | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | |             """ | ||||||
|  |             a b | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
| @ -22,7 +24,9 @@ Feature: Basic Distance Matrix | |||||||
| 
 | 
 | ||||||
|     Scenario: Testbot - Travel time matrix with different way speeds |     Scenario: Testbot - Travel time matrix with different way speeds | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | d | |             """ | ||||||
|  |             a b c d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway   | |             | nodes | highway   | | ||||||
| @ -39,7 +43,9 @@ Feature: Basic Distance Matrix | |||||||
| 
 | 
 | ||||||
|     Scenario: Testbot - Travel time matrix with fuzzy match |     Scenario: Testbot - Travel time matrix with fuzzy match | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | |             """ | ||||||
|  |             a b | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
| @ -52,8 +58,10 @@ Feature: Basic Distance Matrix | |||||||
| 
 | 
 | ||||||
|     Scenario: Testbot - Travel time matrix of small grid |     Scenario: Testbot - Travel time matrix of small grid | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | |             """ | ||||||
|             | d | e | f | |             a b c | ||||||
|  |             d e f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
| @ -72,7 +80,9 @@ Feature: Basic Distance Matrix | |||||||
| 
 | 
 | ||||||
|     Scenario: Testbot - Travel time matrix of network with unroutable parts |     Scenario: Testbot - Travel time matrix of network with unroutable parts | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | |             """ | ||||||
|  |             a b | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
| @ -85,8 +95,10 @@ Feature: Basic Distance Matrix | |||||||
| 
 | 
 | ||||||
|     Scenario: Testbot - Travel time matrix of network with oneways |     Scenario: Testbot - Travel time matrix of network with oneways | ||||||
|         Given the node map |         Given the node map | ||||||
|             | x | a | b | y | |             """ | ||||||
|             |   | d | e |   | |             x a b y | ||||||
|  |               d e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
| @ -103,8 +115,10 @@ Feature: Basic Distance Matrix | |||||||
| 
 | 
 | ||||||
|     Scenario: Testbot - Travel time matrix and with only one source |     Scenario: Testbot - Travel time matrix and with only one source | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | |             """ | ||||||
|             | d | e | f | |             a b c | ||||||
|  |             d e f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
| @ -120,8 +134,10 @@ Feature: Basic Distance Matrix | |||||||
| 
 | 
 | ||||||
|      Scenario: Testbot - Travel time 3x2 matrix |      Scenario: Testbot - Travel time 3x2 matrix | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | |             """ | ||||||
|             | d | e | f | |             a b c | ||||||
|  |             d e f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
| @ -140,8 +156,10 @@ Feature: Basic Distance Matrix | |||||||
|         Given a grid size of 300 meters |         Given a grid size of 300 meters | ||||||
|         Given the extract extra arguments "--small-component-size 4" |         Given the extract extra arguments "--small-component-size 4" | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b |  | f | |             """ | ||||||
|             | d | e |  | g | |             a b   f | ||||||
|  |             d e   g | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
| @ -160,8 +178,10 @@ Feature: Basic Distance Matrix | |||||||
|         Given a grid size of 300 meters |         Given a grid size of 300 meters | ||||||
|         Given the extract extra arguments "--small-component-size 4" |         Given the extract extra arguments "--small-component-size 4" | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b |  | f | h | |             """ | ||||||
|             | d | e |  | g | i | |             a b   f h | ||||||
|  |             d e   g i | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
| @ -181,8 +201,10 @@ Feature: Basic Distance Matrix | |||||||
| 
 | 
 | ||||||
|     Scenario: Testbot - Travel time matrix with loops |     Scenario: Testbot - Travel time matrix with loops | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | 1 | 2 | b | |             """ | ||||||
|             | d | 4 | 3 | c | |             a 1 2 b | ||||||
|  |             d 4 3 c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
|  | |||||||
| @ -6,9 +6,11 @@ Feature: Durations | |||||||
| 
 | 
 | ||||||
|     Scenario: Duration of ways |     Scenario: Duration of ways | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b |  |   |   | f | |             """ | ||||||
|             |   |   |  | e |   |   | |             a b       f | ||||||
|             |   | c |  |   | d |   | |                   e | ||||||
|  |               c     d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | duration | |             | nodes | highway | duration | | ||||||
| @ -29,7 +31,9 @@ Feature: Durations | |||||||
|     @todo |     @todo | ||||||
|     Scenario: Partial duration of ways |     Scenario: Partial duration of ways | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b |  | c | |             """ | ||||||
|  |             a b   c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | duration | |             | nodes | highway | duration | | ||||||
|  | |||||||
| @ -8,9 +8,11 @@ Feature: Testbot - Walkthrough | |||||||
| 
 | 
 | ||||||
|     Scenario: Testbot - Processing Flow |     Scenario: Testbot - Processing Flow | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   | d | |             """ | ||||||
|             | a | b | c |   | |                   d | ||||||
|             |   |   |   | e | |             a b c | ||||||
|  |                   e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | oneway | |             | nodes | highway | oneway | | ||||||
|  | |||||||
| @ -6,9 +6,11 @@ Feature: Choosing fastest route | |||||||
| 
 | 
 | ||||||
|     Scenario: Pick the geometrically shortest route, way types being equal |     Scenario: Pick the geometrically shortest route, way types being equal | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | s |   |   | |             """ | ||||||
|             |   |   | t |   |   | |                 s | ||||||
|             | x | a |   | b | y | |                 t | ||||||
|  |             x a   b y | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | |             | nodes | highway | | ||||||
| @ -24,8 +26,10 @@ Feature: Choosing fastest route | |||||||
| 
 | 
 | ||||||
|     Scenario: Pick the fastest route, even when it's longer |     Scenario: Pick the fastest route, even when it's longer | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | p |   | |             """ | ||||||
|             | a | s | b | |               p | ||||||
|  |             a s b | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway   | |             | nodes | highway   | | ||||||
|  | |||||||
| @ -6,11 +6,13 @@ Feature: Testbot - Handle ferry routes | |||||||
| 
 | 
 | ||||||
|     Scenario: Testbot - Ferry duration, single node |     Scenario: Testbot - Ferry duration, single node | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | d | |             """ | ||||||
|             | e | f | g | h | |             a b c d | ||||||
|             | i | j | k | l | |             e f g h | ||||||
|             | m | n | o | p | |             i j k l | ||||||
|             | q | r | s | t | |             m n o p | ||||||
|  |             q r s t | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | route | duration | |             | nodes | highway | route | duration | | ||||||
| @ -41,9 +43,11 @@ Feature: Testbot - Handle ferry routes | |||||||
|     @todo |     @todo | ||||||
|     Scenario: Testbot - Week long ferry routes |     Scenario: Testbot - Week long ferry routes | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | d | |             """ | ||||||
|             | e | f | g | h | |             a b c d | ||||||
|             | i | j | k | l | |             e f g h | ||||||
|  |             i j k l | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | route | duration | |             | nodes | highway | route | duration | | ||||||
| @ -65,8 +69,10 @@ Feature: Testbot - Handle ferry routes | |||||||
| 
 | 
 | ||||||
|     Scenario: Testbot - Ferry duration, multiple nodes |     Scenario: Testbot - Ferry duration, multiple nodes | ||||||
|         Given the node map |         Given the node map | ||||||
|             | x |   |   |   |   | y | |             """ | ||||||
|             |   | a | b | c | d |   | |             x         y | ||||||
|  |               a b c d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | route | duration | |             | nodes | highway | route | duration | | ||||||
| @ -83,8 +89,10 @@ Feature: Testbot - Handle ferry routes | |||||||
|     Scenario: Testbot - Ferry duration, individual parts, fast |     Scenario: Testbot - Ferry duration, individual parts, fast | ||||||
|     Given a grid size of 10000 meters |     Given a grid size of 10000 meters | ||||||
|         Given the node map |         Given the node map | ||||||
|             | x | y |  | z |  |  | v | |             """ | ||||||
|             | a | b |  | c |  |  | d | |             x y   z     v | ||||||
|  |             a b   c     d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | route | duration | |             | nodes | highway | route | duration | | ||||||
| @ -104,8 +112,10 @@ Feature: Testbot - Handle ferry routes | |||||||
|     @todo |     @todo | ||||||
|     Scenario: Testbot - Ferry duration, individual parts, slow |     Scenario: Testbot - Ferry duration, individual parts, slow | ||||||
|         Given the node map |         Given the node map | ||||||
|             | x | y |  | z |  |  | v | |             """ | ||||||
|             | a | b |  | c |  |  | d | |             x y   z     v | ||||||
|  |             a b   c     d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | route | duration | |             | nodes | highway | route | duration | | ||||||
| @ -124,8 +134,10 @@ Feature: Testbot - Handle ferry routes | |||||||
| 
 | 
 | ||||||
|     Scenario: Testbot - Ferry duration, connected routes |     Scenario: Testbot - Ferry duration, connected routes | ||||||
|         Given the node map |         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 |         And the ways | ||||||
|             | nodes | highway | route | duration | |             | nodes | highway | route | duration | | ||||||
| @ -141,9 +153,11 @@ Feature: Testbot - Handle ferry routes | |||||||
| 
 | 
 | ||||||
|     Scenario: Testbot - Prefer road when faster than ferry |     Scenario: Testbot - Prefer road when faster than ferry | ||||||
|         Given the node map |         Given the node map | ||||||
|             | x | a | b | c |   | |             """ | ||||||
|             |   |   |   |   | d | |             x a b c | ||||||
|             | y | g | f | e |   | |                     d | ||||||
|  |             y g f e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | route | duration | |             | nodes | highway | route | duration | | ||||||
| @ -160,8 +174,10 @@ Feature: Testbot - Handle ferry routes | |||||||
| 
 | 
 | ||||||
|     Scenario: Testbot - Long winding ferry route |     Scenario: Testbot - Long winding ferry route | ||||||
|         Given the node map |         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 |         And the ways | ||||||
|             | nodes   | highway | route | duration | |             | nodes   | highway | route | duration | | ||||||
| @ -177,8 +193,10 @@ Feature: Testbot - Handle ferry routes | |||||||
|     @todo |     @todo | ||||||
|     Scenario: Testbot - Ferry duration formats |     Scenario: Testbot - Ferry duration formats | ||||||
|         Given the node map |         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 |         And the ways | ||||||
|             | nodes | route | duration | |             | nodes | route | duration | | ||||||
|  | |||||||
| @ -28,7 +28,9 @@ Feature: Fixed bugs, kept to check for regressions | |||||||
|     Scenario: Step trimming with very short segments |     Scenario: Step trimming with very short segments | ||||||
|         Given a grid size of 0.1 meters |         Given a grid size of 0.1 meters | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | 1 | b | c | d | 2 | e | |             """ | ||||||
|  |             a 1 b c d 2 e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         Given the ways |         Given the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
|  | |||||||
| @ -7,9 +7,11 @@ Feature: Basic Routing | |||||||
| 
 | 
 | ||||||
|     Scenario: Graph transformation |     Scenario: Graph transformation | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   | d | |             """ | ||||||
|             | a | b | c | |                 d | ||||||
|             |   |   | e | |             a b c | ||||||
|  |                 e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
| @ -22,12 +24,14 @@ Feature: Basic Routing | |||||||
| 
 | 
 | ||||||
|     Scenario: Turn instructions on compressed road network geometry |     Scenario: Turn instructions on compressed road network geometry | ||||||
|         Given the node map |         Given the node map | ||||||
|             | x | a |   |   | |             """ | ||||||
|             |   | b |   |   | |             x a | ||||||
|             | f |   |   | e | |               b | ||||||
|             |   |   |   |   | |             f     e | ||||||
|             |   |   |   |   | | 
 | ||||||
|             | y | c |   | d | | 
 | ||||||
|  |             y c   d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes  | name  | |             | nodes  | name  | | ||||||
|  | |||||||
| @ -9,8 +9,10 @@ Feature: Setting impedance and speed separately | |||||||
| 
 | 
 | ||||||
|     Scenario: Use impedance to pick route, even when longer/slower |     Scenario: Use impedance to pick route, even when longer/slower | ||||||
|         Given the node map |         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 |         And the ways | ||||||
|             | nodes | impedance | |             | nodes | impedance | | ||||||
| @ -36,8 +38,10 @@ Feature: Setting impedance and speed separately | |||||||
| 
 | 
 | ||||||
|     Scenario: Weight should default to 1 |     Scenario: Weight should default to 1 | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | s |   | t |   | |             """ | ||||||
|             | a |   | b |   | c | |               s   t | ||||||
|  |             a   b   c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | impedance | |             | 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, |     # 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. |     # and this test expect the testbot profile to do it. | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | s |   | t |   | |             """ | ||||||
|             | a |   | b |   | c | |               s   t | ||||||
|  |             a   b   c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | impedance | highway   | |             | nodes | impedance | highway   | | ||||||
| @ -76,8 +82,10 @@ Feature: Setting impedance and speed separately | |||||||
| 
 | 
 | ||||||
|     Scenario: Weight should influence neither speed nor travel time. |     Scenario: Weight should influence neither speed nor travel time. | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | |             """ | ||||||
|             | t |   |   | |             a b c | ||||||
|  |             t | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
|  | |||||||
| @ -9,7 +9,9 @@ Feature: Ways of loading data | |||||||
|     Scenario: Load data with datastore - ab |     Scenario: Load data with datastore - ab | ||||||
|         Given data is loaded with datastore |         Given data is loaded with datastore | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | |             """ | ||||||
|  |             a b | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
| @ -23,7 +25,9 @@ Feature: Ways of loading data | |||||||
|     Scenario: Load data directly - st |     Scenario: Load data directly - st | ||||||
|         Given data is loaded directly |         Given data is loaded directly | ||||||
|         Given the node map |         Given the node map | ||||||
|             | s | t | |             """ | ||||||
|  |             s t | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
| @ -37,7 +41,9 @@ Feature: Ways of loading data | |||||||
|     Scenario: Load data datastore - xy |     Scenario: Load data datastore - xy | ||||||
|         Given data is loaded with datastore |         Given data is loaded with datastore | ||||||
|         Given the node map |         Given the node map | ||||||
|             | x | y | |             """ | ||||||
|  |             x y | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
| @ -51,7 +57,9 @@ Feature: Ways of loading data | |||||||
|     Scenario: Load data directly - cd |     Scenario: Load data directly - cd | ||||||
|         Given data is loaded directly |         Given data is loaded directly | ||||||
|         Given the node map |         Given the node map | ||||||
|             | c | d | |             """ | ||||||
|  |             c d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | |             | nodes | | ||||||
|  | |||||||
| @ -6,9 +6,11 @@ Feature: Avoid weird loops caused by rounding errors | |||||||
| 
 | 
 | ||||||
|     Scenario: Weird sidestreet loops |     Scenario: Weird sidestreet loops | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | 1 | b | 2 | c | 3 | d | |             """ | ||||||
|             |   |   |   |   |   |   |   | |             a 1 b 2 c 3 d | ||||||
|             | e |   | f |   | g |   | h | | 
 | ||||||
|  |             e   f   g   h | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|        And the ways |        And the ways | ||||||
|             | nodes  | |             | nodes  | | ||||||
| @ -73,14 +75,16 @@ Feature: Avoid weird loops caused by rounding errors | |||||||
|     @412 |     @412 | ||||||
|     Scenario: Avoid weird loops 3 |     Scenario: Avoid weird loops 3 | ||||||
|         And the node map |         And the node map | ||||||
|             | a |   |   | |             """ | ||||||
|             | b | e |   | |             a | ||||||
|             | h |   | 1 | |             b e | ||||||
|             |   |   |   | |             h   1 | ||||||
|             |   |   | 2 | | 
 | ||||||
|             | g |   |   | |                 2 | ||||||
|             |   | c | f | |             g | ||||||
|             | d |   |   | |               c f | ||||||
|  |             d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway     | |             | nodes | highway     | | ||||||
|  | |||||||
| @ -9,11 +9,13 @@ Feature: Basic Map Matching | |||||||
|     Scenario: Testbot - Map matching with outlier that has no candidate |     Scenario: Testbot - Map matching with outlier that has no candidate | ||||||
|         Given a grid size of 100 meters |         Given a grid size of 100 meters | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | d | |             """ | ||||||
|             |   |   |   |   | |             a b c d | ||||||
|             |   |   |   |   | | 
 | ||||||
|             |   |   |   |   | | 
 | ||||||
|             |   |   | 1 |   | | 
 | ||||||
|  |                 1 | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
| @ -25,8 +27,10 @@ Feature: Basic Map Matching | |||||||
| 
 | 
 | ||||||
|     Scenario: Testbot - Map matching with trace splitting |     Scenario: Testbot - Map matching with trace splitting | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | d | |             """ | ||||||
|             |   |   | e |   | |             a b c d | ||||||
|  |                 e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
| @ -39,8 +43,10 @@ Feature: Basic Map Matching | |||||||
|     Scenario: Testbot - Map matching with core factor |     Scenario: Testbot - Map matching with core factor | ||||||
|         Given the contract extra arguments "--core 0.8" |         Given the contract extra arguments "--core 0.8" | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | d | |             """ | ||||||
|             |   |   | e |   | |             a b c d | ||||||
|  |                 e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
| @ -52,12 +58,14 @@ Feature: Basic Map Matching | |||||||
| 
 | 
 | ||||||
|     Scenario: Testbot - Map matching with small distortion |     Scenario: Testbot - Map matching with small distortion | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | d | e | |             """ | ||||||
|             |   | f |   |   |   | |             a b c d e | ||||||
|             |   |   |   |   |   | |               f | ||||||
|             |   |   |   |   |   | | 
 | ||||||
|             |   |   |   |   |   | | 
 | ||||||
|             |   | h |   |   | k | | 
 | ||||||
|  |               h     k | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         # The second way does not need to be a oneway |         # The second way does not need to be a oneway | ||||||
|         # but the grid spacing triggers the uturn |         # but the grid spacing triggers the uturn | ||||||
| @ -74,8 +82,10 @@ Feature: Basic Map Matching | |||||||
|     Scenario: Testbot - Map matching with oneways |     Scenario: Testbot - Map matching with oneways | ||||||
|         Given a grid size of 10 meters |         Given a grid size of 10 meters | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | d | |             """ | ||||||
|             | e | f | g | h | |             a b c d | ||||||
|  |             e f g h | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
| @ -89,8 +99,10 @@ Feature: Basic Map Matching | |||||||
|     Scenario: Testbot - Matching with oneway streets |     Scenario: Testbot - Matching with oneway streets | ||||||
|         Given a grid size of 10 meters |         Given a grid size of 10 meters | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | d | |             """ | ||||||
|             | e | f | g | h | |             a b c d | ||||||
|  |             e f g h | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
| @ -111,8 +123,10 @@ Feature: Basic Map Matching | |||||||
|             | annotations | true | |             | annotations | true | | ||||||
| 
 | 
 | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | d | e |   | g | h | |             """ | ||||||
|             |   |   | i |   |   |   |   |   | |             a b c d e   g h | ||||||
|  |                 i | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes    | oneway | |             | nodes    | oneway | | ||||||
| @ -143,8 +157,10 @@ Feature: Basic Map Matching | |||||||
|             | geometries | polyline | |             | geometries | polyline | | ||||||
| 
 | 
 | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | |             """ | ||||||
|             |   | d |   | |             a b c | ||||||
|  |               d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
|  | |||||||
| @ -15,7 +15,9 @@ Feature: Testbot - Travel mode | |||||||
| 
 | 
 | ||||||
|     Scenario: Testbot - Always announce mode change |     Scenario: Testbot - Always announce mode change | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | d | |             """ | ||||||
|  |             a b c d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway     | name | |             | nodes | highway     | name | | ||||||
| @ -30,7 +32,9 @@ Feature: Testbot - Travel mode | |||||||
| 
 | 
 | ||||||
|     Scenario: Testbot - Compressed Modes |     Scenario: Testbot - Compressed Modes | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | d | e | f | g | |             """ | ||||||
|  |             a b c d e f g | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway     | name   | |             | nodes | highway     | name   | | ||||||
| @ -45,8 +49,10 @@ Feature: Testbot - Travel mode | |||||||
| 
 | 
 | ||||||
|     Scenario: Testbot - Modes in each direction, different forward/backward speeds |     Scenario: Testbot - Modes in each direction, different forward/backward speeds | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | 0 | 1 |   | |             """ | ||||||
|             | a |   |   | b | |               0 1 | ||||||
|  |             a     b | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | oneway | |             | nodes | highway | oneway | | ||||||
| @ -65,8 +71,10 @@ Feature: Testbot - Travel mode | |||||||
| 
 | 
 | ||||||
|     Scenario: Testbot - Modes in each direction, same forward/backward speeds |     Scenario: Testbot - Modes in each direction, same forward/backward speeds | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | 0 | 1 |   | |             """ | ||||||
|             | a |   |   | b | |               0 1 | ||||||
|  |             a     b | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | |             | nodes | highway | | ||||||
| @ -80,7 +88,9 @@ Feature: Testbot - Travel mode | |||||||
|     @oneway |     @oneway | ||||||
|     Scenario: Testbot - Modes for oneway, different forward/backward speeds |     Scenario: Testbot - Modes for oneway, different forward/backward speeds | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | |             """ | ||||||
|  |             a b | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | oneway | |             | nodes | highway | oneway | | ||||||
| @ -94,7 +104,9 @@ Feature: Testbot - Travel mode | |||||||
|     @oneway |     @oneway | ||||||
|     Scenario: Testbot - Modes for oneway, same forward/backward speeds |     Scenario: Testbot - Modes for oneway, same forward/backward speeds | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | |             """ | ||||||
|  |             a b | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | oneway | |             | nodes | highway | oneway | | ||||||
| @ -108,7 +120,9 @@ Feature: Testbot - Travel mode | |||||||
|     @oneway |     @oneway | ||||||
|     Scenario: Testbot - Modes for reverse oneway, different forward/backward speeds |     Scenario: Testbot - Modes for reverse oneway, different forward/backward speeds | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | |             """ | ||||||
|  |             a b | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | oneway | |             | nodes | highway | oneway | | ||||||
| @ -122,7 +136,9 @@ Feature: Testbot - Travel mode | |||||||
|     @oneway |     @oneway | ||||||
|     Scenario: Testbot - Modes for reverse oneway, same forward/backward speeds |     Scenario: Testbot - Modes for reverse oneway, same forward/backward speeds | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | |             """ | ||||||
|  |             a b | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | oneway | |             | nodes | highway | oneway | | ||||||
| @ -136,7 +152,9 @@ Feature: Testbot - Travel mode | |||||||
|     @via |     @via | ||||||
|     Scenario: Testbot - Mode should be set at via points |     Scenario: Testbot - Mode should be set at via points | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | 1 | b | |             """ | ||||||
|  |             a 1 b | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | |             | nodes | highway | | ||||||
| @ -149,8 +167,10 @@ Feature: Testbot - Travel mode | |||||||
| 
 | 
 | ||||||
|     Scenario: Testbot - Starting at a tricky node |     Scenario: Testbot - Starting at a tricky node | ||||||
|        Given the node map |        Given the node map | ||||||
|             |  | a |  |   |   | |             """ | ||||||
|             |  |   |  | b | c | |               a | ||||||
|  |                   b c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|        And the ways |        And the ways | ||||||
|             | nodes | highway | |             | nodes | highway | | ||||||
| @ -163,7 +183,9 @@ Feature: Testbot - Travel mode | |||||||
| 
 | 
 | ||||||
|     Scenario: Testbot - Mode changes on straight way without name change |     Scenario: Testbot - Mode changes on straight way without name change | ||||||
|        Given the node map |        Given the node map | ||||||
|             | a | 1 | b | 2 | c | |             """ | ||||||
|  |             a 1 b 2 c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|        And the ways |        And the ways | ||||||
|             | nodes | highway | name   | |             | nodes | highway | name   | | ||||||
| @ -179,8 +201,10 @@ Feature: Testbot - Travel mode | |||||||
| 
 | 
 | ||||||
|     Scenario: Testbot - Mode for routes |     Scenario: Testbot - Mode for routes | ||||||
|        Given the node map |        Given the node map | ||||||
|             | a | b |   |   |   | |             """ | ||||||
|             |   | c | d | e | f | |             a b | ||||||
|  |               c d e f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|        And the ways |        And the ways | ||||||
|             | nodes | highway | route | duration | |             | nodes | highway | route | duration | | ||||||
| @ -202,13 +226,15 @@ Feature: Testbot - Travel mode | |||||||
| 
 | 
 | ||||||
|     Scenario: Testbot - Modes, triangle map |     Scenario: Testbot - Modes, triangle map | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   |   |   |   |   |   | d | |             """ | ||||||
|             |   |   |   |   |   | 2 |   | |                         d | ||||||
|             |   |   |   |   | 6 |   | 5 | |                       2 | ||||||
|             | a | 0 | b | c |   |   |   | |                     6   5 | ||||||
|             |   |   |   |   | 4 |   | 1 | |             a 0 b c | ||||||
|             |   |   |   |   |   | 3 |   | |                     4   1 | ||||||
|             |   |   |   |   |   |   | e | |                       3 | ||||||
|  |                         e | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|        And the ways |        And the ways | ||||||
|             | nodes | highway | oneway | |             | nodes | highway | oneway | | ||||||
| @ -236,9 +262,11 @@ Feature: Testbot - Travel mode | |||||||
| 
 | 
 | ||||||
|     Scenario: Testbot - River in the middle |     Scenario: Testbot - River in the middle | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c |   |   | |             """ | ||||||
|             |   |   | d |   |   | |             a b c | ||||||
|             |   |   | e | f | g | |                 d | ||||||
|  |                 e f g | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | |             | nodes | highway | | ||||||
|  | |||||||
| @ -7,12 +7,14 @@ Feature: Testbot - oneways | |||||||
| 
 | 
 | ||||||
|     Scenario: Routing on a oneway roundabout |     Scenario: Routing on a oneway roundabout | ||||||
|         Given the node map |         Given the node map | ||||||
|         |   |   |   |   | v |   | |         """ | ||||||
|         | x |   | d | c |   |   | |                 v | ||||||
|         |   | e |   |   | b |   | |         x   d c | ||||||
|         |   | f |   |   | a |   | |           e     b | ||||||
|         |   |   | g | h |   | y | |           f     a | ||||||
|         |   | z |   |   |   |   | |             g h   y | ||||||
|  |           z | ||||||
|  |         """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
| @ -60,8 +62,10 @@ Feature: Testbot - oneways | |||||||
| 
 | 
 | ||||||
|     Scenario: Testbot - Around the Block |     Scenario: Testbot - Around the Block | ||||||
|         Given the node map |         Given the node map | ||||||
|             |   | a | b |   | |             """ | ||||||
|             | e | d | c | f | |               a b | ||||||
|  |             e d c f | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | foot | |             | nodes | oneway | foot | | ||||||
| @ -92,7 +96,9 @@ Feature: Testbot - oneways | |||||||
| 
 | 
 | ||||||
|     Scenario: Testbot - Two consecutive oneways |     Scenario: Testbot - Two consecutive oneways | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | |             """ | ||||||
|  |             a b c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | oneway | |             | nodes | oneway | | ||||||
|  | |||||||
| @ -6,7 +6,9 @@ Feature: Separate settings for forward/backward direction | |||||||
| 
 | 
 | ||||||
|     Scenario: Testbot - Going against the flow |     Scenario: Testbot - Going against the flow | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | d | |             """ | ||||||
|  |             a b c d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway | |             | nodes | highway | | ||||||
|  | |||||||
| @ -7,7 +7,9 @@ Feature: Testbot - overlapping ways | |||||||
|     Scenario: Testbot - multiple way between same nodes  |     Scenario: Testbot - multiple way between same nodes  | ||||||
|     Note that cb is connecting the same two nodes as bc |     Note that cb is connecting the same two nodes as bc | ||||||
|         Given the node map |         Given the node map | ||||||
|             | a | b | c | d | |             """ | ||||||
|  |             a b c d | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway   | |             | nodes | highway   | | ||||||
| @ -23,8 +25,10 @@ Feature: Testbot - overlapping ways | |||||||
| 
 | 
 | ||||||
|     Scenario: Testbot - area on top of way |     Scenario: Testbot - area on top of way | ||||||
|         Given the node map |         Given the node map | ||||||
|             | x | a | b | y | |             """ | ||||||
|             |   | d | c |   | |             x a b y | ||||||
|  |               d c | ||||||
|  |             """ | ||||||
| 
 | 
 | ||||||
|         And the ways |         And the ways | ||||||
|             | nodes | highway   | area | |             | nodes | highway   | area | | ||||||
|  | |||||||
Some files were not shown because too many files have changed in this diff Show More
		Loading…
	
		Reference in New Issue
	
	Block a user