
org.opentripplanner.standalone.config.buildconfig.TransitFeeds Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp Show documentation
Show all versions of otp Show documentation
The OpenTripPlanner multimodal journey planning system
The newest version!
package org.opentripplanner.standalone.config.buildconfig;
import java.net.URI;
import java.util.List;
import javax.annotation.Nonnull;
import org.opentripplanner.graph_builder.model.DataSourceConfig;
import org.opentripplanner.gtfs.graphbuilder.GtfsFeedParameters;
import org.opentripplanner.netex.config.NetexFeedParameters;
public record TransitFeeds(
@Nonnull List gtfsFeeds,
@Nonnull List netexFeeds
) {
public TransitFeeds(List gtfsFeeds, List netexFeeds) {
this.netexFeeds = netexFeeds;
this.gtfsFeeds = gtfsFeeds;
}
public List gtfsFiles() {
return gtfsFeeds.stream().map(DataSourceConfig::source).toList();
}
public List netexFiles() {
return netexFeeds.stream().map(DataSourceConfig::source).toList();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy