Skip to content

Commit

Permalink
MTA-93 allowing no-effect transfers in graph
Browse files Browse the repository at this point in the history
  • Loading branch information
sheldonabrown committed Mar 3, 2024
1 parent 18c1d73 commit 0ec664a
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,15 @@ private Collection<Transfer> doMap(org.onebusaway.gtfs.model.Transfer rhs) {
int transferTime = rhs.getMinTransferTime();

// If this transfer do not give any advantages in the routing, then drop it
if(!guaranteed && !staySeated && transferPriority == TransferPriority.ALLOWED) {
if(transferTime > 0) {
LOG.info("Transfer skipped, issue #3369: " + rhs);
}
else {
LOG.warn("Transfer skipped - no effect on routing: " + rhs);
}
return List.of();
}
// if(!guaranteed && !staySeated && transferPriority == TransferPriority.ALLOWED) {
// if(transferTime > 0) {
// LOG.info("Transfer skipped, issue #3369: " + rhs);
// }
// else {
// LOG.warn("Transfer skipped - no effect on routing: " + rhs);
// }
// return List.of();
// }

// Transfers may be specified using parent stations
// (https://developers.google.com/transit/gtfs/reference/transfers-file)
Expand Down

0 comments on commit 0ec664a

Please sign in to comment.