Safe Route Navigator is a smart, secure pathfinding application that uses real-time crime data and safety parameters to determine the safest routes between two locations. Built with React and Mapbox, this project aims to enhance personal safety while navigating cities, especially during night-time or in high-risk zones.
- π Safety-First Routing: Calculates routes based on crime-rate data instead of just distance or time.
- π Multiple Route Options: Presents multiple alternatives, highlighting safer paths.
- π¨ Emergency Corner: Instantly send emergency alerts via EmailJS to pre-listed contacts.
- π± Mobile Friendly: Optimized for both desktop and mobile views.
- π Real-Time Data Integration: Uses public crime APIs or datasets to feed location-based statistics.
- Frontend: React.js, Tailwind CSS
- Maps & Navigation: Mapbox GL JS, Mapbox Directions API
- Email Service: EmailJS (for emergency alert feature)
- Geospatial Computation: Turf.js
- Data Sources: Public crime datasets / simulated JSON for development
git clone https://github.com/your-username/safe-route-navigator.git
cd safe-route-navigator
npm installnpm run devsrc/
β
βββ MapComponent.jsx
βββ MapView.jsx
βββ EmergencyCorner.jsx
βββ RouteSelector.jsx
βββ main.jsx
βββ Login.jsx
βββ SignUp.jsx
βββ assets/
β βββ logo.png
β
βββ App.jsx
- User enters source and destination coordinates.
- App fetches multiple routes using Mapbox Directions API.
- Each route is scored based on proximity to crime zones.
- Routes are ranked and displayed, with the safest one highlighted.
- Optional emergency alert can be triggered via EmergencyCorner.
- Real-time location tracking
- Email alert integration
- User-contributed reports