Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,75 +1,14 @@
|
|
| 1 |
-
# AP Smart Route Finder β Gradio Edition
|
| 2 |
-
|
| 3 |
-
A clean, single-file route planner for Andhra Pradesh cities with:
|
| 4 |
-
- β
Dropdown city selector (70+ AP cities)
|
| 5 |
-
- β
All paths found and listed (sorted shortest to longest)
|
| 6 |
-
- β
Shortest path highlighted on real OpenStreetMap
|
| 7 |
-
- β
Click city markers on map for Malls, Restaurants, Petrol Bunks, Landmarks
|
| 8 |
-
- β
Stats bar (total km, number of paths, hops)
|
| 9 |
-
- β
Simple Gradio UI β no Streamlit needed
|
| 10 |
-
|
| 11 |
-
---
|
| 12 |
-
|
| 13 |
-
## π Setup (3 steps)
|
| 14 |
-
|
| 15 |
-
```bash
|
| 16 |
-
# 1. Install dependencies
|
| 17 |
-
pip install gradio networkx numpy folium
|
| 18 |
-
|
| 19 |
-
# 2. Run
|
| 20 |
-
python app_gradio.py
|
| 21 |
-
|
| 22 |
-
# 3. Open browser
|
| 23 |
-
# β http://localhost:7860
|
| 24 |
-
```
|
| 25 |
-
|
| 26 |
-
---
|
| 27 |
-
|
| 28 |
-
## How to Use
|
| 29 |
-
|
| 30 |
-
1. **Select Starting City** from the dropdown (e.g. Vijayawada)
|
| 31 |
-
2. **Select Destination City** (e.g. Visakhapatnam)
|
| 32 |
-
3. Click **π Find Best Route**
|
| 33 |
-
|
| 34 |
-
### What you'll see:
|
| 35 |
-
| Section | Description |
|
| 36 |
-
|---|---|
|
| 37 |
-
| **Stats Bar** | Total km, paths found, hops, nearby cities |
|
| 38 |
-
| **Map** | Real OSM map β orange line = shortest, blue dashes = alternates |
|
| 39 |
-
| **Route Details** | Step-by-step breakdown with distances |
|
| 40 |
-
| **All Paths** | Every route found, sorted by distance |
|
| 41 |
-
| **POI Panels** | Petrol bunks, malls, restaurants, landmarks for source & destination |
|
| 42 |
-
|
| 43 |
-
### Map Popups
|
| 44 |
-
Click any π marker on the map to see:
|
| 45 |
-
- β½ Petrol Bunks near that city
|
| 46 |
-
- π¬ Malls & Shopping
|
| 47 |
-
- π½οΈ Restaurants
|
| 48 |
-
- ποΈ Landmarks
|
| 49 |
-
|
| 50 |
---
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
---
|
| 60 |
|
| 61 |
-
#
|
| 62 |
-
The app uses two complementary algorithms internally and picks the best confirmed result:
|
| 63 |
-
- **Dijkstra** β guaranteed optimal, O(E + V log V)
|
| 64 |
-
- **Grover Amplitude Amplification** β quantum-inspired search, O(βN)
|
| 65 |
-
|
| 66 |
-
The result shown is always the shortest confirmed path β no algorithm labels shown to the user.
|
| 67 |
|
| 68 |
-
|
| 69 |
-
70+ cities including all district HQs, major towns across:
|
| 70 |
-
- North Andhra: Visakhapatnam, Srikakulam, Vizianagaram
|
| 71 |
-
- Godavari: Rajahmundry, Kakinada, Eluru, Bhimavaram
|
| 72 |
-
- Krishna: Vijayawada, Machilipatnam, Gudivada
|
| 73 |
-
- Guntur: Guntur, Tenali, Narasaraopet
|
| 74 |
-
- South Coastal: Nellore, Ongole, Kavali
|
| 75 |
-
- Rayalaseema: Kurnool, Kadapa, Anantapur, Chittoor, Tirupati
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: RouteNavigator
|
| 3 |
+
emoji: π
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: green
|
| 6 |
+
sdk: gradio
|
| 7 |
+
sdk_version: "4.0.0"
|
| 8 |
+
app_file: app.py
|
| 9 |
+
pinned: false
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# RouteNavigator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
+
AI-powered routing and path finding application using Gradio.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|