49 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Gherkin
		
	
	
	
	
	
			
		
		
	
	
			49 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Gherkin
		
	
	
	
	
	
| @driveway  @guidance
 | |
| Feature: Driveways intersections
 | |
| 
 | |
|     Background:
 | |
|         Given the profile "car"
 | |
|         Given a grid size of 5 meters
 | |
| 
 | |
|     Scenario: Road with a turn to service road
 | |
|         Given the node map
 | |
|             """
 | |
|               a
 | |
|                ~.
 | |
|                  b----c----d
 | |
|                  |
 | |
|                  e
 | |
|             """
 | |
| 
 | |
|         And the ways
 | |
|           | nodes | highway | name    | oneway |
 | |
|           | abc   | trunk   | first   | yes    |
 | |
|           | cd    | trunk   | second  | yes    |
 | |
|           | be    | service | parking | yes    |
 | |
| 
 | |
|        When I route I should get
 | |
|           | waypoints | route        | turns         | locations |
 | |
|           | a,d       | first,second | depart,arrive | a,d       |
 | |
| 
 | |
| 
 | |
|     Scenario: Turn Instead of Ramp
 | |
|         Given the node map
 | |
|             """
 | |
|               a
 | |
|                ~.
 | |
|                  b----c----d
 | |
|                  |
 | |
|                  e
 | |
|             """
 | |
| 
 | |
|         And the ways
 | |
|           | nodes | highway | name    | oneway |
 | |
|           | ab    | trunk   |         | yes    |
 | |
|           | bc    | trunk   |         | yes    |
 | |
|           | cd    | trunk   | second  | yes    |
 | |
|           | be    | service | parking | yes    |
 | |
| 
 | |
|        When I route I should get
 | |
|           | waypoints | route   | turns         | locations |
 | |
|           | a,d       | ,second | depart,arrive | a,d       |
 |