gtfsBundle.linkStopsToParentStations = true;
}
gtfsBundle.parentStationTransfers = params.parentStationTransfers;
gtfsBundles.add(gtfsBundle);
}
GtfsGraphBuilderImpl gtfsBuilder = new GtfsGraphBuilderImpl(gtfsBundles);
graphBuilder.addGraphBuilder(gtfsBuilder);
// When using the long distance path service, or when there is no street data,
// link stops to each other based on distance only, unless user has requested linking
// based on transfers.txt or the street network (if available).
if ((!hasOSM ) || params.longDistance) {
if (!params.useTransfersTxt) {
if (!hasOSM || !params.useStreetsForLinking) {
graphBuilder.addGraphBuilder(new StreetlessStopLinker());
}
}
}
if ( hasOSM ) {
graphBuilder.addGraphBuilder(new TransitToTaggedStopsGraphBuilderImpl());
graphBuilder.addGraphBuilder(new TransitToStreetNetworkGraphBuilderImpl());
// The stops can be linked to each other once they have links to the street network.
if (params.longDistance && params.useStreetsForLinking && !params.useTransfersTxt) {
graphBuilder.addGraphBuilder(new StreetfulStopLinker());
}
}
gtfsBuilder.setFareServiceFactory(new DefaultFareServiceFactory());
}
if (configFile != null) {
EmbeddedConfigGraphBuilderImpl embeddedConfigBuilder = new EmbeddedConfigGraphBuilderImpl();
embeddedConfigBuilder.propertiesFile = configFile;
graphBuilder.addGraphBuilder(embeddedConfigBuilder);