Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/afrith/election-map
Web app that displays an interactive 'slippy' map of South African election results
https://github.com/afrith/election-map
Last synced: 3 months ago
JSON representation
Web app that displays an interactive 'slippy' map of South African election results
- Host: GitHub
- URL: https://github.com/afrith/election-map
- Owner: afrith
- Created: 2014-05-04T22:19:46.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-09-05T21:48:23.000Z (over 8 years ago)
- Last Synced: 2024-04-12T07:03:03.230Z (10 months ago)
- Language: JavaScript
- Size: 281 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
election-map
============This is a web app that displays an interactive 'slippy' map of South African election results. It uses a slightly modified version of [TileStache](http://tilestache.org/) to serve vector geography tiles (representing municipalities, wards, etc.); [see this commit for the necessary modification](https://github.com/afrith/TileStache/commit/5ddd229c3c8d6fe783a758edfe6b5b89be4a78ff). The front-end uses [Leaflet](http://leafletjs.com/) plus Glenn Robertson's [GeoJSON Tile Layer](https://github.com/glenrobertson/leaflet-tilelayer-geojson) to display the map.
Live version and data
---------------------A live version of the app with results from the 2009 and 2014 elections can be seen at http://elections.adrianfrith.com/. The PostgreSQL databases containing the data can be downloaded from the following links: [2014](http://stuff.adrianfrith.com/election2014.sql.bz2), [2009](http://stuff.adrianfrith.com/election2009.sql.bz2). Those are 700MB files each, but if you just want the underlying data you can download:
* the election results by voting district: [2014](http://www.elections.org.za/content/Elections/Downloadable-results/2014-National-and-Provincial-Elections--Complete-results-data-(zipped-CSV)/), [2009](http://www.elections.org.za/content/uploadedfiles/2009%20NPE.zip)
* the link between voting districts and larger areas: [2014](http://stuff.adrianfrith.com/sa-admin-data-2014.tar.bz2), [2009](http://stuff.adrianfrith.com/sa-admin-data-2009.tar.bz2)
* the geography shapefiles: [2014](http://stuff.adrianfrith.com/sa-admin-boundaries-2014.tar.bz2), [2009](http://stuff.adrianfrith.com/sa-admin-boundaries-2009.tar.bz2)