osrm-backend/features/guidance/suppressed.feature

75 lines
2.2 KiB
Gherkin
Raw Normal View History

2016-03-23 08:04:23 -04:00
@routing @guidance
Feature: Suppressed Turns
Background:
Given the profile "car"
Given a grid size of 10 meters
Scenario: Do not announce passing a exit ramp
Given the node map
2016-09-30 03:33:08 -04:00
"""
2016-10-19 13:08:48 -04:00
a-b-c-d-e
\---f-g
2016-09-30 03:33:08 -04:00
"""
2016-03-23 08:04:23 -04:00
And the ways
| nodes | highway |
| abcde | motorway |
| bfg | motorway_link |
When I route I should get
| waypoints | route | turns |
| a,e | abcde,abcde | depart,arrive |
Scenario: Do not announce reference changes
Given the node map
2016-09-30 03:33:08 -04:00
"""
2016-10-19 13:08:48 -04:00
a-b-c-d-e-f
2016-09-30 03:33:08 -04:00
"""
2016-03-23 08:04:23 -04:00
And the ways
| nodes | highway | name | ref |
| ab | motorway | highway | A1 |
| bc | motorway | highway | A1,A2 |
| cd | motorway | highway | A2 |
| de | motorway | highway | |
| ef | motorway | highway | A1 |
When I route I should get
2016-09-05 09:01:51 -04:00
| waypoints | route | turns | ref |
| a,f | highway,highway | depart,arrive | A1,A1 |
2016-03-23 08:04:23 -04:00
Scenario: Don't Announce Turn on following major road class -- service
Given the node map
2016-09-30 03:33:08 -04:00
"""
2016-10-19 13:08:48 -04:00
a-b-d
2016-09-30 03:33:08 -04:00
c
"""
2016-03-23 08:04:23 -04:00
And the ways
| nodes | highway |
| abc | primary |
| bd | service |
When I route I should get
| waypoints | route | turns |
| a,c | abc,abc | depart,arrive |
Scenario: Don't Announce Turn on following major road class -- residential
Given the node map
2016-09-30 03:33:08 -04:00
"""
2016-10-19 13:08:48 -04:00
a-b-d
2016-09-30 03:33:08 -04:00
c
"""
2016-03-23 08:04:23 -04:00
And the ways
| nodes | highway |
| abc | primary |
| bd | residential |
When I route I should get
| waypoints | route | turns |
| a,c | abc,abc | depart,arrive |
| a,d | abc,bd,bd | depart,turn straight,arrive |