Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPS Based Toll Collection System

A multi-component toll management system with a Python (Flask) web admin panel, an Android mobile app, and a Java Swing server for device simulation.

About This Project

This was my academic mini project, built with my team. Toll systems like FASTag rely on gantries with RFID readers, and those are expensive to set up and maintain. If a gantry breaks down, toll collection at that spot just stops working. This project uses a vehicle's GPS location instead of physical infrastructure on the road.

How it works: A microcontroller with GPS connectivity sits in the vehicle and continuously tracks its location. The system compares those coordinates with toll zone coordinates stored in the database, and when they match, the toll amount gets deducted automatically from the user's wallet. It also checks the vehicle's speed against the legal limit for that road and raises a fine if it's crossed. Since we didn't have access to real GPS hardware, we built a Java Swing simulator (SwingServer) to demo vehicles moving through toll zones and triggering tolls and fines.

What I learned: This project pushed me to think about how multiple parts of a system — a web app, a mobile app, and a simulation tool — work together through a shared database.

Features

  • GPS-based automatic toll detection and collection
  • Android app with wallet, payment, and fine/toll deduction history
  • Admin web panel to manage toll rates, locations, and violations
  • Automated speed violation detection and fine management
  • User registration, login, and feedback system
  • Java Swing server for device simulation and data management

Tech Stack

  • Web: Python, Flask, MySQL
  • Mobile: Android (Java)
  • Server: Java Swing
  • Database: MySQL

How to Run

Web Admin

pip install flask mysql-connector-python
python Home.py

Android App

Open the Android project folder in Android Studio, build the project, and install it on a device or emulator to register, view toll zones, manage your wallet, and track tolls in real time.

Security Note

Database credentials in this project are loaded from environment variables (DB_HOST, DB_USER, DB_PASSWORD, DB_NAME) rather than hardcoded. Earlier versions of this repository contained hardcoded credentials; these have since been removed and replaced with placeholders. Set your own environment variables or update the placeholder values before running.

About

A GPS-based toll collection system featuring Python Flask web admin panel, Android mobile app, and Java Swing server. Includes automated toll detection, speed violation tracking, and payment management.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages