improve merging the route
This commit is contained in:
parent
15f1255fd2
commit
0967e0d671
1 changed files with 2 additions and 2 deletions
|
@ -137,10 +137,10 @@ class Route:
|
||||||
last.arrow = False
|
last.arrow = False
|
||||||
line.turning = 'left'
|
line.turning = 'left'
|
||||||
distance += last.desc_distance
|
distance += last.desc_distance
|
||||||
elif last.turning.endswith('left') and line.turning.endswith('left'):
|
elif line.turning == '':
|
||||||
last.ignore = True
|
last.ignore = True
|
||||||
last.arrow = False
|
last.arrow = False
|
||||||
line.turning = 'left'
|
line.turning = last.turning
|
||||||
distance += last.desc_distance
|
distance += last.desc_distance
|
||||||
|
|
||||||
line.description = {
|
line.description = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue