References: - https://github.com/Project-OSRM/osrm-text-instructions/issues/62#issuecomment-257889721 - https://github.com/Project-OSRM/osrm-text-instructions/pull/63
		
			
				
	
	
		
			38 lines
		
	
	
		
			970 B
		
	
	
	
		
			Gherkin
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			970 B
		
	
	
	
		
			Gherkin
		
	
	
	
	
	
@routing @foot @names
 | 
						|
Feature: Foot - Street names in instructions
 | 
						|
 | 
						|
    Background:
 | 
						|
        Given the profile "foot"
 | 
						|
 | 
						|
    Scenario: Foot - A named street
 | 
						|
        Given the node map
 | 
						|
            """
 | 
						|
            a b
 | 
						|
              c
 | 
						|
            """
 | 
						|
 | 
						|
        And the ways
 | 
						|
            | nodes | name     | ref |
 | 
						|
            | ab    | My Way   | A6  |
 | 
						|
            | bc    | Your Way | B7  |
 | 
						|
 | 
						|
        When I route I should get
 | 
						|
            | from | to | route                                   |
 | 
						|
            | a    | c  | My Way,Your Way,Your Way                |
 | 
						|
 | 
						|
    @unnamed
 | 
						|
    Scenario: Foot - No longer use way type to describe unnamed ways, see #3231
 | 
						|
        Given the node map
 | 
						|
            """
 | 
						|
            a b c d
 | 
						|
            """
 | 
						|
 | 
						|
        And the ways
 | 
						|
            | nodes | highway | name |
 | 
						|
            | ab    | footway |      |
 | 
						|
            | bcd   | track   |      |
 | 
						|
 | 
						|
        When I route I should get
 | 
						|
            | from | to | route |
 | 
						|
            | a    | d  | ,     |
 |