Giter Club home page Giter Club logo

Comments (2)

faultyserver avatar faultyserver commented on June 12, 2024

In shark, this is almost kind of sorta a configuration. In fact, DoubleMap doesn't even provide stop_codes for CityBus, but I was able to patch it in by looking at the structure of the data coming from from DoubleMap.

This definitely needs to be made configurable in timetable as well to support this use case. As for why stop_code was chosen initially, it was just to make the channel topic more human-readable. UUIDs aren't very human-friendly, making it harder to debug things along the way. At this point, though, I'd be okay with switching over to UUIDs for compatibility.

I think the real question is what makes a good, universal identifier? This is probably different between most agencies out there, so it should be configurable, as mentioned above. But, it also needs to be consistent across the different sources of information for a given agency (GTFS, anything realtime, etc.) so that they can work together and use the same identifiers/channel topics.

In short, the right thing to do is let each system configure it's "primary attribute" for creating an identifier, so that any system with any set of sources can agree on an identification schema.

I don't have an answer for this yet.

from timetable_cpp.

elliottwilliams avatar elliottwilliams commented on June 12, 2024

As of #22, we now fall back to using the stop id if a code is unavailable.

from timetable_cpp.

Related Issues (16)

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.