All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.conveyal.gtfs.GTFSCache Maven / Gradle / Ivy

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 - 2024 Weber Informatics LLC | Privacy Policy