This week Andrej Karpathy, co-founder of OpenAI and former head of AI at Tesla, asked Claude to fill a Civilization-style map of the United States with real data. Seven hours, 31 public data sources and 45,000 lines of code later, it worked. GDP turned into gold, a city’s industries into its districts, its real workforce into its citizens. Claude skipped a few states along the way, which Karpathy admitted with a short “sry”.
I wondered whether the same would work for Germany, so I tried it.
What’s on the map
The map now holds a little over 4 million data points: 30,516 onshore and 1,821 offshore wind turbines, 8,454 solar installations of one megawatt or more, 730 power plants, 576 battery storage sites, the extra-high-voltage grid, 6,930 train stations and stops with their departures per weekday, 39 airports with their passenger numbers, 816 ports, 24,520 fast chargers, around 6,000 industrial sites with their CO₂ emissions and the population from the 2022 census in 3.3 million grid cells. On top of that come the live rain radar from the German Weather Service and the planes currently flying over the country.
Offshore wind farms, ports and the coast up to Hamburg
All of it comes from 16 public sources by 12 publishers, among them the Federal Network Agency, the statistical offices, the Federal Environment Agency, the Federal Agency for Cartography and Geodesy, the German Weather Service, Eurostat and OpenStreetMap. I didn’t need an account or an API key for any of them. I wrote two pages describing what I wanted, and Claude wrote the code. I didn’t write a single line myself.
Where the work was
Most of the time went into bringing the data together, because the sources don’t fit each other.
The market master data register, Germany’s official list of power generators, publishes no coordinates for large power plants, only a place name that is often shortened. Three federal states report no facility ID in the emissions register, so anyone who groups by that ID ends up with a single plant for each of those states. Train stations were counted twice at first, because a station’s departures already include those of its platforms. And the same agency gives two different licences for the same data, depending on whether you download it or use the API.
None of these show up as errors on the screen. The map looks fine either way.
The checklist
What found these problems was a checklist the map had to pass at the end:
- every federal state needs objects in every layer
- the population has to match the official figure (the deviation is 0.0 percent)
- spot checks of well-known places have to be accurate to within one kilometre
- whatever couldn’t be placed cleanly, about a fifth of the power plant capacity, is drawn hollow and explained when you click on it
- every object names its source, licence and date
- a single script rebuilds everything from scratch in just under an hour
A power plant without coordinates in the register, drawn hollow on the centre of its district
Karpathy’s missing states would have failed the first point straight away. The list itself came from me. Claude found the problems because I had written down what had to be true at the end.
Can I publish it?
I don’t know yet. Every source has its own licence, OpenStreetMap included, and sometimes the same agency names two different ones for the same data. For a map that combines all of them, I’m not sure what that adds up to. Until I’ve sorted it out, the map stays private.
Where I’d start
Two years ago image generators still drew Germany with made-up borders. Now a two-page description and a checklist are enough to pull 16 sources from 12 publishers into one map that matches the official population count.
I think many companies still spend too long deciding where and how to use AI. The simplest place to start is the data they already have. Collect it, sort it, see what it tells you, and combine it with data that is publicly available or that you can buy: weather, population, traffic, energy. From that you can build better forecasts for your own business.
The problems will look familiar. Customer numbers that differ between systems, locations spelled three ways, figures counted twice. A checklist that says what has to be true at the end catches most of them.
And once you’ve started, the ideas for what else to do with it tend to come on their own.
New pieces go out by mail first.
Subscribe on Substack