Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/trivisonno/electionmap-nov2022
Real-time voter turnout Leaflet map for the Nov. 2022 election, Cuyahoga County, Ohio
https://github.com/trivisonno/electionmap-nov2022
Last synced: 9 days ago
JSON representation
Real-time voter turnout Leaflet map for the Nov. 2022 election, Cuyahoga County, Ohio
- Host: GitHub
- URL: https://github.com/trivisonno/electionmap-nov2022
- Owner: trivisonno
- Created: 2022-11-08T19:45:51.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-11-08T19:45:55.000Z (about 2 years ago)
- Last Synced: 2025-01-09T07:25:26.010Z (17 days ago)
- Language: JavaScript
- Size: 515 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This election map app runs virtually in AWS Lambda, written in Python and deployed using Zappa. The map runs on LeafletJS.
You'll need an S3 bucket to host two files (nov2022_precincts.geojson and 2014wardboundaries.geojson) and the turnout JSON file that the python app generates every minute. Mine is 'cuyahogavoters', so you'll need to change this to the name of your S3 bucket. You'll also need to allow for bucket read (make your bucket files public).
The zappa_settings.json file includes an expression to run the python function every minute. Every election you'll need to update the CSV file URL on L33 of app.py.
This repo doesn't include everything I use for this project, but is the bare minimum to get you started at least with the real-time Leaflet map.