# ulice-geometria: the line of each street, from OpenStreetMap

The road of 143 of the 148 streets of Senec, as OpenStreetMap draws it: its named highway ways (580 in all),
joined end to end and kept inside the town's boundary. The site draws a street with it when a reader picks one
on the map (`/mapa?ulica=`); the street pages and every count still come from `ulice`, whose address points and box
this does not replace.

- Ways: OpenStreetMap, snapshot of 2026-11-25 (`sources/osm/senec_hw.json`, `scripts/fetch_osm_base.py`), © OpenStreetMap contributors, ODbL.
- Streets: `data/ulice.json` (Register adries), whose `street_id`, `slug` and `name` each record repeats.
- Built by `scripts/build_ulice_geometria.py`, after `build_ulice.py`. Nothing is fetched.

## Method

- A way joins the street whose name it carries, read as `build_ulice.py` reads every other dataset's spelling
  (exact, brackets dropped, abbreviations and diacritics normalised, initials).
- A way more than 400 m from the box of its street's address points is left out (listed below): the name would
  draw a street where the street is not.
- The ways are cut at the town's boundary, widened by 30 m so a street ending on it keeps its last metres.
  A road that runs on beyond the town is drawn to the boundary only.
- A street OSM has no named way for gets no record. A street in OSM under a name the register doesn't have is
  not drawn.

## Fields

| Field | Type | Meaning |
| --- | --- | --- |
| `street_id`, `slug`, `name` | string | The street, as in `ulice`. |
| `osm_names` | list | The names its ways carry in OSM. |
| `osm_way_ids` | list | The OSM ways drawn (`https://www.openstreetmap.org/way/<id>`). |
| `length_m` | number | The length of the line inside the town, in metres (ETRS89-LAEA). |
| `geometry` | object | GeoJSON `MultiLineString`, WGS84 longitude and latitude, 6 decimals. In the CSV, `wkt`. |
| `osm_snapshot` | date | The date of the OSM data. |
| `source_url` | string | The street's longest way in OSM. |
| `last_update` | date | The day the record last changed. |

## Spelled otherwise in OSM

| OSM | Register adries |
| --- | --- |
| Mierové námestie | Mierové nám. |
| Námestie 1. mája | Nám. 1. mája |
| Námestie Alberta Molnára | Nám. Alberta Molnára |
| Pri Búroši | Ulica pri Búroši |
| Pri Čiernej vode | Ulica pri Čiernej vode |
| Pri včelárikoch | Ulica pri včelárikoch |

## Streets not drawn

No named way in OSM for these:

- Ulica Alexandra Albrechta
- Ulica Eugena Suchoňa
- Ulica Jána Cikkera
- Ulica Jána L. Bellu
- Ulica Jána N. Hummela

## Left out

Ways of names that are no street of the register (count of ways): Helios I pasáž (1), Helios pasáž I (1), Kováčska (1), Recká cesta (3), Senec námestie (1), Senecká (1), Trhovisko Martex (1).

Ways too far from their street:

- none

## License

Published by Som Senec under the Open Database License 1.0 (ODbL 1.0): https://opendatacommons.org/licenses/odbl/1-0/. It contains data from OpenStreetMap, © OpenStreetMap contributors, which the ODbL requires to stay under the ODbL. Credit "© OpenStreetMap contributors" and "Som Senec, somsenec.sk", and publish an adapted version under the ODbL. The source documents that each record links to keep their own terms.
