← Calculators
tools by fourzerotwo
Distance between postcodes
Straight-line distance (km and miles) and compass bearing between two UK postcodes.
Distance between postcodes Free
Straight-line distance (km and miles) and compass bearing between two UK postcodes.
- cost
- Free then $0.002 / call
- MCP tool
- calculators__postcode-distance
- method
- GET
Free up to 50 calls a day over MCP (500 with a free key), then $0.002 per call by card credit or USDC. Free key · Pay by card
GET https://fourzerotwo.si/v1/calculators/postcode-distance
| Param | Type | Description |
|---|---|---|
| from | string | Postcode |
| to | string | Postcode |
# free: send a free key from https://fourzerotwo.si/free curl -H "X-API-Key: fzt_…" "https://fourzerotwo.si/v1/calculators/postcode-distance?from=SW1A%201AA&to=CT9%201JD" # no key: returns 402 with the price, for x402 agents curl -i "https://fourzerotwo.si/v1/calculators/postcode-distance?from=SW1A%201AA&to=CT9%201JD"
by fourzerotwo
Report this endpoint
Use it from an AI agent (MCP)
Add the server once, then ask for this data in plain English. The agent finds the endpoint with search_apis and runs it with call_api.
{
"mcpServers": {
"fourzerotwo": { "type": "http", "url": "https://fourzerotwo.si/mcp" }
}
}
# the call the agent makes
call_api {"tool": "calculators__postcode-distance", "arguments": {"from":"SW1A 1AA","to":"CT9 1JD"}}
More from Calculators
- UK business days — Is a date a UK business day; add or subtract N business days; count business days between dates. Uses official...
- Currency conversion — Convert between ~30 currencies at the ECB reference rate for today or any date in the last 90 days.
ECB reference rates; GOV.UK bank holidays and ONS postcode data under the Open Government Licence v3.0.