Logo Lanfrica

Cadeau3/Safe-Route-Kenya

Domain:

mobility

Record type:

software
Creator:
Cad
Host:
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 …