Skip to content

coindustry/Real-Time-Bus-Tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Real Time Bus Tracker Real Time Bus Tracker is a web application that visually tracks the location of a bus along a predetermined route. The app is built using HTML, CSS, and JavaScript, and leverages Mapbox for map visualization.

Table of Contents Installation Usage Files Contributing License Installation To get a local copy up and running follow these simple steps:

Clone the repository:

sh git clone https://github.com/coindustry/real-time-bus-tracker.git Navigate to the project directory:

sh cd real-time-bus-tracker Open the index.html file in your browser:

sh open index.html Or simply double-click the index.html file.

Usage Add your Mapbox access token: In the index.html file, locate the section where the Mapbox access token is set and replace the empty string with your token:

javascript mapboxgl.accessToken = 'YOUR_ACCESS_TOKEN'; View the bus movement: Open the index.html file in a web browser. You will see a map centered at the initial coordinates with a marker representing the bus. The marker will move along the predefined route every second.

Files index.html: The main HTML file that sets up the structure of the webpage. style.css: The CSS file that contains styles for the webpage. app.js: The JavaScript file that contains the logic for tracking and moving the bus marker on the map. Contributing Contributions are what make the open-source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repository and create a pull request. You can also simply open an issue with the tag "enhancement".

Fork the Project Create your Feature Branch (git checkout -b feature/AmazingFeature) Commit your Changes (git commit -m 'Add some AmazingFeature') Push to the Branch (git push origin feature/AmazingFeature) Open a Pull Request License Distributed under the MIT License. See LICENSE.txt for more information.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published