bij1-afdelingen/README.md

51 lines
1.6 KiB
Markdown
Raw Permalink Normal View History

2021-12-20 23:12:10 +00:00
# BIJ1 Afdelingen
2022-06-15 15:18:10 +00:00
Data and maps on BIJ1's [local branches](https://gitlab.com/bij1/bij1-afdelingen/-/blob/main/source/afdelingen.csv) in the Netherlands, and their [various areas](https://gitlab.com/bij1/bij1-afdelingen/-/blob/main/source/bij1-gebieden.csv).
2021-12-20 23:12:10 +00:00
2021-12-20 23:18:48 +00:00
## goals
- [x] Formalize data on BIJ1 branches and their areas:
- municipality
- BIJ1 branch
2021-12-29 16:51:09 +00:00
- [ ] incorporate Caribbean municipalities
2021-12-26 23:02:41 +00:00
- [x] incorporate branches in founding
2021-12-21 11:43:22 +00:00
- [ ] add branch status (in founding, official, inactive)
2021-12-20 23:18:48 +00:00
- [ ] Figure out the above given a member's address
2021-12-26 23:02:41 +00:00
- Make SVGs of the above areas, with tooltips:
- [x] branch areas
2022-01-06 16:18:59 +00:00
- [x] ondersteuningsverklaringen
2021-12-26 23:39:32 +00:00
- [x] Facilitate automatically updating the above,
2021-12-20 23:18:48 +00:00
including when source data changes.
2021-12-20 23:12:10 +00:00
## caveats
- Our best data mapping addresses to municipality
is based on a 2020 dataset consisting of postal code
(in pc6 format, e.g. 1234AB) plus number (huisnummer).
Such a mapping is not fully deterministic however,
as this would require also the extensions (e.g. 1A),
data on which seems nonexistant.
- Having used that 2020 dataset, we had to guess
a present municipality for the former municipality of Haaren,
which in 2021 was split into Boxtel / Oisterwijk / Vught / Tilburg.
## requirements
2021-12-20 23:18:48 +00:00
- a Unix environment (Linux, Mac, WSL, ...)
2021-12-20 23:12:10 +00:00
- [Make](https://www.gnu.org/software/make/)
- [SQLite 3](https://sqlite.org/index.html)
2021-12-24 16:40:22 +00:00
- `dos2unix`
2022-01-06 16:39:58 +00:00
- `jq`
2022-01-06 16:18:59 +00:00
- [NodeJS](https://nodejs.org/en/)
- package [csv2json](https://www.npmjs.com/package/csv2json)
2021-12-26 23:39:32 +00:00
## usage
```bash
make run_all
```
2022-01-04 16:28:07 +00:00
## branch area maps
![branch areas](./generated/gemeenten-afdelingen.svg)