Skip to content

Dextron04/SafeWalk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 

Repository files navigation

SafeWalk 🚶‍♀️🛡️

SafeWalk Hero

🚦 Your Real-Time Pedestrian Safety Navigator 🚦
Find the safest and shortest walking routes, avoid danger zones, and walk with confidence!


❓ Why SafeWalk?

In 2024, over 3,300+ pedestrian deaths were reported in the U.S. 🚨 Poor lighting, isolated routes, and unreported crime zones threaten daily commuters.
> SafeWalk is here to change that — with live data, AI, and community alerts.


✨ Features at a Glance

🚦 Smart Route Suggestion
Find the shortest & safest path, powered by Google Maps & live 911 alerts
🗺️ Interactive Map
See crime hotspots and live alerts on a beautiful map
📰 Live Safety Feed
Real-time 911 calls, filterable by time, agency, and type
🤖 AI Route Assistant
Get personalized safety tips and route comparisons
📊 Crime Trends
Visualize 911 call stats and safety trends in your area
🚨 Emergency Help Center
Panic button, safety tips, and instant support
👥 Crowd-Sourced Alerts
Users can report unsafe activity to help others

🚀 Quickstart

# 1. Clone & Install
cd safewalk
npm install

# 2. Set up your Google Maps API key
# (in a .env file)
GOOGLE_API_KEY=your_google_api_key

# 3. Start the backend
node server.js

# 4. Start the frontend
npm run dev

# 5. Open the app
# Visit http://localhost:5173

🧠 How It Works

Backend: Node.js + Express

  • Fetches walking routes from Google Directions API
  • Aggregates live 911 call data (San Francisco Open Data)
  • Groups alerts by location to identify hotspots
  • Exposes endpoints for directions, 911 calls, and safety analysis

Frontend: React + Vite + Tailwind

  • Interactive map (Leaflet) for routes & hotspots
  • Pages for route planning, live alerts, stats, and help
  • AI Route Assistant for personalized safety guidance
  • Real-time data updates and a beautiful, responsive UI

🛠️ Tech Stack


🏆 Why You'll Love SafeWalk

  • Live, actionable safety data — not just static maps!
  • AI-powered chat for route and safety questions
  • Mobile-friendly and beautiful on any device
  • Community-driven: help others by reporting alerts
  • Open source — contribute and make your city safer!

📸 Screenshots

SafeWalk Home - Welcome and Features
Welcome Page: Engaging intro, mission, and feature highlights

SafeWalk Live Safety Alerts
Live Safety Alerts: Real-time 911 calls, filterable and grouped by priority

SafeWalk Smart Routes Map
Smart Routes: Map with safety alerts and route planning


🤝 Contributing

Pull requests and suggestions are welcome! For major changes, please open an issue first.


📜 License

MIT


🚦 Walk smart. Walk safe. Walk with SafeWalk! 🚦

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages