- About The Project
- β Repository Visitors
- β¨ Features
- π οΈ Tech Stack
- π Getting Started
- π Project Structure
- π API Documentation
- πΊοΈ Available Nodes
- π Security Notes
- π€ Contributing
- π License
- π₯ Team
- β€οΈ Made with Love
AI-powered delivery route optimization platform built with Flask. This application calculates optimal delivery routes using advanced pathfinding algorithms (A*, UCS, Dijkstra, BFS, DFS), reducing delivery times by up to 40% and cutting fuel costs.
Built specifically for Karachi's delivery network, Smart Route Delivery Planner helps logistics teams optimize their delivery routes with real-time map visualization, smart traffic intelligence, and comprehensive analytics.
π‘ Live Demo: Smart Route Delivery Planner (Live Website)
| Feature | Description |
|---|---|
| π§ AI Route Optimization | Dijkstra/A*/UCS-powered algorithms for shortest, fastest, and most fuel-efficient routes |
| πΊοΈ Live Map Visualization | Interactive Leaflet maps with real Karachi coordinates and animated route drawing |
| π¦ Smart Traffic Intelligence | Options for speed, fuel efficiency, or road quality optimization |
| π Delivery Analytics | Track distance, ETA, and cost summaries for every delivery run |
| π± Mobile Responsive | Fully responsive dashboard for phones, tablets, and desktops |
| π Secure Authentication | Local-first authentication with encrypted user sessions |
| π― Multiple Algorithms | Choose from A*, Uniform Cost Search, Dijkstra, BFS, or DFS |
| β‘ Real-time Updates | Instant route calculation and visualization |
- Python 3.8 or higher
- pip (Python package manager)
git clone https://github.com/Blue-Rangoon/smart-route-delivery-planner.git
cd smart-route-delivery-planner# Windows
python -m venv venv
venv\Scripts\activate
# macOS / Linux
python3 -m venv venv
source venv/bin/activatepip install -r requirements.txtpython app.pyThe application will start on http://localhost:5000
AI Project/
βββ app.py # Main Flask application
βββ requirements.txt # Python dependencies
βββ vercel.json # Vercel deployment config
βββ users.json # User data storage
βββ .gitignore # Git ignore rules
βββ algorithms/ # Pathfinding algorithms
β βββ __init__.py
β βββ ai_router.py
β βββ astar.py
β βββ bfs.py
β βββ dfs.py
β βββ ucs.py
βββ utils/ # Utility modules
β βββ __init__.py
β βββ data.py
β βββ heuristics.py
β βββ priority_queue.py
βββ templates/ # HTML templates
β βββ index.html
β βββ dashboard.html
βββ static/ # Frontend assets
βββ index.css
βββ index.js
βββ dashboard.css
βββ dashboard.js
| Endpoint | Method | Description |
|---|---|---|
/api/signup |
POST | Register a new user account |
/api/login |
POST | User authentication |
/api/logout |
POST | User logout |
/api/locations |
GET | Get all node locations |
/api/nodes |
GET | Get all available nodes |
/api/plan_route |
POST | Plan optimal route between two points |
/api/graph |
GET | Get graph data |
curl -X POST http://localhost:5000/api/plan_route \
-H "Content-Type: application/json" \
-d '{
"start": "A",
"end": "H",
"options": ["traffic", "fuel"]
}'The system includes delivery locations across Karachi, Pakistan:
| Code | Location | Area |
|---|---|---|
| A | UIT University | Gulshan Block 7 |
| B | Gulshan Chowrangi | Gulshan-e-Iqbal |
| C | NIPA Chowrangi | Gulshan-e-Iqbal |
| D | Liaquatabad | Liaquatabad |
| E | Teen Hatti | Saddar |
| F | Guru Mandir | Saddar |
| G | MA Jinnah Road | Karachi South |
| H | Saddar Karachi | Saddar |
β οΈ The default secret key inapp.pyis for development only- In production, generate a secure secret key:
python -c "import secrets; print(secrets.token_hex(32))" - Update the
app.secret_keyinapp.pybefore deploying
Contributions are welcome! Here's how you can help:
- Fork the repository
- Clone your forked repo:
git clone https://github.com/YOUR_USERNAME/smart-route-delivery-planner.git
- 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
This project is licensed under the MIT License - see the LICENSE file for details.
| Role | Name | |
|---|---|---|
| π Lead Developer | Sadia Shoaib | π View Profile |
| π» Frontend Developer | Saad Ali Rizvi | π View Profile |
| π Integration & Technical Specialist | Syed Anas Hasan | π View Profile |
| π§ Algorithm Engineer | Laiba Idrees | π View Profile |
| π Research & Documentation | Alishba Batool | π View Profile |
