This project is a Driver Movement Tracking Admin Dashboard designed to help companies or organizations with multiple vehicles manage and monitor their fleet efficiently. The dashboard provides real-time GPS tracking, route history, and insightful details about vehicle statuses. The project includes both a frontend and backend, delivering a robust solution for live vehicle monitoring and route analysis.
-
Real-Time GPS Tracking:
- Tracks driver movement in real-time using GPS coordinates displayed on a Leaflet map.
- Shows the vehicle's journey with a polyline path and markers for break points.
-
Route History:
- Saves completed journeys in a
history.json
file for future reference. - Tracks each journey with a ride number and organizes data day-wise.
- Saves completed journeys in a
-
Dashboard Metrics:
- Displays summary metrics on the navbar:
- Total Vehicles
- Moving Vehicles
- Free Vehicles
- Idle Vehicles
- Displays summary metrics on the navbar:
-
User-Friendly UI(Not Responsive for Mobile View):
-
Simulated Real-Time GPS Data:
- Uses OpenStreetMap's OSRM Routing API to generate realistic GPS data, including:
- Vehicle ID
- Timestamp
- Latitude and Longitude
- Status (e.g., break, ride, idle)
- Uses OpenStreetMap's OSRM Routing API to generate realistic GPS data, including:
-
Advanced Admin Control:
- Provides robust tracking and monitoring tools for better control over vehicle movements.
- Enables route analysis and tracking driver behavior for operational efficiency.
- HTML, CSS, JavaScript
- Leaflet.js: For interactive map rendering and tracking.
- Flask (Python)
- OpenStreetMap's OSRM API: For generating route and GPS data.
- JSON: For data storage.
- CORS
git clone /~https://github.com/SMPY2002/Driver-Movement-Tracker-on-Map.git
cd Driver-Movement-Tracker-on-Map
- Set up a Python virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
- Install required Python packages:
pip install -r requirements.txt
python app.py
- Open
index.html
in a browser to load the Admin Dashboard UI.
-
Simulate Real-Time GPS Data:
- The backend generates GPS data for vehicles using OSRM API.
- Data includes vehicle ID, timestamp, latitude, longitude, and status (break, ride, idle).
- Data is formatted into JSON and sent to the frontend via API calls.
-
Display Data on Leaflet Map:
- The frontend receives GPS data and updates the map in real-time.
- Polyline paths show the vehicle routes, with markers for break points.
-
Save Ride History:
- Completed rides are stored in
history.json
, organized by ride number and day. - Admins can toggle between live tracking and history view from the sidebar.
- Completed rides are stored in
-
Interactive Metrics:
- Navbar metrics dynamically update to reflect the number of total, moving, free, and idle vehicles.
- Driver Profiles:
- Associate drivers with vehicle data for better management.
- Geofencing:
- Alert admin when vehicles deviate from predefined routes.
- Advanced Analytics:
- Visualize route performance and identify bottlenecks.
- Mobile App Integration:
- Extend functionality to a mobile platform for on-the-go access.
- Database Integration:
- Store ride history in a database for scalability and reliability.
- Inspiration: Designed to improve fleet management and provide real-time insights for logistics and delivery operations.
- Technologies Used: Flask, Leaflet, OpenStreetMap, OSRM API.
This project is licensed under the MIT License. Feel free to use, modify, and distribute this project as per the license terms.
For any queries or suggestions, please reach out via:
- Email: smpy1405@gmail.com
- GitHub: SMPY2002