# ucast-volby: turnout per vote and per precinct in Senec, 2022–2026

127 records: for each of the 7 votes held in Senec since the 2022 municipal election, one record per
precinct (120 in all) and one for the whole town. Turnout only: who could vote, how many voted and the
share. No result of any party, candidate or referendum answer is in it. Built by `scripts/build_ucast_volby.py`
from `data/volby-okrsky.json`, which `scripts/build_volby_okrsky.py` reads from the Statistical Office's results
archives on volby.statistics.sk.

| `election_id` | Vote | Polling day | Registered | Voted | Turnout |
| --- | --- | --- | --- | --- | --- |
| OSO2022 | Voľby do orgánov samosprávy obcí 2022 | 29. 10. 2022 | 15 714 | 5 756 | 36,63 % |
| REF2023 | Referendum 2023 | 21. 1. 2023 | 15 301 | 3 151 | 20,59 % |
| NRSR2023 | Voľby do Národnej rady SR 2023 | 30. 9. 2023 | 15 118 | 10 958 | 72,48 % |
| PREZ2024_kolo1 | Voľba prezidenta SR 2024, 1. kolo | 23. 3. 2024 | 15 462 | 9 064 | 58,62 % |
| PREZ2024_kolo2 | Voľba prezidenta SR 2024, 2. kolo | 6. 4. 2024 | 15 430 | 10 425 | 67,56 % |
| EP2024 | Voľby do Európskeho parlamentu 2024 | 8. 6. 2024 | 15 380 | 5 901 | 38,37 % |
| REF2026 | Referendum 2026 | 4. 7. 2026 | 15 661 | 3 120 | 19,92 % |

- One record per (`election_id`, `okrsok`) with `level` `okrsok`, as `volby-okrsky` has it; one more per vote
  with `level` `mesto` and `okrsok` null, for the whole town.
- A precinct's `turnout_pct` is the archive's own figure, to two decimals, not recomputed (the REF 2023 archive's
  notes say its percentages are cut, not rounded).
- The town's `registered` and `voted` sum every precinct the archive lists under Senec, and its `turnout_pct` is
  computed from the two sums, rounded half up to two decimals. Two archives have no row for the town (OSO 2022,
  REF 2023). For EP 2024 the archive's own town row says 38,36 %, cut where this dataset rounds to 38,37 %; the
  other four agree with it.
- REF 2023 lists an 18th precinct under Senec: a special precinct of the special voting method of Act No.
  395/2022 Coll., with 7 registered voters, all of whom voted. It is kept as a record of its own
  (`precinct_type` `special`, `okrsky_year` null) and counted in the town's total (15 301 registered, 3 151 voted;
  without it 20,56 %). `volby-okrsky-README.md` says more.
- The municipal election of 24 October 2026 is not here: its turnout per precinct is in `okrsky` (`year` 2026),
  from the archive `OSO2026_SK_csv.zip`.

## Joining to the precincts

`(okrsky_year, okrsok)` is the key of `data/okrsky.json` (`year`, `okrsok`): the precinct's streets, polling
station and lines. `okrsky_match` says how good that join is: `decision` where the town's precinct decision for
the vote is the one behind `okrsky.json` (OSO 2022, REF 2026), `nearest` where the vote's own decision is not
published and the 2022 scheme is the nearest one held (REF 2023, NRSR 2023, PREZ 2024, EP 2024). For these votes
precinct 5 had about 800 voters where the 2022 roll had 630, so its streets probably differ from the 2022 list
(`volby-okrsky-README.md`, „Joining to the precincts“). In national votes a voter with a voting certificate is
added to the roll of the precinct where they vote, so a precinct's `registered` and `turnout_pct` include them.

## Fields

| Field | Type | Meaning |
| --- | --- | --- |
| `record_id` | string | `<election_id in lower case>-<okrsok>` for a precinct (the same id as in `volby-okrsky`), `<election_id in lower case>-mesto` for the town. Stable across rebuilds. |
| `election_id` | string | The archive's identifier (`OSO2022`, `REF2023`, `NRSR2023`, `PREZ2024_kolo1`, `PREZ2024_kolo2`, `EP2024`, `REF2026`). |
| `election_kind` | string | `oso`, `ref`, `nrsr`, `prez`, `ep`. |
| `election_name` | string | The vote's name, as in `volby-okrsky`. |
| `polling_date` | date | The polling day. |
| `level` | string | `okrsok` (one precinct) or `mesto` (the whole town). |
| `obec_code` | string | 508217, Senec. |
| `okrsok` | integer or null | Precinct number, 1–17 (18 for the special precinct of REF 2023); null for the town. |
| `okrsky_year` | integer or null | The precinct scheme of `data/okrsky.json` the number refers to; null for the special precinct and the town. |
| `okrsky_match` | string or null | `decision` or `nearest`, see „Joining to the precincts“; null for the special precinct and the town. |
| `precinct_type` | string or null | `regular` or `special`; null for the town. |
| `registered` | integer | Voters on the roll („zapísaní voliči“); for the town, the sum of its precincts. |
| `voted` | integer | Voters who took part („zúčastnení voliči“); for the town, the sum of its precincts. |
| `turnout_pct` | number | „Účasť voličov v %“: for a precinct as the archive publishes it; for the town computed from `voted` and `registered`. |
| `source_url` | string | The results archive (zip) the figures come from. |
| `source_page` | string | The vote's „Súbory na stiahnutie“ page that links the archive. |
| `licence` | string | ŠÚ SR results data; the download pages state no licence text, attribute to Štatistický úrad SR. |
| `last_update` | date | The day the archive was read (`last_update` of the `volby-okrsky` records); the archives are final results. |

## Checks

- Every vote has the regular precincts 1 to 17; on each record `voted` is at most `registered`.
- Fields are copied from `volby-okrsky` by name from a fixed list; a field the build doesn't know stops it.

## License

Published by Som Senec without a licence of its own (Podmienky zdroja): https://somsenec.sk/data#podmienky-zdroja. The records are an extract from a source that states no licence; the README above names it and each record links to it. Credit that source and "Som Senec, somsenec.sk", and keep to the source's terms.
