Coder Social home page Coder Social logo

cscape / wayline-miami Goto Github PK

View Code? Open in Web Editor NEW
5.0 4.0 2.0 536 KB

โ“‚๐Ÿ“ก Web server that generates GTFS Realtime data for transit in South Florida

Home Page: https://realtime.wayline.co/

License: MIT License

JavaScript 89.04% HTML 10.96%
nodejs transit wayline miami gtfs-realtime gtfs gtfs-realtime-data gtfs-rt

wayline-miami's Introduction

Miami-Dade Transit GTFS-RT Server

Web server that generates GTFS Realtime Vehicle Positions data for Miami-Dade Transit.

Project Goals

The server should be able to run continuously, serving as both a proxy for the Miami-Dade Transit GTFS as well as provider of GTFS Realtime data. The GTFS-RT data should remain cached in the server memory and refreshed roughly every 25-30 seconds (Google fetches updates every 30secs, other apps may behave the same way). The Miami-Dade Transit GTFS should be fetched hourly and at server start-up.

If the GTFS zip is missing data (like the Coral Gables Trolley, Grand Avenue route) then it's assumed that it doesn't exist and therefore shouldn't be linked, interpolated, or backfilled with guessed data.

Table of Progress

For Trip Updates, we're using TheTransitClock to generate the realtime data from the Vehicle Positions. This is yet to be automated and is still in development. More documentation will follow.

Vehicle Positions

Generated GTFS Realtime data must follow the structure and underlying data types as the MBTA's own GTFS Realtime data, including Long data types where necessary and ensuring everything is consistent.

  • All Metrobus locations
  • All Metrorail locations
  • All Metromover locations
  • All Trolley locations - link TSO Mobile (Miami/Doral/Beach/Aventura + other trolleys) data with MDT GTFS
  • Coral Gables Trolley - link ETA Transit data with MDT GTFS
  • Tri-Rail train locations
  • SFRTA connector locations
  • Broward County Transit bus locations
  • Trolley (Broward) locations - TSO Mobile data
  • Palm Tran bus locations
  • Trolley (Palm Beach) locations - link TSO data

License

MIT ยฉ Cyberscape.

wayline-miami's People

Contributors

ciolt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

pestevez inteliti

wayline-miami's Issues

VehiclePositions generator loop randomly stops

In production, after a lot of hours, it seems that the recursive function that handles VehiclePositions generation just stops. No apparent reason for it. This causes problems with Interchange.

I'm assuming Node.js is preventing infinite loops (which is technically what this is) and/or the setTimeout isn't firing sometimes.

The request listener for the VehiclePositions feed should trigger generation if the latest feed hasn't been updated in 15+ seconds.

Overlapping VehiclePositions updates

Continuation of #2. This time, there's 2 generators firing at the same time at around the same interval.

Make it so that there's a global register(?) so that the generators fire only one at a time for any given window of time. Might require a check in the exec-vp script.

Should also bump up timeout time to 30 seconds instead of 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.