distance_between
Calculate the straight-line distance in kilometers and miles between two UK postcodes or coordinates. Use it to compare locations and see if two postcodes share a local authority, constituency, or country.
Instructions
Straight-line (great-circle) distance in km and miles between two UK locations. Each end is a postcode or a 'latitude,longitude' pair. For two postcodes it also says whether they share a local authority, parliamentary constituency and country. Not a driving or travel distance.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"origin": "<origin>",
"destination": "<destination>"
},
"name": "distance_between"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| origin | Yes | Postcode, e.g. 'M1 1AE', or '53.48,-2.24'. | |
| destination | Yes | Postcode, or 'latitude,longitude'. |