Skip to content

parker84/toronto-crime-dashboard

Repository files navigation

toronto-crime-dashboard

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.

image

Running the app locally

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

Getting the Data

  1. The crime data will automatically be scraped by launching the app.
  2. 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.
  3. The Neighbourhood profiles data is extracted from here: https://open.toronto.ca/dataset/neighbourhood-profiles/

About

Explore Crime in Toronto by Neighbourhood.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages