Overview
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 postcodes return an error and are never charged. Great Britain only.
Protocol
x402
Price
$0.01
Payment Asset
USD Coin
Payment Network
eip155:8453
Category
uncategorized
Provider
UK Postcode Distance (GB)
Indexed
2026-11-27 13:13:57
Health
Status
unknown
Latency (p50)
—
Uptime (30d)
—
Reliability Score
—
Last Checked
Never
Last Healthy
Never
Consecutive Failures
0
Input Schema
{
"method": "GET",
"queryParams": {
"from": "SW1A 2AA",
"to": "M1 1AE"
},
"type": "http"
}
Output Schema
{
"example": {
"attribution": "Contains OS data © Crown copyright and database right; Office for National Statistics data licensed under the Open Government Licence v3.0.",
"bearing_degrees": 334,
"direction": "NNW",
"distance_km": 262.7,
"distance_miles": 163.2,
"from": {
"council": "Westminster",
"country": "England",
"latitude": 51.503541,
"longitude": -0.12767,
"postcode": "SW1A 2AA",
"region": "London"
},
"method": "Straight-line (great-circle) distance between postcode centres, not road distance.",
"to": {
"council": "Manchester",
"country": "England",
"latitude": 53.480759,
"longitude": -2.242631,
"postcode": "M1 1AE",
"region": "North West"
}
},
"type": "json"
}