Safe-Roads Map is the mapping & navigation module of the Safe-Roads initiative—built to support safer travel and better infrastructure decisions through pothole awareness, real-time mapping, and intelligent routing.
Live Website: https://map-tau-taupe.vercel.app/
- Visualizes pothole hazards on an interactive map
- Helps users plan routes and navigate with step instructions
- Provides proximity voice alerts for detected potholes
- Supports location tracking and mobile-friendly navigation behavior
- Integrates with Supabase for pothole data + realtime updates (optional)
- Interactive map UI (Leaflet + React)
- Pothole layer toggle + pothole detail preview
- Route planning with multiple route options
- Avoid potholes routing option
- Live location tracking (GPS + fallback to IP geolocation)
- Navigation mode with step instructions
- Voice alerts when hazards are nearby
- Isoline (reachability) overlay (time-based area)
- Realtime pothole updates (Supabase channel)
- Frontend: React 19, TypeScript, Vite
- Styling/UI: Tailwind CSS, Motion, Lucide
- Maps: Leaflet, react-leaflet
- Database (optional): Supabase (Postgres + Realtime)
- Geospatial APIs: Geoapify (geocoding, routing, isolines, route planning)
- Node.js 18+ (recommended: Node 20+)
- npm (or pnpm/yarn)
npm installcp .env.example .envRequired
VITE_GEOAPIFY_API_KEY
Optional
VITE_SUPABASE_URLVITE_SUPABASE_ANON_KEY
npm run devOpen: http://localhost:3000
This project is licensed under the MIT License — see the LICENSE file for details.