Giter VIP home page Giter VIP logo

therealtimebustracker's Introduction

Real Time Bus Tracker

Description of the project:

We made a simple example project on the real-time bus tracker using the MBTA V3 API (take one of its bus routes as an example, eg. route 1). From what we worked on before from the MERN coursework, here we improved the project by adding a real-time tracker (fetching real-time data from the API) and computing the real-time bus coordinates in the console.

How to Run:

If you wanna try it on your local machine, here are the steps you are about to take: Download the zip of this project or through GitHub to your desktop. First, register an account at https://www.mapbox.com/. Then, click on the 'Token' tab on your account main page and create a Token for free. Next, copy your token number in the JS: 'fmapboxgl.accessToken = '--INSertYourAccessTokenHere--' '. Finally, open the 'html' on your local PC.

image

Roadmap of future improvements:

Here are several thoughts we have that may help to improve the functionality of the real-time bus tracker: Initially, we try to include all bus routes from the MBTA using the 'gtfs-realtime.proto'. Then we find there is an issue with CORS policy when trying to fetch data from the MBTA server. It would have been helpful if we could have some permission from the MBTA contributor platform to circumvent this restriction. Also, we could improve our script by utilizing a classic map maker on the screen for easy recognition. Last but not least, it would be ideal if we could have an input box or a pull-down list for users to select which route(s) they are interested in and only show those real-time routes on the screen.

License information: MIT license.

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.