Skip to content

VaishnavaDevi-R/Intelligent-Route-Planner-Using-Graph-Algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

25 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Intelligent Route Planner Using Graph Algorithms

Python FastAPI React OpenStreetMap Graph Algorithms License

Real-Time Route Optimization and Navigation System Using Graph Algorithms, FastAPI, React and OpenStreetMap


πŸ“Œ Overview

Intelligent Route Planner Using Graph Algorithms is a full-stack route optimization platform that leverages real-world road network data from OpenStreetMap to calculate efficient travel routes between locations.

The system integrates advanced graph algorithms, geospatial processing, traffic estimation, fuel cost prediction, and interactive route visualization to provide optimized navigation and route analytics.


✨ Features

πŸ—Ί Route Planning

  • Real-world OpenStreetMap road network
  • Source and destination search
  • Route optimization
  • Interactive route visualization

⚑ Graph Algorithms

  • Dijkstra's Algorithm
  • A* Search Algorithm
  • Breadth First Search (BFS)
  • Depth First Search (DFS)
  • Yen’s K-Shortest Path Algorithm

🚦 Traffic Analysis

  • Traffic-aware ETA prediction
  • Route congestion simulation
  • Alternative route exploration
  • Route efficiency analysis

β›½ Fuel Cost Estimation

  • Distance-based fuel calculation
  • Travel expense prediction
  • Fuel cost estimation in INR

πŸ“Š Route Analytics

  • Total distance
  • Estimated travel time
  • Traffic-adjusted ETA
  • Fuel cost analysis
  • Path node statistics

πŸ“œ Search History

  • Recent route searches
  • Local storage persistence
  • Quick route lookup

🌐 REST API

  • FastAPI backend
  • Swagger documentation
  • JSON responses
  • Health monitoring endpoint

πŸ— System Architecture

Architecture


πŸ“Έ Project Screenshots

Homepage

Homepage

Route Result

Route Result

Route History

Route History

Interactive Route Map

Route Map

Swagger API Documentation

Swagger Docs


πŸ›  Tech Stack

Frontend

  • React.js
  • Vite
  • Tailwind CSS
  • Axios
  • Leaflet

Backend

  • FastAPI
  • Uvicorn

Geospatial Processing

  • OpenStreetMap
  • OSMnx
  • NetworkX
  • Geopy

Algorithms

  • Dijkstra Algorithm
  • A* Search Algorithm
  • BFS
  • DFS
  • Yen’s Algorithm

Languages

  • Python
  • JavaScript

πŸ“‚ Project Structure

Intelligent-Route-Planner-Using-Graph-Algorithms
β”‚
β”œβ”€β”€ api/
β”œβ”€β”€ frontend/
β”œβ”€β”€ src/
β”œβ”€β”€ data/
β”œβ”€β”€ outputs/
β”‚
β”œβ”€β”€ images/
β”‚
β”œβ”€β”€ project-assets/
β”‚   β”œβ”€β”€ architecture/
β”‚   └── screenshots/
β”‚
β”œβ”€β”€ requirements.txt
β”œβ”€β”€ README.md
β”œβ”€β”€ LICENSE
β”œβ”€β”€ render.yaml
└── .gitignore

πŸš€ Installation

Clone Repository

git clone https://github.com/VaishnavaDevi-R/Intelligent-Route-Planner-Using-Graph-Algorithms.git

cd Intelligent-Route-Planner-Using-Graph-Algorithms

Backend Setup

python -m venv venv

venv\Scripts\activate

pip install -r requirements.txt

Run Backend

uvicorn api.app:app --reload

Backend URL:

http://127.0.0.1:8000

Swagger Documentation:

http://127.0.0.1:8000/docs

Frontend Setup

cd frontend

npm install

npm run dev

Frontend URL:

http://localhost:5173

πŸ“‘ API Endpoint

Route Calculation

GET /route

Example Request

GET /route?source=Meenakshi Amman Temple, Madurai&destination=Madurai Junction Railway Station

Sample Response

{
  "source": "Meenakshi Amman Temple, Madurai",
  "destination": "Madurai Junction Railway Station",
  "distance_km": 1.7,
  "eta_minutes": 3.41,
  "traffic_eta_minutes": 4.43,
  "fuel_cost": 4.34,
  "path_nodes": 24
}

🎯 Future Enhancements

  • Live Traffic API Integration
  • Multi-City Support
  • Route Sharing
  • Voice Navigation
  • Mobile Application
  • AI-Based Route Prediction
  • User Authentication
  • Saved Routes

πŸ“š Learning Outcomes

  • Graph Theory Fundamentals
  • Route Optimization Techniques
  • Geospatial Data Processing
  • OpenStreetMap Integration
  • FastAPI Backend Development
  • React Frontend Development
  • REST API Design
  • Full Stack Development

πŸ‘©β€πŸ’» Author

Vaishnava Devi


⭐ Support

If you found this project useful:

⭐ Star the repository

🍴 Fork the repository

πŸ“’ Share the project


πŸ“„ License

This project is licensed under the MIT License.


πŸš€ Building Smarter Navigation Systems with Graph Algorithms

About

A realistic route optimization system built using Graph Algorithms, Dijkstra, A*, BFS, DFS, Priority Queues, and Traffic-Aware Routing. Supports shortest path, fastest route, toll avoidance, eco-routing, and alternative route generation with interactive visualization.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors