Giter Club home page Giter Club logo

Comments (12)

AltNico avatar AltNico commented on May 26, 2024 1

from osm2gtfs.

Skippern avatar Skippern commented on May 26, 2024

My repo https://github.com/Skippern/GV-scraper stores the time tables in times.json, and can be refreshed with the commands get_duration.py and get_times.py, that basically will gather the data and build a new times.json, if --refresh-time-table checks for the presence of get_duration.py and get_times.py and runs these commands, than I could do a full update in just one command line

from osm2gtfs.

xamanu avatar xamanu commented on May 26, 2024

As far as I can see we already have documentation for this one here. But, does it already work, @AltNico?

I think it would be good to have a timetable attribute in the configuration file, which specifies the URL to download. And then some minor caching, as described above.

from osm2gtfs.

xamanu avatar xamanu commented on May 26, 2024

Working on it...

from osm2gtfs.

xamanu avatar xamanu commented on May 26, 2024

The great work of @AltNico is in this branch: https://github.com/mapanica/osm2gtfs/tree/timetable
I guess it is almost ready to be filed as a pull request. I'm just wondering about one little thing I wanted to mention here and get your comments on it:

Currently the code checks in the main class, if the standard creators are used - before the script itself knows about it -, then it enforces the timeline to be parsed, valid and loaded. What about checking only if the file exists and having then the timetable (no matter which format) getting tunneled to the trips creator, which is the one in charge to check parsing errors, etc. I'm happy to provide a patch, but didn't want to do it before asking.

from osm2gtfs.

grote avatar grote commented on May 26, 2024

Yes, this looks a bit strange and should be improved. If this is called data_source or something similar, then it could be passed into the trips creators and can be None by default. So the individual creator can decide what to do with that information.

from osm2gtfs.

xamanu avatar xamanu commented on May 26, 2024

data can be everything. The important point is time here. What about naming it time_source?

from osm2gtfs.

grote avatar grote commented on May 26, 2024

Maybe schedule_source is clearer?

from osm2gtfs.

xamanu avatar xamanu commented on May 26, 2024

It is and I like it most. However, potentially it can be mixed up with the transitfeed's schedule object.

from osm2gtfs.

grote avatar grote commented on May 26, 2024

I thought of that as well and agree. However, I think it fits better for our use-case than the transifeed object. Maybe we should rename the latter (in our code) to feed or something like that.

from osm2gtfs.

xamanu avatar xamanu commented on May 26, 2024

Based on the input here, I filed a pull request #91 proposed for approval.

from osm2gtfs.

xamanu avatar xamanu commented on May 26, 2024

This has been merged in #91. Thanks everybody!

from osm2gtfs.

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.