com.conveyal.gtfs.GTFSCache Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gtfs-lib Show documentation
Show all versions of gtfs-lib Show documentation
A library to load and index GTFS feeds of arbitrary size using disk-backed storage
package com.conveyal.gtfs;
import java.io.File;
/**
* Simple cache that just fetches and stores GTFS feeds directly, and does not transform them in any way.
*/
public class GTFSCache extends BaseGTFSCache {
public GTFSCache(String bucket, File cacheDir) {
super(bucket, cacheDir);
}
public GTFSCache(String bucket, String bucketFolder, File cacheDir) {
super(bucket, bucketFolder, cacheDir);
}
@Override
protected GTFSFeed processFeed(GTFSFeed feed) {
return feed;
}
@Override public GTFSFeed getFeed (String id) {
return this.get(id);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy