Logo Lanfrica

Evan620/kenya-transport-dashboard

Domain:

mobilitygeospatial

Record type:

software
Creator:
Eva
Host:
πŸ‡°πŸ‡ͺ 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