TR bike exceptions also for foot-mode
This commit is contained in:
parent
80d0a30729
commit
7173e78214
2 changed files with 3 additions and 2 deletions
|
@ -255,8 +255,8 @@ abstract class OsmPath implements OsmLinkHolder
|
|||
if ( nsection == 0 && rc.considerTurnRestrictions && !detailMode&& !isStartpoint )
|
||||
{
|
||||
if ( rc.inverseDirection
|
||||
? TurnRestriction.isTurnForbidden( sourceNode.firstRestriction, lon2, lat2, lon0, lat0, rc.bikeMode, rc.carMode )
|
||||
: TurnRestriction.isTurnForbidden( sourceNode.firstRestriction, lon0, lat0, lon2, lat2, rc.bikeMode, rc.carMode ) )
|
||||
? TurnRestriction.isTurnForbidden( sourceNode.firstRestriction, lon2, lat2, lon0, lat0, rc.bikeMode || rc.footMode, rc.carMode )
|
||||
: TurnRestriction.isTurnForbidden( sourceNode.firstRestriction, lon0, lat0, lon2, lat2, rc.bikeMode || rc.footMode, rc.carMode ) )
|
||||
{
|
||||
cost = -1;
|
||||
return;
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
# this prevents suppression of unused tags, so they are visibly in the data tab
|
||||
assign processUnusedTags = true
|
||||
assign validForFoot = true
|
||||
|
||||
---context:way # following code refers to way-tags
|
||||
|
||||
|
|
Loading…
Reference in a new issue