Skip to content

Commit

Permalink
fix(fares): allow behind faregate transfers
Browse files Browse the repository at this point in the history
  • Loading branch information
ansoncfit committed Jun 22, 2024
1 parent 8fcb8ea commit ca698a4
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,16 @@ public class ChicagoRTAInRoutingFareCalculator extends InRoutingFareCalculator {
// Day pass provides unlimited rides, except on Pace Premium routes ($2.25 per boarding upcharge) and Metra
public static final int CTA_PACE_DAY_PASS = 500;

// Stations that are connected behind faregates, or that have farecard transfers
private static final Set<Set<String>> stationsConnected = new HashSet<>(Arrays.asList(
new HashSet<>(Arrays.asList("41660", "40260", "40370")), // Lake, State/Lake, Washington
new HashSet<>(Arrays.asList("40070", "40560", "40850")) // Jackson (Blue), Jackson (Red), HW Library
// State/Lake, Lake (Red), Washington (Blue)
new HashSet<>(Arrays.asList("41660", "40260")),
new HashSet<>(Arrays.asList("41660", "40370")),
new HashSet<>(Arrays.asList("40260", "40370")),
// Jackson (Blue), Jackson (Red), Harold Washington Library-State/Van Buren
new HashSet<>(Arrays.asList("40070", "40560")),
new HashSet<>(Arrays.asList("40070", "40850")),
new HashSet<>(Arrays.asList("40560", "40850"))
));

private static boolean platformsConnected(int fromStopIndex, String fromStation, int toStopIndex, String toStation){
Expand Down

0 comments on commit ca698a4

Please sign in to comment.