Giter VIP home page Giter VIP logo

mbtaviz.github.io's Introduction

Visualizing MBTA Data

mbtaviz.github.io

Visualizing MBTA Data is a web based interactive visualization that provides a glimpse into the performance and behavior of Boston's subway system.

Check it out: http://mbtaviz.github.io.

Also see our implementation notes, a blog post describing this source code, and wiki pages with detailed explanations of the data format for each visualization.

Quick Start

  1. Install node.js

  2. Install bower to grab dependencies, less to compile style sheets and http-server to run the website

    npm install -g bower less http-server

  3. Install dependencies

    bower install

  4. Compile less css files into a single stylesheet

    lessc --clean-css styles/main.less > styles/main.css

  5. Serve up the website

    http-server

  6. Browse to http://localhost:8080/ to see the visualization

Source Code Layout

data\                post-processed visualization data
scripts\             JavaScript files for the visualization and the website
styles\              less CSS stylesheets and main.css that they are compiled into
media\               Opengraph/Twitter Card images
bower.json           bower dependencies
favicon.ico          map glyph favicon with animation
handout.pdf          design and implementation notes
ie.png               website rendered to an image for browsers without svg support
index.html           landing page
README.md            README file that appears on the website's github page

Regenerating Stylesheets

The visualization loads main.css which is generated from all of the less files in the styles/ directory. If you change any of the less stylesheets use the less compile to regenerate main.css as described above:

lessc --clean-css styles/main.less > styles/main.css

For more information see http://lesscss.org.

Raw Data

The raw data is available from two sources. A zipped csv file with per-minute turnstile entry and exit counts from each station is made available with permission from the MBTA:

https://www.dropbox.com/s/vv2l1iehhx3wkfx/StationTurnstileCountsByMinute_2014_02-01--03-02.csv.zip

NOTE: some stations don't accurately measure turnstile exits, so entry counts will tend to be more accurate.

Also the realtime subway and alert JSON files collected for the month of February are available here:

https://www.dropbox.com/s/8qqo1x6h93v7cv4/raw_subway_data.zip

They are stored in hourly gzipped files in the following format: subway-line/yyyy/mm/dd/hh/data.json.gz where each line of the ungzipped file contains a JSON blob polled from the MBTA's realtime feed described here. All times use Eastern Standard time zone.

Creators

Mike Barry

Brian Card

License

Copyright 2014 Michael Barry and Brian Card.

JavaScript source files and less stylesheets released under the MIT License.

All other files including this README, the main web page, and images made available under Github's terms of service

mbtaviz.github.io's People

Contributors

msbarry avatar bcard avatar

Watchers

James Cloos avatar Kevin McAlear avatar

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.