SF-Transit App
This is a simple React JS starter application to visualize the transit routes of San Francisco using d3.js by consuming the NextBus API.
Sample Demo. You will have to enable 'load unsafe scripts' option in your browser.
How to run
- Clone the project to local machine using the command
git clone https://github.com/jerisalan/transit-app.git
- Install the dependencies using the command
npm install
- To start the application, issue the following command
npm start
Features
- Simple visualization of all SF-Muni vehicles along their routes
- Select only a subset of routes to be displayed
- Hover on vehicles to display more information
TODOs
- Draw the bus routes in addition to their locations
- Pan and zoom functionality of the SF Map
Issues
- Updating locations at regular intervals does not always work. Some minor bug needs to be fixed.
- Dynamically resize the layout on window resize is not yet implemented.
Learnings
- Getting started with React JS framework
- Honing of d3.js skills