# uzavierky: road closures and traffic restrictions in Senec

30 closures and restrictions on the town's streets and roads, one record each, with the streets, the dates
and the detour where the source gives one. Built by `scripts/build_uzavierky.py` (latest run 2026-11-30) from three
sources:

| `source` | Records | What it is |
| --- | --- | --- |
| `unms` | 10 | Notices of Okresný úrad Senec in ÚNMS SR's register under Regulation (EC) 2679/98: roads II and III. 30 notices name Senec or a road through the town (61, 62, 130, 131, 503, 1040, 1043, 1044, 1049, 1062, 1064, 1068); 30 of them are decided in `sources/uzavierky/rucne.csv`, and those in the town are read from their PDF forms. |
| `zjazdnost` | 3 | SSC's live restrictions on zjazdnost.sk (80 items listed now) whose map point lies inside the municipal boundary. Kept append-only: an item that leaves the list stays with `on_page` = false. |
| `mesto` | 17 | The town's own posts on senec.sk, read by hand into `sources/uzavierky/rucne.csv`: streets, dates, kind and a detour quoted from the post. |

24 streets have at least one record.

- **Not every closure.** OÚ Bratislava, which closes I/61, I/62 and the D1, files no notices in the register,
  and the town files none for its local streets: those come only from zjazdnost.sk (current items) and the
  town's posts. Closures of the D1 motorway are left out unless a zjazdnost.sk point lies in the town.
- **One closure, one record.** When the town's posts describe a closure that has a notice, the posts are in
  the notice's `see_also`; `same_as` links records of different sources that describe the same closure.
- **Dates.** `starts` and `ends` are dates (`2026-10-12`) or local times (`2026-06-26T17:30`) as the source gives
  them; `period` keeps the source's wording. A record in the past stays.
- **House numbers** are removed from the texts kept (0 removed in this run).
- `street_ids` join to `data/ulice.json`. For zjazdnost.sk the streets are the named OSM streets within 40 m of
  the item's points in the town, or the nearest one within 100 m; for the other sources they are set by hand.

## Awaiting a decision

Candidates that `sources/uzavierky/rucne.csv` does not decide yet, left out of the dataset:

None.

## Sources

- ÚNMS SR, „Prekážky a obmedzenia na ceste“: <https://www.normoff.gov.sk/stranka/58/prekazky-a-obmedzenia-na-ceste/>
  and the PDF form of each notice (`source_url`). No licence stated; robots.txt disallows only /admin/.
- zjazdnost.sk, SSC: <https://www.zjazdnost.sk/situation/list.html>, the map page for the points and each item's
  page (`source_url`). Its terms (<https://www.zjazdnost.sk/share/copyright.html>): the data are public and may
  be shared and distributed with www.zjazdnost.sk, run by Slovenská správa ciest, named as the source.
- Mesto Senec, its posts on senec.sk (`source_url`), as harvested into `data/senec.db`.

Every response is kept in `data/atlas/raw/uzavierky/` with a log of every fetch in `manifest.json`.

## Fields

| Field | Type | Meaning |
| --- | --- | --- |
| `record_id` | string | `unms-<the PDF's id>`, `zjazdnost-<guid>` or `mesto-<year>-<post slug>`; stable. |
| `source` | string | `unms`, `zjazdnost` or `mesto`. |
| `title` | string | The notice's reason, the item's location, or the post's title. |
| `reason` | string or null | „Dôvod oznámenia“ of a notice; the kind of event of an item („Práce na ceste.“). |
| `place` | string or null | „Miesto uzávierky“ of a notice; the item's location. |
| `closure` | string or null | „Druh uzávierky“ of a notice; the item's description; the kind a post gives. |
| `closure_kind` | string | The kind in six values, read from `closure` by `data/taxonomy.json` (`uzavierky_closure_kind`): `uplna` (úplná uzávierka), `ciastocna` (čiastočná), `parkovisko` (uzavreté parkovisko), `obmedzenie` (obmedzenie alebo zmena dopravy), `uzavera` (uzávierka, rozsah neuvedený), `ina` (iné, or no `closure`). Since 4 Nov 2026. |
| `road`, `km_from`, `km_to` | string, number | The road (`II/503`) and its cumulative chainage, when the source gives them. |
| `length_km` | number or null | „Dĺžka uzávierky“ of a notice. |
| `streets`, `street_ids` | list | The town's streets the closure is on. |
| `starts`, `ends` | date or datetime | The closure's period; null when the source gives none. |
| `period` | string or null | The period as the source prints it. |
| `detour` | string or null | „Popis obchádzky“ of a notice, or the detour a post gives, quoted. |
| `notified` | date or null | The notice's date in the register, or the post's date. |
| `changed`, `status` | date, string | zjazdnost.sk's „Zmenená“ and „Stav“. |
| `lat`, `lon` | number or null | The first point of a zjazdnost.sk item inside the town. |
| `on_page` | boolean or null | Whether the latest fetch still listed it (null for the town's posts). |
| `first_seen`, `last_seen` | date | The first and latest run that found it. |
| `see_also` | list | More pages about the same closure (the town's posts on a notice). |
| `same_as` | string or null | The record of another source that describes the same closure. |
| `note` | string or null | Why the record is placed where it is (from `rucne.csv`). |
| `source_url`, `source_page`, `licence` | string | The document, the list it comes from, and its terms. |
| `last_update` | date | When the record last changed. |

## 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.
