transitland / distributed-mobility-feed-registry

a JSON-based data schema to catalog mobility/transit/transportation data feeds
https://dmfr.transit.land/
16 stars 1 forks source link

how to specify unzipped GTFS feeds? #3

Open derhuerst opened 4 years ago

derhuerst commented 4 years ago

How do I mark up GTFS feeds not stored one .zip archive?

Serving the individual .csv/.txt files via HTTP has great benefits, including following web semantics & efficiency (caching, downloading only necessary files).

I currently run vbb-gtfs.jannisr.de as a "special treatment" for my need to work with Berlin data, but I'd like to a) follow best practices to make the "endpoint" as reusable as possible, and b) make it as portable as possible by using semantic markup such as DMFR/DACT-AP/DataPackage.

drewda commented 2 years ago

A belated thanks for this question.

DMFR does not absolutely require that URLs be ZIP files. You may do so if you wish.

However, the transitland-lib tooling can currently only handle URLs that reference ZIP files. Since transitland-lib is used to power the Transitland Atlas repo of DMFR files, this means that Transitland Atlas can only have URLs that point to ZIPs. (Related to https://github.com/transitland/transitland-atlas/pull/357)

derhuerst commented 2 years ago

What do you think about expanding transitland-lib to accept a directory of GTFS files?

As mentioned above, one could support the DataPackage standard, and/or HTTP Link headers, and/or other formats for a collection of links to other files.