use of com.graphhopper.gtfs.fare.FixedFareAttributeLoader in project graphhopper by graphhopper.
the class GtfsStorage method fixFares.
private void fixFares(GTFSFeed feed, ZipFile zip) {
feed.fares.clear();
Map<String, Fare> fares = new HashMap<>();
try {
new FixedFareAttributeLoader(feed, fares).loadTable(zip);
new FareRule.Loader(feed, fares).loadTable(zip);
} catch (IOException e) {
throw new RuntimeException(e);
}
feed.fares.putAll(fares);
}
Aggregations