SafeRoute Kenya is a Python-powered safety app that maps community-reported incidents, calculates dynamic risk levels with time-decay, and generates the safest walking routes using intelligent pathfinding.
🌍 Safe Route Kenya
A Flask-powered safety-rating app that helps users compare neighborhoods in Kenya using a simple, fast, lightweight backend.
---
📌 Overview
Safe Route Kenya is a Python + Flask web application that provides quick safety insights for Kenyan neighborhoods. Users can select a location and instantly view its risk score based on simulated crime, lighting, visibility, and public-presence data. The project demonstrates backend logic, API-style routing, JSON responses, and dynamic UI updates — all built to highlight problem-solving and real-world application design.
This project was created to strengthen my skills in Python, Flask, backend development, JSON handling, UI integration, and web deployment using GitHub Codespaces.
---
🚀 Live Demo
🔗
effective-space-spoon-66xgj…
(Hosted automatically via GitHub Codespaces port forwarding.)
---
📁 Repository
🔗
github.com
---
🛠 Tech Stack
Python 3
Flask
HTML, CSS, JavaScript
GitHub Codespaces (deployment)
JSON data model
---
📂 Project Structure
Safe-Route-Kenya/
│
├── app.py # Main Flask backend
├── templates/
│ └── index.html # UI layout and safety selection
├── static/
│ └── main.js # Frontend logic + API calls
└── README.md # Project documentation
---
🔍 Features
Select any Kenyan neighborhood
Dynamic safety scoring (low / medium / high risk)
JSON backend responses
Instant UI updates using JavaScript
Clean, mobile-friendly interface
Fully deployable via GitHub Codespaces
---
▶ How to Run Locally
1. Clone the repo:
git clone
github.com
2. Install Flask:
pip install flask
3. Run the app:
python app.py
4. Open in browser:
127.0.0.1
---
📘 Future Improvements
Real security data integration
Map visualization (Google Maps / Leaflet)
User-generated reports
Time-based risk predictions
---
© Li …