* upgrade to api version 4 * set bike pushing speed to 4km/h and add mode change penalty * set cycleways for two-way and one-way roads according correctly * add changelog * adjust tests according to change of the walking speed * adjust tests according to new behaviour of opposite, track and lane in one-ways * refactor the cycleway identification * comment to understand weird counterintuitive testcase * adjust sliproad test because walking speed is now slower
		
			
				
	
	
		
			34 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Gherkin
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Gherkin
		
	
	
	
	
	
@routing @bicycle @mode
 | 
						|
Feature: Bike - Mode flag
 | 
						|
 | 
						|
    Background:
 | 
						|
        Given the profile "bicycle"
 | 
						|
        Given a grid size of 5 meters
 | 
						|
 | 
						|
    Scenario: Bike Sliproad
 | 
						|
        Given the node map
 | 
						|
            """
 | 
						|
                  i
 | 
						|
            a b - c-d
 | 
						|
                ` |
 | 
						|
                g-e-h
 | 
						|
                  |
 | 
						|
                  |
 | 
						|
                  f
 | 
						|
            """
 | 
						|
 | 
						|
        And the nodes
 | 
						|
            | node | highway         |
 | 
						|
            | c    | traffic_signals |
 | 
						|
 | 
						|
        And the ways
 | 
						|
            | nodes | highway   | name   | oneway:bicycle | maxspeed:forward  |
 | 
						|
            | abcd  | cycleway  | street |                | 4 km/h |
 | 
						|
            | eb    | path      |        | yes            |  |
 | 
						|
            | icef  | tertiary  | road   |                | 4 km/h |
 | 
						|
            | geh   | secondary | street |                |  |
 | 
						|
 | 
						|
        When I route I should get
 | 
						|
            | waypoints | route             | turns                               |
 | 
						|
            | a,f       | street,,road,road | depart,turn right,turn right,arrive |
 |