Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

30 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# Interactive Shortest Path Web Application
This project implements an interactive web application that allows users to calculate the shortest path between two points on a map.
It uses **Python**, **FastAPI**, **OSMnx**, **NetworkX**, and **Folium/Leaflet** for routing and visualization.
Routes are stored in a **PostgreSQL** database running inside Docker.  
---
## Features
- Select start and destination coordinates interactively on the map.
- Compute shortest path and estimated travel times for:
  - Car
  - Bike
  - Walking
- Store routes in a PostgreSQL database.
- Visualize routes on an interactive map.
- Fully containerized with Docker for easy deployment.
---
## Technologies Used
- **Backend:** Python, FastAPI
- **Routing:** OSMnx, NetworkX
- **Frontend:** Leaflet/Folium, HTML, CSS, JavaScript
- **Database:** PostgreSQL (Docker container)
- **Containerization:** Docker & Docker Compose
---

## Project Structure
## Setup Instructions
### Prerequisites
- Docker & Docker Compose installed
- Python 3.10+
- (Optional) Virtual environment for development
---
### Running the Application
1. Clone the repository:
```bash
git clone https://github.com/slayer0101/PROJET-GRAPH
cd YourProjectRepo
Build and run the Docker containers:
docker-compose up --build
This starts:
PostgreSQL database on port 5433
FastAPI backend on port 8000
Open your browser and go to:
http://127.0.0.1:8000/map
Click on the map to select start and destination points.
The shortest route, distance, and estimated travel times are displayed.
All routes are automatically saved in the database.
Map data is downloaded dynamically via OSMnx. For large areas, this may take a few seconds.
During development, browser caching can prevent new JS/CSS updates. Use Ctrl+Shift+R or version your files with ?v=1.1.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages