π°πͺ Kenya Multi-City Transport, Traffic & Urban Intelligence Dashboard: Interactive transport, traffic, and urban analytics for Kenyan cities using Streamlit, Plotly & Folium.
# Kenya Multi-City Transport, Traffic & Urban Intelligence Dashboard
This project is a Streamlit-based web application analysing and visualising public transport, traffic, weather, and urban statistics across Nairobi, Mombasa, Kisumu, Nakuru, and Eldoret.
## Features
- Interactive city maps (Matatu routes, bus stops, roads, POIs, weather)
- Matatu route analyzer & comparison
- Simulated traffic intelligence & heatmaps
- Urban development and population analytics
- Point-to-point route finder
- Weather impact analyzer
- Cross-city comparison dashboard
- Stunning animations & responsive, premium UI
## Getting Started
1. `pip install -r requirements.txt`
2. `streamlit run app.py`
**All data sources are free, no API keys required.**
## File Structure
```
~/projects/kenya-transport-intelligence/
βββ app.py
βββ requirements.txt
βββ README.md
βββ .env.example
βββ runtime.txt
βββ data/
β βββ cities.json
β βββ cache/
β βββ exports/
βββ utils/
β βββ api_client.py
β βββ data_processor.py
β βββ map_generator.py
β βββ chart_builder.py
β βββ route_finder.py
βββ assets/
β βββ styles.css
β βββ animations.js
β βββ images/
β βββ fonts/
βββ pages/
β βββ 01_πΊοΈ_City_Explorer.py
β βββ 02_π_Route_Analyzer.py
β βββ 03_π¦_Traffic_Intel.py
β βββ 04_π_Statistics.py
β βββ 05_π_Route_Finder.py
β βββ 06_π€οΈ_Weather_Impact.py
β βββ 07_ποΈ_City_Compare.py
```
## Deployment
### Locally
```bash
cd ~/projects/kenya-transport-intelligence/
pip install -r requirements.txt
streamlit run app.py
```
### Streamlit Cloud/Vercel
- Add `runtime.txt` with Python version
- Add `secrets.toml` template if needed
- Optimize for cloud hosting (RAM, cache, media)
- Add deployment instructions to README
## Documentation
- Screenshots for each section
- API usage/rate limits
- Troubleshooting/FAQ
- Roadmap & questions
- Contributing guidelines
- MIT License
---
MIT License