← Ziding Zhang

How much of a Pocket City miniature is the map?

An agent skill turns an address into a seasonal 3D miniature built from OpenStreetMap. I rebuilt it on real map data for central Helsinki: the floor plan is the map, but two thirds of the buildings have no height in it, and every simple guess misses by about two and a half storeys.

November 22, 2026 · Research note · What is not yet established


A 3D miniature of central Helsinki. Buildings with a height in OpenStreetMap are blue or teal; the rest, about two thirds, are red, standing at a guessed height.
Try it Build up the miniature. Then change how missing heights are guessed: blue stays, red moves.
The miniature at the chosen step
height mappedstoreys mappedheight guessed
The mapHeights filledMiniatureWinter
Missing heights:
Red heights are guessed. Change the rule and only red moves.
How far off the guesses are ↓
Central Helsinki, 840 m square, from OpenStreetMap (April 2019). 239 buildings; 76 have a mapped height or storey count. With the map alone the other 163 lie flat; every taller version of them is a guess.

A post by 沐阳 went round this week about Pocket City, an open-source skill by April Zhu for Claude Code and Codex. Give it an address and it returns a hand-drawn 3D miniature of the street in four seasons, with people and cars, built from OpenStreetMap. Its version of Anshun Bridge in Chengdu is on this site.

The promise is a miniature that follows the real map. I wanted to know which parts of the picture that covers, so I rebuilt the pipeline on a real map extract and coloured every part by where it came from. Enter an address to see your street in four seasons.

What the map holds

In an 840 m square of central Helsinki, all 239 building outlines, the streets, the parks and 346 individually mapped trees come straight from OpenStreetMap.

Height is different. A building has one only if a volunteer tagged it. Here 32% of buildings carry a height or a storey count, covering about 40% of the built footprint. Only 2% say what shape their roof is.

What gets filled in

Everything else is a prior: the missing heights, roofs, wall colours, extra trees in the parks, people, cars and the seasons. The skill says the same of itself. Its Anshun Bridge page credits the map for the riverbanks, streets, bridge outline and nine footprints, a photograph for the arches and roofs, and calls the heights, colours, trees and street life illustrated.

The test

If the filled-in skyline came close to the real one, the “real map” promise would reach the third dimension. I hid each building whose height is mapped, guessed it from the others, and compared.

Rule for a missing heightAverage missWithin one storey
City median7.7 m37%
Flat three storeys8.2 m28%
Copy the 5 nearest mapped buildings8.1 m25%

Every rule misses by about two and a half storeys, and copying neighbours barely keeps tall and short in order (rank correlation 0.18). In the interactive above, blue and teal never move; red rearranges with the rule.

So it is a real floor plan with an illustrated city on it. For a keepsake of the street you grew up on, the post’s own use, that may be enough: people know a place by its plan, landmarks and weather. As a model of the place, the third dimension is easy to vary, which is the test I apply to explanations in Can “hard to vary” be scored?.

What would make this wrong

The skill also reads photos of the place. If those photos let it set the heights of ordinary buildings, not only a landmark’s roof, its miniatures would put tall and short in the right order where the map is silent. Run it on a district whose real heights are known from a city 3D model or a building register: a rank correlation well above 0.18 would refute this reading.

Agent context: sources, method and working notes

Request. I sent the X post with “This too!” (prototype it), then “Post to blog both”.

Source. The post (22 November 2026, read logged out) describes the skill: it reads street layout, building outlines, geographic information and photos from OpenStreetMap, adds local architectural style, climate and culture, and outputs an interactive page with four seasons. A reply gives a one-line install command. The agent did not install or run the skill.

Data. OpenStreetMap servers were not reachable from the agent’s sandbox, so it used the real Helsinki extract that ships inside the pyrosm Python package (snapshot April 2019), cut to an 840 m square around the Esplanadi and Senate Square.

Method. Buildings are extruded from their outlines. Height comes from the height tag, else building:levels × 3.2 m, else a rule. The test is leave-one-out over the 76 buildings with a mapped height: each one is hidden, its height guessed from the other 75 by the rule, and the absolute error recorded. “Copy neighbours” averages the five nearest mapped buildings by centroid. The rank correlation is Spearman’s, between that guess and the mapped height. The figures above are from the page’s own code; the Python version gives 8.14 m for the neighbour rule.

Other shares. With unmapped buildings set to the median, mapped heights account for 47% of built volume. The 346 trees are individually mapped points; the miniature adds more inside parks, shown grey in the workbench’s “What’s real” view.

Renders. The frames above are screenshots of the workbench at a fixed camera, made in headless Chromium with software WebGL. People and cars are placed at random each time.

Code. The extraction and test script (extract.py), the workbench and the frames are in this site’s repository under public/interactive/pocket-workbench/ and public/interactive/pocket-truth/.

Have an answer, a counterexample, or a story? See Talk to me for open questions and live trials.

Credits: Ziding Zhang. Rebuild, test, renders and write-up by a Claude agent under my direction. Pocket City is by April Zhu (@Aprilzz423); found through a post by 沐阳 (@yyyole). Map data © OpenStreetMap contributors (ODbL), from the Helsinki extract bundled with pyrosm. Rendering with three.js (MIT).