Open barbeau opened 6 years ago
This new downloader should extend our BaseDownloader
class.
Note that as of the beginning of 2018 Mapzen is shutting down, but Transitland will continue throughout 2018 for now: https://mapzen.com/blog/migration/
Before implementing this we should check on the latest status of Transitland.
Transitland doesn't yet include URLs for GTFS-realtime feeds, but it's on the short list - see https://github.com/transitland/transitland/issues/77.
This project is written to be fairly agnostic to what API the GTFS and GTFS-realtime feed URLs come from. We're currently using TransitFeeds.com because it already has a directory of GTFS-realtime feeds, but I'd like to add Transitland as an option too.
Adding Transitland as an option to our project would mean mirroring the
TransitFeedsDownloader
class in a newTransitlandDownloader
class.TransitFeedsDownloader
does the following:So, we'd need to following a similar process for Transitland:
This could happen in a single API call, or several - the main requirement is that there is a link between the GTFS and GTFS-realtime feeds, and that we can easily download GTFS data only for agencies that have GTFS-realtime feeds. Note that GTFS-realtime feeds typically have 2-3 URLs, one for each TripUpdate, VehiclePositions, and ServiceAlerts.