Coder Social home page Coder Social logo

Comments (3)

brendannee avatar brendannee commented on July 19, 2024

The GTFS working group updated their list of requirements, and one of the more recently updated requirements is that GTFS files must be in the root level directory:

"All dataset files must be zipped together. The files must reside at the root level directly, not in a subfolder."

https://gtfs.org/schedule/reference/#dataset-files

So, according to this, these agencies are not publishing valid GTFS if the zip file contains subfolders and multiple different GTFS files. (you could let them know about this and maybe they will update their publishing process)

However, as a workaround, I suggest adding a preprocessing script that downloads the zip file, unzips it to a specified directory and then run node-gtfs with the configuration set to the unzipped path. node-gtfs doesn't require that local files be zipped, the path to unzipped GTFS files works just fine.

Alternatively, you could fork node-gtfs and add logic to unzip the downloaded file and specify the task.path variable to the unzipped directory here: https://github.com/BlinkTagInc/node-gtfs/blob/master/lib/import.js#L33

from node-gtfs.

mark1foley avatar mark1foley commented on July 19, 2024

from node-gtfs.

brendannee avatar brendannee commented on July 19, 2024

Let me know how you end up solving this or if you have other ideas on how node-gtfs could be improved.

Are you setting up a system to automatically fetch GTFS?

I'd be interested in documenting patterns for pre-processing and post-processing GTFS before/after it is handled by node.js.

from node-gtfs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.