GithubHelp home page GithubHelp logo

lacmta / metro-art-bus-tracker Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 2.75 MB

๐ŸšŒ Bus tracking map that uses real time data

Home Page: https://lacmta.github.io/metro-art-bus-tracker/

License: MIT License

JavaScript 92.27% Liquid 4.58% HTML 0.70% CSS 2.46%

metro-art-bus-tracker's Introduction

metro-art-bus-tracker

This website was built using our 11ty-web-template repo and it shows the locations of the 3 Metro Art Buses in real time.

Icons will appear on the map if the vehicle_id appears in the VehiclePositions feed AND it has a trip_id assigned to it. Clicking the icon will show a popup with additional information about the trip that vehicle is running.

Buses that satisfy this condition will be in one of two states: stopped (current_status is STOPPED_AT) or moving (current_status is INCOMING_AT or IN_TRANSIT_TO). See the GTFS Realtime Reference for more information.

If the vehicle is stopped, the popup will show the stop name and the timestamp.

If the vehicle is moving, the popup will show the bus' next stop and the predicted arrival time (or departure time if the arrival time is not available).

Technology:

  • 11ty
  • Leaflet
  • Metro basemap via ESRI

Data:

Quickstart

Use node --version to verify you're running Node 12 or newer.

Download this repository.

Use npm run start to build & serve the site.

โ—โ—โ— If this is your first time running 11ty, the @11ty/eleventy package will be installed. Type y when prompted to proceed. You might need to run npm install.

View the site locally at http://localhost:8080/.

Config for GitHub Pages

If you plan to run a live version of this site on GitHub Pages:

  • Update pathPrefix in .eleventy.js to your repo name.
  • Make sure GitHub Pages is set to publish the docs/ folder.

metro-art-bus-tracker's People

Contributors

matikin9 avatar albertkun avatar

Watchers

 avatar

Forkers

dexo568

metro-art-bus-tracker's Issues

MVP Features

Popups for each bus icon to show:

  • line number (not route ID from GTFS, needs route_code from stop_times.txt)
  • stop name of predicted next stop
  • predicted arrival time at next stop, or minutes until vehicle reaches next stop

References:

Uptime Monitoring

Screen Shot 2022-08-29 at 3 28 06 PM

Hi Nina and team, following up on a [Twitter Thread Conversation](https://twitter.com/ninakin9/status/1563550270264528900)

For issue and incident tracking, you mentioned using [Upptime ] (https://demo.upptime.js.org/) to leverage GitHub Actions to get alerts or updates on GTFS feed data issues. Existing Feed https://lacmta.github.io/metro-art-bus-tracker/status/

What other capabilities would support LA Metro use cases?

Use Cases highlighted by Nina

  • I'd love to be able to track the "uptime" of these 3 vehicles but I might need a proper server-side setup for that. Our Art Team is getting updates from the divisions on the status of the buses and we'd be able to compare with that.
  • If the buses are supposed to be actively running service but they're not showing up in the VehiclePositions feed, that could indicate broken GPS tracking equipment.
  • For example, right now planned cancellations are being released in a feed every 5 minutes, with data directly coming from the Operations' scheduling system. Major shoutout to our Ops & IT for making it happen this year!
  • However, unplanned cancellations need to be manually entered into the Swiftly system by the Bus Controllers, as they're juggling a million other things to manage service disruptions in real-time.

Motivation

  • We have an Open Data Tool for managing Public API feeds and are exploring a PoC we could use to help LACMTA.

UI when data is loading

The real time data can take quite a few seconds to load because it's so large. We might want some sort of loading indicator.

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.