Skip to content

Commit

Permalink
Fix dominance for multi-non-transit-mode routing #865 #1042.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Conway committed Apr 11, 2013
1 parent 26ab2b1 commit aa5fc03
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -273,8 +273,12 @@ public boolean dominates(State other) {
return false;
}
// Multi-state (bike rental) - no domination for different states
// TODO: I think this isn't necessary now that we have the check below
if (isBikeRenting() != other.isBikeRenting())
return false;

if (!stateData.nonTransitMode.equals(other.stateData.nonTransitMode))
return false;

if (backEdge != other.getBackEdge() && ((backEdge instanceof PlainStreetEdge)
&& (!((PlainStreetEdge) backEdge).getTurnRestrictions().isEmpty())))
Expand Down

0 comments on commit aa5fc03

Please sign in to comment.