Skip to content

Blue-Rangoon/Smart-Delivery-Route-Planner-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

32 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

SwiftRoute AI - Smart Route Delivery Planner

A.I-Powered Delivery Route Optimization Platform

HTML5 CSS3 JavaScript Python Flask FastAPI Vercel

Last Commit Stars Contributors License Status


Project Preview


πŸ“‹ Table of Contents


About The Project

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)


⭐ Repository Visitors

GitHub Views GitHub Clones

Thank you for visiting! If you find this project useful, please consider giving it a ⭐


✨ Features

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

πŸ› οΈ Tech Stack

Frontend

HTML5 CSS3 JavaScript

Backend

Python Flask Flask-CORS

Libraries & Frameworks

Bootstrap 5 Leaflet Bootstrap Icons

Algorithms

A* Algorithm Dijkstra BFS/DFS


πŸš€ Getting Started

Prerequisites

  • Python 3.8 or higher
  • pip (Python package manager)

Installation

1. Clone the Repository

git clone https://github.com/Blue-Rangoon/smart-route-delivery-planner.git
cd smart-route-delivery-planner

2. Create Virtual Environment (Recommended)

# Windows
python -m venv venv
venv\Scripts\activate

# macOS / Linux
python3 -m venv venv
source venv/bin/activate

3. Install Dependencies

pip install -r requirements.txt

Running the Application

python app.py

The application will start on http://localhost:5000


πŸ“‚ Project Structure

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

πŸ“– API Documentation

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

Example: Plan a Route

curl -X POST http://localhost:5000/api/plan_route \
  -H "Content-Type: application/json" \
  -d '{
    "start": "A",
    "end": "H",
    "options": ["traffic", "fuel"]
  }'

πŸ—ΊοΈ Available Nodes

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

πŸ” Security Notes

  • ⚠️ The default secret key in app.py is for development only
  • In production, generate a secure secret key:
    python -c "import secrets; print(secrets.token_hex(32))"
  • Update the app.secret_key in app.py before deploying

🀝 Contributing

Contributions are welcome! Here's how you can help:

  1. Fork the repository
  2. Clone your forked repo:
    git clone https://github.com/YOUR_USERNAME/smart-route-delivery-planner.git
  3. Create your feature branch:
    git checkout -b feature/AmazingFeature
  4. Commit your changes:
    git commit -m 'Add some AmazingFeature'
  5. Push to the branch:
    git push origin feature/AmazingFeature
  6. Open a Pull Request

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


πŸ‘₯ Team

Role Name LinkedIn
πŸš€ 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

❀️ Made with Love

Built with passion by Student Development Team

Python Flask Love

Β© 2026 SwiftRoute AI - Smart Route Delivery Planner. All rights reserved.

About

An AI-driven delivery route planner designed to compute the most efficient paths between multiple locations, minimizing distance and delivery time while maximizing operational efficiency.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors