https://github.com/imvision12/real-time-tracking
Real time bus tracking using MTA bus API
https://github.com/imvision12/real-time-tracking
flask hadoop javascript leaflet python spark
Last synced: 4 months ago
JSON representation
Real time bus tracking using MTA bus API
- Host: GitHub
- URL: https://github.com/imvision12/real-time-tracking
- Owner: IMvision12
- License: mit
- Created: 2024-12-14T23:26:54.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-23T07:36:12.000Z (over 1 year ago)
- Last Synced: 2025-04-22T12:28:48.887Z (about 1 year ago)
- Topics: flask, hadoop, javascript, leaflet, python, spark
- Language: Python
- Homepage:
- Size: 23.4 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Real-time-tracking

# Project Overview
This project is a comprehensive real-time bus tracking application that leverages modern web technologies and big data processing to provide live bus location tracking and analytics.
# Technologies Used
1. Frontend: Leaflet.js for interactive mapping
2. Backend: Python, Flask
3. Big Data Processing: Apache Hadoop / HDFS
# Installation
1. Clone the repository
```python
git clone https://github.com/IMvision12/Real-time-tracking
cd Real-time-tracking
```
2. Set up Python virtual environment
```python
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
pip install -r requirements.txt
```
3. Navigate to your Hadoop installation directory
5. Locate and edit the configuration files:
* `etc/hadoop/core-site.xml`
* `etc/hadoop/hdfs-site.xml`
* Ensure network and storage paths are correctly specified
6. Start Hadoop Services
* Open a terminal with administrator privileges
* Run the Hadoop cluster startup command: `start-all.cmd`
* Verify Hadoop services are running:
+ Check NameNode and DataNode status
+ Confirm no startup errors in the console
7. Start Data Collection Service
* Update the API key in `config.py` and `leaf.js` files
* Open a new terminal
* Navigate to the project's `src` directory: `cd Real-time-tracking/src`
* Launch the MTA Bus API data fetching script: `python main.py`
* Verify data ingestion is working correctly
+ Check console logs for successful API connections
+ Monitor initial data retrieval process
9. Launch Flask Web Application
* pen another terminal
* Ensure you're in the `Real-time-tracking` project directory
* Start the Flask web application: `python app.py`