Search in sources :

Example 1 with NetexModule

use of org.opentripplanner.netex.NetexModule in project OpenTripPlanner by opentripplanner.

the class NetexConfig method netexModule.

private NetexModule netexModule(Iterable<DataSource> netexSources) {
    List<NetexBundle> netexBundles = new ArrayList<>();
    for (DataSource it : netexSources) {
        NetexBundle netexBundle = netexBundle((CompositeDataSource) it);
        netexBundles.add(netexBundle);
    }
    return new NetexModule(buildParams.netex.netexFeedId, buildParams.parentStopLinking, buildParams.stationTransfers, buildParams.getSubwayAccessTimeSeconds(), buildParams.maxInterlineDistance, buildParams.getTransitServicePeriod(), netexBundles);
}
Also used : NetexModule(org.opentripplanner.netex.NetexModule) NetexBundle(org.opentripplanner.netex.loader.NetexBundle) ArrayList(java.util.ArrayList) DataSource(org.opentripplanner.datastore.DataSource) CompositeDataSource(org.opentripplanner.datastore.CompositeDataSource) ZipFileDataSource(org.opentripplanner.datastore.file.ZipFileDataSource)

Aggregations

ArrayList (java.util.ArrayList)1 CompositeDataSource (org.opentripplanner.datastore.CompositeDataSource)1 DataSource (org.opentripplanner.datastore.DataSource)1 ZipFileDataSource (org.opentripplanner.datastore.file.ZipFileDataSource)1 NetexModule (org.opentripplanner.netex.NetexModule)1 NetexBundle (org.opentripplanner.netex.loader.NetexBundle)1