uk-postcode-x402.onrender.com/uk-postcode-distance
Pay-per-call distance between two UK (Great Britain) postcodes for AI agents. Send from and to postcodes (e.g. SW1A 2AA and M1 1AE) and get the straight-line distance in miles and kilometres, the compass direction and bearing, plus the council, region and coordinates of both ends, as clean JSON. Saves two lookups and the maths. Built on official ONS / Ordnance Survey open data. Invalid or unknown
GET
https://uk-postcode-x402.onrender.com/uk-postcode-distanceUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://uk-postcode-x402.onrender.com/uk-postcode-distance?from=SW1A+2AA&to=M1+1AE");
console.log(await res.json());Example input
{
"from": "SW1A 2AA",
"to": "M1 1AE"
}