chihacknight / chicago-elections-archive

Explore precinct-level results from historical Chicago elections
https://chicago-election-archive.netlify.app
MIT License
0 stars 0 forks source link

Serving geospatial data for the frontend #5

Closed nofurtherinformation closed 1 month ago

nofurtherinformation commented 2 months ago

Currently, the geospatial map data is deployed on a tile server hosted on linode. This is a good and scaleable solution, especially if this project were to scale up to national election archives, for instance.

However, there are some simpler and more maintainable solutions that could simplify data workflows:

Options include

My instinct here is to start with simple geojsons. From a quick first look, Ward Precincts can be compressed to around 500kb with reasonable simplification and gzip. Geometric simplification is appropriate here because this is primarily for visualization, not geospatial data science or geoprocessing, and we can point back to the source files for analysts who need the real deal.

derekeder commented 1 month ago

agreed, lets start with geojson and see if that meets our needs.

nofurtherinformation commented 1 month ago

I'll take a first pass at this tomorrow and plan to use commodity storage (likely Cloudflare R2 for simplicity)

nofurtherinformation commented 1 month ago

Closed by #9