Skip to content

Commit

Permalink
Handle multiple feeds when saving fares
Browse files Browse the repository at this point in the history
  • Loading branch information
ansoncfit committed Nov 11, 2023
1 parent 5de0c82 commit 2805225
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/com/conveyal/r5/transit/TransitLayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,11 @@ public void loadFromGtfs (GTFSFeed gtfs, LoadLevel level) throws DuplicateFeedEx
}

if (level == LoadLevel.FULL) {
this.fares = new HashMap<>(gtfs.fares);
if (this.fares == null) {
this.fares = new HashMap<>(gtfs.fares);
} else {
this.fares.putAll(gtfs.fares);
}
}

// Will be useful in naming patterns.
Expand Down

0 comments on commit 2805225

Please sign in to comment.