motorcar TR exceptions
This commit is contained in:
parent
c9593331bd
commit
b783b4568a
2 changed files with 6 additions and 1 deletions
|
@ -192,7 +192,7 @@ abstract class OsmPath implements OsmLinkHolder
|
|||
TurnRestriction tr = sourceNode.firstRestriction;
|
||||
while( tr != null )
|
||||
{
|
||||
if ( tr.exceptBikes() && rc.bikeMode )
|
||||
if ( ( tr.exceptBikes() && rc.bikeMode ) || tr.exceptMotorcars() && rc.carMode )
|
||||
{
|
||||
tr = tr.next;
|
||||
continue;
|
||||
|
|
|
@ -23,6 +23,11 @@ public final class TurnRestriction
|
|||
return ( exceptions & 1 ) != 0;
|
||||
}
|
||||
|
||||
public boolean exceptMotorcars()
|
||||
{
|
||||
return ( exceptions & 2 ) != 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue