# mestska-policia: the municipal police's yearly report (Senec)

The figures of „Informácia o stave priestupkov a pracovnej činnosti Mestskej polície Senec“, the report the
municipal police (Mestská polícia Senec) gives the town council each spring for the previous calendar year: staff,
complaints, interventions and use of force, offences and how they were dealt with, fines, the vehicle keepers'
administrative offences, cameras, the alarm-linked buildings, old vehicles, stray animals and prevention. Town
totals only. Built on 26 Oct 2026 by `scripts/fetch_mestska_policia.py`.

## Rebuild

```bash
python scripts/fetch_mestska_policia.py            # fetches the reports not yet cached, writes mestska-policia.json + .csv
python scripts/fetch_mestska_policia.py --refresh  # downloads every report again
python scripts/fetch_mestska_policia.py --out /tmp/m.json --csv /tmp/m.csv   # write elsewhere (regression)
```

The reports are found in `data/senec.db`: an agenda item with that title and its attachment of kind `material`.
A new year's report is picked up once `senec_council.py` has harvested its sitting. The PDFs are cached in
`raw/mestska-policia/` (not committed); 3 s between downloads. Needs `httpx`, `pdfplumber` and poppler's
`pdftotext`.

## Files

| File | Content |
|---|---|
| `mestska-policia.json` | `meta` (`generated`, `source`, `reports`: each report's year, PDF, agenda item and council sitting, `licence`) and `records`, one per year and figure |
| `mestska-policia.csv` | the same records, one row each, same columns. UTF-8, CRLF, empty = null |

## Source

| Year | Report (PDF) | Agenda item | Council sitting |
|---|---|---|---|
| 2024 | https://www.senec.sk/wp-content/uploads/2025/04/Bod3.pdf | https://www.senec.sk/session_item/3-informacia-o-stave-priestupkov-a-pracovnej-cinnosti-mestskej-policie-senec-za-obdobie-od-1-januara-2024-do-31-decembra-2024/ | 16 Apr 2025, item 3 |
| 2025 | https://www.senec.sk/wp-content/uploads/2026/04/Bod3-1.pdf | https://www.senec.sk/session_item/3-informacia-o-stave-priestupkov-a-pracovnej-cinnosti-mestskej-policie-senec-za-obdobie-od-1-januara-2025-do-31-decembra-2025/ | 6 May 2026, item 3 |

The reports for 2022 (sitting of 18 Apr 2023, item 12, uzn. 44/2023) and 2023 (sitting of 24 Apr 2024, uzn.
39/2024) exist: the minutes and resolutions in `pdfs/archiv/` name them. They were on the town's former website and
are not on senec.sk now, and the Internet Archive was offline when this was built (26 Oct 2026). The year 2023 has
the few figures the 2024 report gives for comparison (`basis` `comparison`).

Licence: the town's council materials on senec.sk, published under 211/2000 (§3 ods. 5), which lets anyone
redistribute them in their original content; senec.sk's terms say all rights reserved and reuse needs the town's
written permission; facts and official decisions are not protected (185/2015 §5).

## Records

| Year | Statistical table | Text | Comparison | All |
|---|---|---|---|---|
| 2023 | | | 8 | 8 |
| 2024 | 73 | 42 | | 115 |
| 2025 | 76 | 36 | | 112 |

Headline figures:

| | 2023 | 2024 | 2025 |
|---|---|---|---|
| Offences registered (`offences_registered_total`) | 1 114 | 1 431 | 1 530 |
| of them traffic, § 22 (`offences_registered_traffic`) | | 1 216 | 1 234 |
| Events registered (`events_registered`) | | 9 383 | 9 893 |
| Call-outs (`callouts`) | | 4 297 | 2 874 |
| Vehicle keepers' administrative offences (`vehicle_keeper_offences`) | | 663 | 2 171 |
| Cameras (`cameras`), of them networked | | 65, 51 | 65, 51 |
| Buildings linked to the alarm desk (`alarm_linked_buildings`) | | 144 | 151 |
| Old vehicles removed (`old_vehicles_removed`) | 39 | 52 | 40 |
| Stray animals caught (`stray_animals_caught`) | 58 | 71 | 56 |
| Officers at 31 Dec (`staff_end_of_year`) | | 25 | 25 |

## Fields

- `record_id`: `<year>-<indicator>`, and for a row of a breakdown `-<category as a slug>`. Stable: built from the
  year and the report's own row, never the row's position.
- `year`, `period` (`01.01.–31.12.<year>`, the report's period).
- `basis`: `vykaz`, a row of the report's statistical table („Výkaz štatistických údajov“); `text`, a figure stated
  in its descriptive part („Opisná časť“); `comparison`, a figure the next year's report gives for a year whose own
  report is not online.
- `section`: the table's section heading as printed (`I.` to `VI.`), or the heading of the descriptive part the
  sentence stands under.
- `item`: the table's row number as printed (`1`, `1a`, …); null for text.
- `indicator`: a short English key for the row. Section V's keys end in the column: `_traffic` (§ 22, „Priestupky
  proti bezpečnosti a plynulosti cestnej premávky“), `_public_order` (§ 47 to § 50, „Priestupky proti verejnému
  poriadku, proti občianskemu spolunažívaniu, proti majetku“), `_other` („Ostatné“, „Priestupky pre porušenie VZN a
  iné“) and `_total` („Spolu“). The Slovak label is the authority; the key is a handle.
- `category`: section V's column header as printed (`§ 22`, `§47- §50`, `Ostatné`, `Spolu`), or the kind in a
  breakdown (`suspected_crime_acts`: the suspected crimes of persons handed over to the state police, by kind;
  `property_offence_acts`: the property offences under § 50, by kind), as the report prints it.
- `label_sk`: the report's own wording: the table row's label, or the sentence the figure is read from.
- `value`: a number. Amounts in euros keep their cents (`33344.28`).
- `unit`: `count`, `persons` or `EUR`.
- `note`: null, or where the report (or the next one) states the same figure differently (below).
- `council_meeting`: the sitting at which the council took note of the report the value is read from.
- `source_page`: the agenda item on senec.sk. `source_url`: the report's PDF.
- `last_update`: the day the record last changed.

Indicators of the table, by section: I `staff_planned`, `staff_end_of_year`, `staff_hired`, `staff_left`,
`staff_convicted`, `staff_certified`; II `complaints_justified`, `complaints_unjustified`; III `events_registered`,
`callouts`, `weapon_used`, `weapon_used_unlawfully`, `warning_shots`, `warning_shots_unlawful`,
`coercive_means_used`, `coercive_means_unlawful`, `injured_target`, `killed_target`, `injured_bystander`,
`killed_bystander`, `property_damaged`, `town_property_damaged`, `attacks_on_officers`,
`attacks_on_officers_injured`; IV `persons_restrained`, `persons_brought_to_municipal_police`,
`persons_brought_to_state_police`, `wanted_persons_found`, `wanted_things_found`, `wanted_vehicles_found`; V (each
with the four columns) `offences_registered`, `offences_filed` (uložené), `offences_dismissed` (odložené),
`offences_handed_over` (odovzdané), `offences_reported_to_authority`, `offences_warned` (napomenutie),
`offences_fined_on_spot` and `fines_on_spot_eur` (blokové konanie), `offences_fined_ticket` and `fines_ticket_eur`
(blok na pokutu nezaplatenú na mieste); VI `vehicle_keeper_offences`, `vehicle_keeper_orders` (2024),
`vehicle_keeper_paid_eur`, and from 2025 `vehicle_keeper_orders_mp`, `vehicle_keeper_orders_mp_paid_eur`,
`vehicle_keeper_orders_pp`, `vehicle_keeper_orders_pp_paid_eur` (MP: the vehicle keeper's liability under § 6a
písm. e) of 8/2009; PP: the paid parking zone, from 24 Jul 2025).

