nearest_postcodes
Find postcodes closest to a UK location by postcode or GPS coordinates, returning distances in metres and local authority details for reverse geocoding.
Instructions
Postcodes closest to a point, with distance in metres. Pass either a postcode (the nearest-neighbour lookup) or a latitude and longitude (reverse geocoding). The nearest result is often the building the point sits in, so this is the way to turn GPS coordinates into a postcode and local authority. Radius is capped at 2000 m by the service.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "nearest_postcodes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum postcodes. | |
| latitude | No | WGS84 latitude; use with longitude instead of a postcode. | |
| postcode | No | Centre the search on this postcode. | |
| radius_m | No | Search radius in metres. | |
| longitude | No | WGS84 longitude. |