Explore Crime in Toronto by Neighbourhood.
The App: https://torcrime.streamlit.app/
With the Toronto Crime Dashboard you'll be able to see:
- 🦝 Crime in Your Neighbourhood: enter any neighbourhood in Toronto and see the Crime stats + breakdowns with interactive plots and trends over time.
- 🚔 Crime Near your Address: view all the crimes that occurred within a 10 minute walk of your address.
- 📊 Compare Neighbourhood Crime Rates: see the best / worst neighbourhoods for Crime and see how yours ranks.
virtualenv venv -p python3.11
source venv/bin/activate
pip install -r requirements.txt
export GOOGLE_API_KEY = "your-google-api-key"
streamlit run ./🦝Crime_in_Your_Neighbourhood.py
- The crime data will automatically be scraped by launching the app.
- The Toronto GeoJson / County data is already in the data folder, but if you want to see how this was obtained / cleaned you can see that here.
- The Neighbourhood profiles data is extracted from here: https://open.toronto.ca/dataset/neighbourhood-profiles/