Indicators of the text: `staff_during_year`, `events_with_state_police`, `alarm_signals_checked`,
`alarm_signals_registered` (2025), `alarm_linked_buildings`, `alarm_service_income_eur`,
`persons_handed_to_state_police_suspected_crime`, `suspected_crime_acts`, `coercive_means_at_arrests`,
`wheel_clamp_uses`, `fines_block_total`, `fines_block_total_eur`, `vehicle_keeper_enforcement_proposals`,
`vehicle_keeper_objections`, and in 2024 `vehicle_keeper_set_aside`, `vehicle_keeper_stopped`,
`vehicle_keeper_interrupted`, `vehicle_keeper_objections_rejected`; `property_offence_acts` (the total and its
breakdown), `camera_records_for_criminal_proceedings`, `cameras`, `cameras_networked`, `cameras_gsm_outside_system`,
`old_vehicles_removed`, `animal_catchers`, `stray_animals_caught`, `stray_animals_to_shelter`, `assistance_acts`,
`school_lectures`, `school_lecture_children`.

## Method

- The table („Výkaz štatistických údajov“) has sections I to VI with numbered rows, the same in both years apart
  from section VI. The descriptive part is free text.
- Each PDF has a text layer (Word export). It is read twice, by `pdftotext -layout` and by `pdfplumber`, with
  whitespace collapsed. Every row of the table and every figure of the text is matched by a pattern written
  against the report's wording; a row that does not match exactly once stops the build, and so does any value the
  two reads disagree on.
