Giter Club home page Giter Club logo

transloc-to-gtfs-real-time's People

Contributors

jonathonwpowell avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

transloc-to-gtfs-real-time's Issues

No Method of mapping vehicle to trip_id

Currently there is no method of mapping a vehicle to a trip_id, as trip_id is not provided in the Transloc API.

Here are my ideas to create a generic way to create this mapping:

  • Add an optional parameter that points to a URL that will do the mapping
    • This endpoint will expect an array of vehicles, positions, timestamps, & routes
    • The endpoint will return the trip_id for each vehicle, or no trip_id if the endpoint knows the vehicle is not on a trip
    • While the endpoint could work in many ways, I imagine that it will try and match the vehicle to a trip_id, and then cache the result for a length of time or until values changed.
    • This method of having a separate endpoint do the mapping allows this project to remain stateless, as well as allow for other data that may be agency specific to be added in
  • Before mapping to the gtfs-rt format, if the url is passed in it will call it. It will then add the trip_id to all of the vehicles, or remove them if they have no trip_id

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.