Giter Site home page Giter Site logo

Comments (2)

mk-fg avatar mk-fg commented on September 1, 2024

Actually, this L35246 example illustrates another problem, which probably should be considered when fixing this one.

Joined CIF schedule / stop_times entries currently processed by the script for L35246 are:

  L35246   23167 P 2017-05-22 2017-12-08 12345.. A ZTU 00:02 00:02 T
  L35246   23167 P 2017-05-22 2017-12-08 12345.. A GUN 00:05 00:05 T
  L35246   23167 P 2017-05-22 2017-12-08 12345.. A KWG 00:08 00:08 T
  ...

While actual entries in these tables are:

  L35246   23167 P 2017-05-22 2017-12-08 12345.. A ZUM --:-- 22:43 TB
  L35246   23167 P 2017-05-22 2017-12-08 12345.. A ZTU 00:02 00:02 T
  L35246   23167 P 2017-05-22 2017-12-08 12345.. A GUN 00:05 00:05 T
  L35246   23167 P 2017-05-22 2017-12-08 12345.. A KWG 00:08 00:08 T
  ...

Note how including that first entry effectively changes service dates!

So condition in aforementioned "massive query" that gets schedule/stop times should not have crs_code IS NOT NULL in it, as that might prevent script from ever processing that first stop, and set wrong date for GTFS trip (like it does here), regardless of whether such stop will end up in GTFS trip or get discaded.

from dtd2mysql.

linusnorton avatar linusnorton commented on September 1, 2024

Doing a quick query to check for departure stations with no CRS only returns 12 services starting from LRDDEAC which is a depot. Given we understand TB to mean that passengers can get on or off and LRDDEAC is a depot I think we can skip it. I won't add any extra checks for days etc at this point but I will add that extra join.... because you can never have enough joins.

from dtd2mysql.

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.