References: - http://taginfo.openstreetmap.org/keys/surface#values - http://wiki.openstreetmap.org/wiki/Key:surface
		
			
				
	
	
		
			60 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			Gherkin
		
	
	
	
	
	
			
		
		
	
	
			60 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			Gherkin
		
	
	
	
	
	
@routing @surface @bicycle
 | 
						|
Feature: Bike - Surfaces
 | 
						|
 | 
						|
    Background:
 | 
						|
        Given the profile "bicycle"
 | 
						|
 | 
						|
    Scenario: Bicycle - Slow surfaces
 | 
						|
        Then routability should be
 | 
						|
            | highway  | surface               | bothw   |
 | 
						|
            | cycleway |                       | 48 s    |
 | 
						|
            | cycleway | asphalt               | 48 s    |
 | 
						|
            | cycleway | cobblestone:flattened | 72 s    |
 | 
						|
            | cycleway | paving_stones         | 72 s    |
 | 
						|
            | cycleway | compacted             | 72 s    |
 | 
						|
            | cycleway | cobblestone           | 120 s   |
 | 
						|
            | cycleway | fine_gravel           | 120 s   |
 | 
						|
            | cycleway | gravel                | 120 s   |
 | 
						|
            | cycleway | pebblestone           | 120.1 s |
 | 
						|
            | cycleway | dirt                  | 120 s   |
 | 
						|
            | cycleway | earth                 | 120 s   |
 | 
						|
            | cycleway | grass                 | 120 s   |
 | 
						|
            | cycleway | mud                   | 240 s   |
 | 
						|
            | cycleway | sand                  | 240.1 s |
 | 
						|
            | cycleway | sett                  | 72 s    |
 | 
						|
 | 
						|
    Scenario: Bicycle - Good surfaces on small paths
 | 
						|
        Then routability should be
 | 
						|
        | highway  | surface | bothw |
 | 
						|
        | cycleway |         | 48 s  |
 | 
						|
        | path     |         | 60 s  |
 | 
						|
        | track    |         | 60 s  |
 | 
						|
        | track    | asphalt | 60 s  |
 | 
						|
        | path     | asphalt | 60 s  |
 | 
						|
 | 
						|
    Scenario: Bicycle - Surfaces should not make unknown ways routable
 | 
						|
        Then routability should be
 | 
						|
        | highway  | surface | bothw |
 | 
						|
        | cycleway |         | 48 s  |
 | 
						|
        | nosense  |         |       |
 | 
						|
        | nosense  | asphalt |       |
 | 
						|
 | 
						|
    Scenario: Bicycle - Surfaces should not increase speed when pushing bikes
 | 
						|
      Given the node map
 | 
						|
         """
 | 
						|
         a b
 | 
						|
         c d
 | 
						|
         """
 | 
						|
 | 
						|
      And the ways
 | 
						|
        | nodes | highway | oneway | surface |
 | 
						|
        | ab    | primary | yes    | asphalt |
 | 
						|
        | cd    | footway |        | asphalt |
 | 
						|
 | 
						|
      When I route I should get
 | 
						|
        | from | to | route | modes                     | speed   |
 | 
						|
        | a    | b  | ab,ab | cycling,cycling           | 15 km/h |
 | 
						|
        | b    | a  | ab,ab | pushing bike,pushing bike | 6 km/h  |
 | 
						|
        | c    | d  | cd,cd | pushing bike,pushing bike | 6 km/h  |
 | 
						|
        | d    | c  | cd,cd | pushing bike,pushing bike | 6 km/h  |
 |