2012-09-30 08:40:59 -04:00
|
|
|
@routing @car @names
|
2012-10-01 07:27:08 -04:00
|
|
|
Feature: Car - Street names in instructions
|
2012-09-30 08:40:59 -04:00
|
|
|
|
2013-08-29 13:29:13 -04:00
|
|
|
Background:
|
|
|
|
Given the profile "car"
|
2012-02-21 05:51:42 -05:00
|
|
|
|
2013-08-29 13:29:13 -04:00
|
|
|
Scenario: Car - A named street
|
|
|
|
Given the node map
|
|
|
|
| a | b |
|
|
|
|
| | c |
|
2012-02-21 05:51:42 -05:00
|
|
|
|
2013-08-29 13:29:13 -04:00
|
|
|
And the ways
|
2015-05-30 13:03:44 -04:00
|
|
|
| nodes | name | ref |
|
|
|
|
| ab | My Way | |
|
|
|
|
| bc | Your Way | A1 |
|
2013-08-29 13:29:13 -04:00
|
|
|
|
|
|
|
When I route I should get
|
2016-09-05 09:01:51 -04:00
|
|
|
| from | to | route | ref |
|
|
|
|
| a | c | My Way,Your Way,Your Way | ,A1,A1|
|
2013-08-29 13:29:13 -04:00
|
|
|
|
2016-05-25 21:35:38 -04:00
|
|
|
Scenario: Car - A named street with pronunciation
|
|
|
|
Given the node map
|
|
|
|
| a | b | d |
|
|
|
|
| | 1 | |
|
|
|
|
| | c | |
|
|
|
|
|
|
|
|
And the ways
|
2016-09-05 09:01:51 -04:00
|
|
|
| nodes | name |name:pronunciation | ref |
|
2016-05-25 21:35:38 -04:00
|
|
|
| ab | My Way | | |
|
|
|
|
| bd | My Way | meyeway | A1 |
|
|
|
|
| cd | Your Way | yourewaye | |
|
|
|
|
|
|
|
|
When I route I should get
|
2016-09-05 09:01:51 -04:00
|
|
|
| from | to | route | pronunciations | ref |
|
|
|
|
| a | d | My Way,My Way | ,meyeway | ,A1 |
|
|
|
|
| 1 | c | Your Way,Your Way | yourewaye,yourewaye | , |
|
2016-05-25 21:35:38 -04:00
|
|
|
|
2016-09-09 12:28:44 -04:00
|
|
|
# See #2860
|
|
|
|
Scenario: Car - same street name but different pronunciation
|
|
|
|
Given the node map
|
|
|
|
| a | b | c |
|
|
|
|
| | d | |
|
|
|
|
| | e | |
|
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | name | name:pronunciation |
|
|
|
|
| abc | Houston St | hew-stun |
|
|
|
|
| bde | Houston St | how-stun |
|
|
|
|
|
|
|
|
When I route I should get
|
|
|
|
| from | to | route | pronunciations |
|
|
|
|
| a | c | Houston St,Houston St | hew-stun,hew-stun |
|
|
|
|
| a | e | Houston St,Houston St,Houston St | hew-stun,how-stun,how-stun |
|
|
|
|
|
2013-08-29 13:29:13 -04:00
|
|
|
@todo
|
|
|
|
Scenario: Car - Use way type to describe unnamed ways
|
|
|
|
Given the node map
|
|
|
|
| a | b | c | d |
|
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | highway | name |
|
|
|
|
| ab | tertiary | |
|
|
|
|
| bcd | residential | |
|
|
|
|
|
|
|
|
When I route I should get
|
2016-03-31 19:39:31 -04:00
|
|
|
| from | to | route |
|
|
|
|
| a | c | tertiary,residential,residential |
|
2016-09-07 09:51:14 -04:00
|
|
|
|
|
|
|
Scenario: Inner city expressway with on road
|
|
|
|
Given the node map
|
|
|
|
| a | b | | | | c | g |
|
|
|
|
| | | | | f | | |
|
|
|
|
| | | | | | | |
|
|
|
|
| | | | | | | |
|
|
|
|
| | | | | | | |
|
|
|
|
| | | | | | d | |
|
|
|
|
| | | | | | | |
|
|
|
|
| | | | | | | |
|
|
|
|
| | | | | | | |
|
|
|
|
| | | | | | e | |
|
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | highway | name | name:pronunciation |
|
|
|
|
| abc | primary | road | roooaad |
|
|
|
|
| cg | primary | road | roooaad |
|
|
|
|
| bfd | trunk_link | | |
|
|
|
|
| cde | trunk | trunk | truank |
|
|
|
|
|
|
|
|
And the relations
|
|
|
|
| type | way:from | way:to | node:via | restriction |
|
|
|
|
| restriction | abc | cde | c | no_right_turn |
|
|
|
|
|
|
|
|
When I route I should get
|
|
|
|
| waypoints | route | turns | pronunciations |
|
|
|
|
| a,e | road,trunk,trunk | depart,turn right,arrive | roooaad,truank,truank |
|