motorcar TR exceptions

This commit is contained in:
Arndt Brenschede 2018-03-07 19:35:23 +01:00
parent c9593331bd
commit b783b4568a
2 changed files with 6 additions and 1 deletions

View file

@ -192,7 +192,7 @@ abstract class OsmPath implements OsmLinkHolder
TurnRestriction tr = sourceNode.firstRestriction; TurnRestriction tr = sourceNode.firstRestriction;
while( tr != null ) while( tr != null )
{ {
if ( tr.exceptBikes() && rc.bikeMode ) if ( ( tr.exceptBikes() && rc.bikeMode ) || tr.exceptMotorcars() && rc.carMode )
{ {
tr = tr.next; tr = tr.next;
continue; continue;

View file

@ -23,6 +23,11 @@ public final class TurnRestriction
return ( exceptions & 1 ) != 0; return ( exceptions & 1 ) != 0;
} }
public boolean exceptMotorcars()
{
return ( exceptions & 2 ) != 0;
}
@Override @Override
public String toString() public String toString()
{ {