- Checks in the code: in section V the three columns add up to „Spolu“ in every row, counts and amounts; in 2025
  the two kinds of orders (MP and PP) add up to the offences and the amount of section VI; the coercive means at
  arrests plus the wheel clamps equal III.4; the property offences by kind add up to their total. The figures
  the text repeats from the table (offences registered, events, call-outs, persons, coercive means, traffic
  offences and their fines, the public-order offences and their fines, the vehicle keepers' offences) are
  compared with it.
- Read and not kept: the camera models (a list of makes and counts), the equipment (weapons, vehicles, radios),
  the organisation chart, and the charts (images, apart from one in 2024 whose labels are not tied to their bars).
  No name of a person is kept; the cover names the chief officer.

## Caveats

- **The report states some figures twice, differently.** The table's value is kept and the row's `note` names the
  other one:
  - 2024 call-outs: table III.1a 4 297, the text 4 279.
  - 2024 fines in block proceedings: the text 844 fines and 13 855 €; the table's rows V.7 and V.8 (Spolu) give 838
    and 13 885 €; the 2025 report gives 844 and 13 850 € for 2024. All three are in the data: the text's figures as
    `fines_block_total` and `fines_block_total_eur` (with the notes), the table's as the V.7 and V.8 rows.
  - 2025 persons handed to the state police: table IV.3 13, the text „12 osôb bolo odovzdaných príslušníkom PZ SR“.
- **Definitions change between years.** Section VI was a single count in 2024 and splits into MP and PP orders in
  2025, after the paid parking zone started on 24 Jul 2025. `alarm_signals_checked` is the sentence „Z dôvodu
  zabezpečenia ochrany objektov bolo preverených … podnetov“ in both years; in 2025 the report also counts the
  alarm signals registered (497), of which 226 needed a check on site.
- **Comparison figures (2023) are second-hand:** what the 2024 report says about 2023, not the 2023 report itself.
- **Offences are the municipal police's own**, not the state police's: the town's report counts what its officers
  registered and dealt with. Crime in the town is not in it; `suspected_crime_acts` counts only the suspected
  crimes of the persons the municipal police handed over to the state police.
- Counts as printed. A „skutok“ (act) is not a person: `suspected_crime_acts` (11 in 2024) and the persons handed
  over (10) differ.

## License

Published by Som Senec under the Creative Commons Attribution 4.0 International licence (CC BY 4.0): https://creativecommons.org/licenses/by/4.0/. You may use it for any purpose, commercial use included, if you credit "Som Senec, somsenec.sk". The source documents that each record links to keep their own terms.
