Lab 01 · Live product

Context for AI, at the speed of a lookup

GeoData answers one question about any postcode in England, Wales or Scotland: what is this place like? It tests two ideas: that AI needs real-world context it can trust, and that useful data can be delivered at scale without being slow.

The two ideas

1. Giving AI context

A language model knows a great deal in general and very little in particular. Ask it about a specific street and it will guess. What it needs is context: current, sourced facts about the place in question, in a form it can read and quote.

GeoData is built to be that context. One request returns who lives in an area, crime, house prices, schools, flood risk, noise, transport and more, each block naming the official source it came from, so a model (or a person) can say where a figure came from.

2. Mid-level data, at scale and speed

Open data in the UK is plentiful and awkward. It comes from dozens of publishers, in different formats, on different maps: census output areas, statistical zones, council areas, 1 km climate grids, 10 m noise grids. That is the raw level. At the other end are finished reports written for one purpose.

GeoData sits in the middle: every dataset already cleaned, joined and keyed to the postcode, ready to be used in an app, a spreadsheet or a prompt. The engineering question was whether that middle layer could cover the whole country and still answer in milliseconds.

How GeoData is built

Census Crime House prices 40+ more One recordper postcode API27 ms
1.7M
postcodes covered across England, Wales and Scotland
27
categories of local data per postcode
40+
official source datasets joined together
~27 ms
typical time for a warm lookup inside the API

Do the hard work before anyone asks

The speed comes from one decision: nothing is joined at request time. A pipeline does all the joining in advance and writes one finished record per postcode. A lookup is then a single read by key. The API is a small Rust program on AWS Lambda; it validates the request, reads the record and returns it.

Getting everything onto the postcode

Most official statistics are not published by postcode. A census figure belongs to an output area; a deprivation score to a wider zone; a climate reading to a grid square. Each source importer converts its data to postcodes, and the method matters. Where an area covers several postcodes, figures are shared out in proportion to the number of addresses in each, using the national address directory, instead of being copied to all of them.

Heavier geography runs as its own job: measuring building heights from LiDAR, laying noise maps over postcode outlines, or timing journeys along the road network. Those run as container tasks and hand their results to the same pipeline.

Swap, never patch

A data refresh never edits the live table. The pipeline builds a complete new table beside the old one, runs an automated quality review over it, and only then switches the API across. If the review finds a serious problem, the switch does not happen and the old data keeps serving. Production is updated the same way, from a copy that has already passed.

The hard parts

AI experiments in progress

The API already works as context for a model: one call, structured JSON, sources attached. Two experiments push that further.

The product

GeoData

GeoData is live, with free tools, documentation and an API you can try without signing up.

Try GeoData