Skip to content

Commit

Permalink
Merge pull request #53 from Robot8A/patch-1
Browse files Browse the repository at this point in the history
Add isPermittedWayConditionallyRestricted(way, accept)
  • Loading branch information
takb authored Sep 13, 2022
2 parents 38d9ba6 + 309b241 commit 74aba0c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ Here is an overview:
* PGWelch, shapefile reader #874
* rajanski, script to do routing via PostGIS
* ratrun, route relations, GPX information, bike handling etc
* Robot8A, AbstractFlagEncoder.isPermittedWayConditionallyRestricted()
* rodneyodonnell, improved dead end removal (PrepareRoutingSubnetworks) and fords
* rodo, more descriptions
* seeebiii, motorcycle improvements
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -673,8 +673,12 @@ public EncodingManager.Access isRestrictedWayConditionallyPermitted(ReaderWay wa
}

public EncodingManager.Access isPermittedWayConditionallyRestricted(ReaderWay way) {
return getConditionalAccess(way, EncodingManager.Access.WAY, false);
return isPermittedWayConditionallyRestricted(way, EncodingManager.Access.WAY);
}

public EncodingManager.Access isPermittedWayConditionallyRestricted(ReaderWay way, EncodingManager.Access accept) {
return getConditionalAccess(way, accept, false);
}

private EncodingManager.Access getConditionalAccess(ReaderWay way, EncodingManager.Access accept, boolean permissive) {
ConditionalTagInspector conditionalTagInspector = getConditionalTagInspector();
Expand Down

0 comments on commit 74aba0c

Please sign in to comment.