thepletch / mbta-checkin Goto Github PK
View Code? Open in Web Editor NEWMBTA web app to get a quick glimpse of train statuses
MBTA web app to get a quick glimpse of train statuses
Useful as an error display, esp. for mobile - implement a small, icon-based status indicator to be displayed in one corner of the screen (bottom left on desktop, top right on mobile) that shows the following details for any API requests made:
The 'time between trains' analytics for a given route calls everything a train. A helper method should be built that determines the appropriate vehicle name (bus, train, etc) for a given route.
Currently if a live train is placed over a stop (common when trains 'stand by' on the green line) the stop becomes extremely difficult to click - research a way to allow clicks to pass through train icons or ignore the clicks altogether
Currently we only track the main lines - add silver line stops, live train locations, and route shapes.
See title - same analytics token as my main site
Basic UI swag:
About/Settings drops down to:
Update Trains drops down to:
Alerts pops up a modal window with the ten most recent alerts in a scrollable view
If a user swipes left/right while a dropdown is open, quickly slide down the dropdown before swiping to the next menu option. Dropdowns should not have unpersisted states for this reason (i.e. there should never be a 'save' button in a dropdown).
Settings pane should offer toggles for:
About pane should display:
The Helpers module shouldn't have hardcoded strings in it (e.g. the icon URLs). These should be moved into JSON files and imported.
Refactor system into Coffeescript (including Coffeescript classes for modules) for concision and modifiability.
Research 'fading in' new objects over time to make appearing vehicles/routes more obvious
Add loading spinner while data files are being loaded
JQuery is a big library, and it's currently only being used for fetching elements by ID and class manipulation. It should be replaced with a more lightweight alternative or factored out altogether (prefer not to do this, since class manipulation is super unwieldy).
Google Maps apparently has an overlay showing the MBTA lines. Find and add this overlay for aesthetic/clarity purposes.
The MBTA has an option to fetch live train GPS info from GTFS all at once, reducing query load from 19 per full update to 1. This should be used instead of the current updates by route system.
The four modules in map.js have an issue right now with being interdependent. That is, two modules are aware of another's existence. All relationships should be evaluated and, if at all possible, rewritten using an events system to be made one-way or fully decoupled.
Center the header for the stop name
Mode of transportation header is redundant - nix it
Reference the following format, fitting two across, though each route should have its own row:
Forest Hills 10:31 4m
Oak Grove 10:34 7m
Alewife 10:36 9m
Ashmont 10:27 Arr
Inbound 10:44 17m
Amazon Web Services should be configured to update its files based on changes to this Github repo's master branch.
Modal window is unintuitive to swipe away/back in - should slide with user's finger/mouse until dragged off screen.
Quick Lookup should appear as a button in the new UI that, when pressed:
Add a visual indicator to a stop showing that it has been selected and store it in the code as the selected stop.
Research notifications API for Android/iOS/desktop users to allow for 'leave by this time' features.
Clicking a button to refresh the live train locations view for a line should collapse the trains menu. Currently the menu blocks a lot of the screen unnecessarily on mobile.
async.js is great, but HTML5 promises better fit what I'm trying to do here.
Tasks to
Swipe gestures currently feel unresponsive due to slow animation speed- double the animation speed.
Additionally, allow a right swipe to dismiss the modal.
The MBTA publishes live location data for all their bus routes, provided by the NextBus API. When a user clicks a stop and receives at least one bus prediction, a button should display next to the 'Buses' heading labeled 'Live'. When this button is pressed, the modal window will close and live locations of all bus routes associated with the stop will be displayed. Any other live location request will clear these.
Prediction pane is currently an unstyled set of nested lists - that can be improved. Add some flair to it, esp. to differentiate the different segments.
The train arrows are really dark, almost unseeable on the dark map, consider a brighter color?
Feature spec:
CSS contains several duplicated pieces of information that could be better expressed with SASS (also allowing it to be minified on upload). Rewrite the current CSS into SASS and write corresponding gulp tasks to compile the SASS for development and deployment.
Find some way to integrate the alert pane into the mobile site to give error feedback.
Click "View Buses" for any bus line, then open any stop on that route and press "View Buses" for the same bus line again.
View Buses should always show the live locations of buses on a route
Images should be compiled into a spritesheet to avoid things loading one line at a time or the unattractive blinking of the reticle between loading and completion. Note Google Maps' 'origin' parameter for Icons.
Currently alert deduping is broken (attempts to compare alert string to alert objects to find duplicates). It should be fixed to avoid cluttering the alerts panel.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.