How kendelja/urban-insights-dashboard works
Urban Insights Dashboard is a Toronto neighbourhood safety-and-affordability map. The intended user workflow is to explore neighbourhoods, switch between crime and rent overlays, and inspect metrics in map tooltips. The sampled runtime shows the map fetching neighbourhood JSON through a FastAPI endpoint; a separate CSV processor computes crime rates, while README-described cleaning, normalization, and boundary merging are not fully evidenced as connected runtime stages. Rent figures appear embedded in the map component. Unsampled processing and overlay details are represented only where documented.
Main entry points: baseMap.jsx Interactive map · neighbourhoods.py Neighbourhood endpoint · main.jsx Frontend entry · processData.py Crime rate calculation
Components 13
Map experience
- Frontend entry
frontend/src/main.jsx - Starter app
frontend/src/App.jsx - Interactive map
frontend/src/map/baseMap.jsx - Neighbourhood fetch
frontend/src/api/getData.js
API delivery
- FastAPI app
main.py - Neighbourhood endpoint
routers/neighbourhoods.py - Data service
services/neighbourhood_service.py
Data analytics
- Crime rate calculation
services/processData.py
Data assets
- Crime input data
data/torontoCrimeData.csv - Neighbourhood JSON
data/torontoData.json - GeoJSON boundaries
data/toronto_crs84_clean.geojson
Other components
- Map user
- Basemap tiles
Connections 11
- Frontend entry → Interactive map: renders
frontend/src/main.jsx - Frontend entry → Starter app: imports
frontend/src/main.jsx - Map user → Interactive map: explores overlays
README.md - Interactive map → Neighbourhood fetch: requests data
frontend/src/map/baseMap.jsx - Neighbourhood fetch → Neighbourhood endpoint: fetches endpoint
frontend/src/api/getData.js - Interactive map → Basemap tiles: loads tiles
frontend/src/map/baseMap.jsx - FastAPI app → Neighbourhood endpoint: registers router
main.py - Neighbourhood endpoint → Data service: calls
routers/neighbourhoods.py - Data service → Neighbourhood JSON: reads JSON
services/neighbourhood_service.py - Crime rate calculation → Crime input data: reads rows
services/processData.py - Crime rate calculation → GeoJSON boundaries: merges with boundaries
README.md