Skip to content

Commit

Permalink
Remove support for unused oneway=true, see abrensch/brouter#416
Browse files Browse the repository at this point in the history
  • Loading branch information
polyscias committed Jul 2, 2022
1 parent 130dc2d commit f82bf9c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Trekking-No-Flat.brf
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ assign accesspenalty =
# to push your bike)
#
assign oneway =
if oneway= then junction=roundabout else oneway=yes|true|1
if oneway= then junction=roundabout else oneway=yes|1

assign onewaypenalty =
if ( if reversedirection=yes then oneway else oneway=-1 ) then
Expand Down
4 changes: 2 additions & 2 deletions Trekking-Poutnik.brf
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ assign badoneway =
if reversedirection=yes then
if oneway:bicycle=yes then true
else if oneway= then junction=roundabout
else oneway=yes|true|1
else oneway=yes|1
else oneway=-1

assign onewaypenalty =
Expand Down Expand Up @@ -518,7 +518,7 @@ assign priorityclassifier = (

assign isbadoneway = not equal onewaypenalty 0
assign isgoodoneway = if reversedirection=yes then oneway=-1
else if oneway= then junction=roundabout else oneway=yes|true|1
else if oneway= then junction=roundabout else oneway=yes|1
assign isroundabout = junction=roundabout
assign islinktype = highway=motorway_link|trunk_link|primary_link|secondary_link|tertiary_link
assign isgoodforcars = if greater priorityclassifier 6 then true
Expand Down
4 changes: 2 additions & 2 deletions Trekking-hilly-paths.brf
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ assign badoneway =
if reversedirection=yes then
if oneway:bicycle=yes then true # added in v
else if oneway= then junction=roundabout
else oneway=yes|true|1
else oneway=yes|1
else oneway=-1


Expand Down Expand Up @@ -643,7 +643,7 @@ assign priorityclassifier = (

assign isbadoneway = not equal onewaypenalty 0
assign isgoodoneway = if reversedirection=yes then oneway=-1
else if oneway= then junction=roundabout else oneway=yes|true|1
else if oneway= then junction=roundabout else oneway=yes|1
assign isroundabout = junction=roundabout
assign islinktype = highway=motorway_link|trunk_link|primary_link|secondary_link|tertiary_link
assign isgoodforcars = if greater priorityclassifier 6 then true
Expand Down
4 changes: 2 additions & 2 deletions Trekking-tracks.brf
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ assign badoneway =
if reversedirection=yes then
if oneway:bicycle=yes then true # added in v
else if oneway= then junction=roundabout
else oneway=yes|true|1
else oneway=yes|1
else oneway=-1


Expand Down Expand Up @@ -644,7 +644,7 @@ assign priorityclassifier = (

assign isbadoneway = not equal onewaypenalty 0
assign isgoodoneway = if reversedirection=yes then oneway=-1
else if oneway= then junction=roundabout else oneway=yes|true|1
else if oneway= then junction=roundabout else oneway=yes|1
assign isroundabout = junction=roundabout
assign islinktype = highway=motorway_link|trunk_link|primary_link|secondary_link|tertiary_link
assign isgoodforcars = if greater priorityclassifier 6 then true
Expand Down
4 changes: 2 additions & 2 deletions Trekking-valley.brf
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ assign accesspenalty =
#
assign badoneway =
if reversedirection=yes then
if oneway= then junction=roundabout else oneway=yes|true|1
if oneway= then junction=roundabout else oneway=yes|1
else oneway=-1


Expand Down Expand Up @@ -515,7 +515,7 @@ assign priorityclassifier =

assign isbadoneway = not equal onewaypenalty 0
assign isgoodoneway = if reversedirection=yes then oneway=-1
else if oneway= then junction=roundabout else oneway=yes|true|1
else if oneway= then junction=roundabout else oneway=yes|1
assign isroundabout = junction=roundabout
assign islinktype = highway=motorway_link|trunk_link|primary_link|secondary_link|tertiary_link
assign isgoodforcars = if greater priorityclassifier 6 then true
Expand Down

0 comments on commit f82bf9c

Please sign in to comment.