garage44.eu/jeroen/cartopolis

logclone: git clone https://garage44.eu/jeroen/cartopolis.git

.. /docs/notes/plans.md

raw


topic: plans triggers: [plans.rs, plans_watch, UITVOERINGPROGRAMMA, maintenance programme, WorkKind, FollowPlans, PlansFollow, plans_follow, crates/atlas/src/plans.rs, systems::plans, "/plans/groningen.json", plans_refresh, CARTO_PLANS_URL, bekendmakingen, Gemeenteblad, gemeenteraad, raadsinformatie] updated: 2026-11-26

Plans: notices and council business on the map

Layers ▸ Places ▸ Plans draws what Gemeente Groningen publishes about a place, at the place, and the council business that names it. Atlas builds one feed from three open sources (atlas::plans), the client places it over the map (systems::plans, place_plans: the marks, the outlines, a tap) and the component library draws the marks, the card and the news chip (lib_plans; egui painted them until 2026-11-26). The design is docs/mockups/plans-and-decisions/.

The sources, measured 2026-10-30

Council items have no place, so they are placed by name

An agenda item's title is matched against the gazetteer, whole words, longest first. That is a guess, and the client says so ("matched by place name", "Placed by the name … in its title"). What the first live build taught:

Following a place (protocol 50, built 2026-11-17)

Plans here has Follow this place. A followed place is a spot, not a street: a notice whose pin is within 100 m of it (plans::NEAR_M, the same "here" the card counts) is news.

Not checked from here: a real phone woken by a real distributor. The server's half is tested with a database; the Android notice and the app's chip were not seen on a device.

Not done: the browser is never woken for a plan (the web page follows no places, and sw.js shows any word but "message" as a call); the notice's own card has no Follow button (v1 screen 2), only Plans here; and a followed place has no name — the chip names the notice's place instead.

Works: the maintenance programme (built 2026-11-18)

The feed's works is Gemeente Groningen's maintenance programme for the year: five WFS layers on the city's GeoServer, prog-sbh:UITVOERINGPROGRAMMA_* — roads 568, street-light cables 99, trees 36, sewers 22, bridges and quays 4, all for 2026 when read. A feature carries only a measure in Dutch, a year and the programme's name: no dates, closures, detours or contacts, and the card says so. The design is the mockups' v3.

Not built yet

Other municipalities: the notices query is one constant away, the council site is Groningen's own. Following only reaches Groningen for that reason.