Skip to content

Commit bf03dcd

Browse files
committed
Test case of merging roundabout-like intersections
1 parent 456b198 commit bf03dcd

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

features/guidance/merge-segregated-roads.feature

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,3 +523,42 @@ Feature: Merge Segregated Roads
523523
| a,d | horiz,horiz | true:90,false:0 true:60 true:90 true:180 false:270,false:0 true:90 false:180 false:270 true:300;true:270 |
524524
| j,h | vert,horiz,horiz | true:0;true:0 true:90 false:180 false:270 true:300,false:60 false:120 false:240 true:300,false:0 false:90 false:120 true:180 true:270;true:90 |
525525
| j,l | vert,vert | true:0,true:0 true:90 false:180 false:270 true:300,true:0 false:90 false:180 true:240 false:270;true:180 |
526+
527+
528+
Scenario: Square Area - Don't merge almost circular roads
529+
Given a grid size of 2 meters
530+
Given the node map
531+
"""
532+
i
533+
/
534+
/
535+
/
536+
b---- g .
537+
/ p .
538+
a / \ f
539+
\ / o /
540+
\ / \ /
541+
c n /
542+
/ \ \/
543+
/ k e
544+
/ \ /
545+
h l /
546+
\ /
547+
m . d
548+
/
549+
j
550+
"""
551+
552+
And the ways
553+
| nodes | name | oneway |
554+
| ac | Halenseestraße | yes |
555+
| gb | Halenseestraße | yes |
556+
| cklmdenopgc | Rathenauplatz | yes |
557+
| ig | Kurfürstendamm | yes |
558+
| ef | Kurfürstendamm | yes |
559+
| ch | Hubertusallee | yes |
560+
| jd | Hubertusallee | yes |
561+
562+
When I route I should get
563+
| waypoints | route | turns |
564+
| i,h | Kurfürstendamm,Rathenauplatz,Hubertusallee,Hubertusallee | depart,turn slight left,turn slight right,arrive |

0 commit comments

Comments
 (0)