Originally a fork of Oklahoma Cooling Centers, now it's a standalone repo that aims to aggregate all public cooling centers in the United States.
Shoutout to Alex Ayon for the original local implementation and general idea! 🎉
This is just for the map portion. The backend is still in development.
# create virtual environment
python3 -m venv .venv
# activate virtual environment
source .venv/bin/activate
# install dependencies
python3 -m pip install -r requirements.txt
# run script
./make_map.py
# open map in browser
open ./docs/index.html
# deactivate virtual environment
deactivate- ImageMagick is a problem child for
pdftotreeon macOS. Run the following to usegen_csv.py:
# install imagemagick v6
brew uninstall imagemagick
brew install imagemagick@6
brew unlink imagemagick
brew link imagemagick@6 --force
# ~/.bashrc
export BREW_PREFIX=$(brew --prefix)
export MAGICK_HOME="$BREW_PREFIX/opt/imagemagick@6"- Run
./bin/gen_csv.pyto generate./csv/cooling_centers_2024.csv
- Open a free Google Cloud Platform account and setup the Geocoding API
- Fill out
.envwith your API key - Run
./bin/geocode.pyto appendlatitude_longitudeand prependcity_countyto a CSV file- Needs to be in the
csvdirectory - Named with state abbreviation and year (e.g.,
ok_cooling_centers_2024.csv) - Can be set in
.envasCSV_FILE
- Needs to be in the
See TODO.md for more details.