# ulice-najblizsie-body: the points each street walks from

The 184 origins of `ulice-najblizsie`, the address points its walking times start from, for the 148
streets of Senec. Each street has its medoid address point in Register adries, the one with the least summed
straight-line distance to the street's other points. Where some of its points lie more than 350 m from every origin,
the street gets another, up to 4 more: the point that brings the most of them within 350 m. 21 streets
have more than one. Each address point of the street is served by the nearest of its origins.

- Address points: Register adries (https://rageo.minv.sk/opendata/dataset/address_by_lau2_SK0108508217.geojson).
- Built by `scripts/build_ulice_najblizsie.py`, with `ulice-najblizsie`; the router's `snap_m` from
  `scripts/fetch_ulice_trasy.py` (FOSSGIS's OSRM, the foot profile, on OpenStreetMap data).
- `lat` and `lon` start the walk on openstreetmap.org (the link's form is in `ulice-najblizsie-README.md`).

## Fields

| Field | Type | Meaning |
| --- | --- | --- |
| `origin_id` | string | The address point's Register adries `identifier`. |
| `street_id`, `street_slug`, `street_name` | string | The street, as `street_id`, `slug` and `name` in `ulice`. |
| `main` | boolean | True for the medoid of the whole street. |
| `address` | string | The origin's street and house number, as the register writes them. |
| `lat`, `lon` | number | The address point, WGS 84, to 6 decimals. |
| `address_points_served` | number | How many of the street's address points lie nearer to this origin than to the street's other origins. |
| `house_numbers` | list | Their house numbers (orientation numbers), in order; space-separated in the CSV. |
| `snap_m` | number | How far the router moved the point to reach a path, in metres. |
| `source_url` | string | Register adries, the source of the address points. |
| `last_update` | date | The day this origin's record last changed. |

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