This is a basic bus & bus stop tracker for the Boston and Seattle areas, respectively. Jump between the two maps by clicking the link at the top-right of the screen. Note that you will need a Mapbox API key in order to view the maps.
-
Seattle: Enter your Mapbox key and select a line from the drop-down to view all available stops. Each stop is clickable and will tell you the intersection / stop name.
-
Boston: Enter your Mapbox key and click the button at the top-left of the screen to begin live tracking of all buses traveling the route 1 line which connects MIT and Harvard. All data updates every 10 seconds.
To run this project, simply navigate to https://nitnub.github.io/live-bus-tracker and follow the instructions on the page.
- Expand bus tracking functionality to the Seattle map.
- Add stops to the Boston map.
- Enhance with bootstrap.
- Add dark mode.
Thank you to Mavadee for the custom bus stop icon.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.