latlon_to_gridref
Convert WGS84 latitude and longitude coordinates to an Ordnance Survey grid reference with configurable precision, enabling location mapping and referencing.
Instructions
Convert WGS84 latitude/longitude to an OS grid reference.
Args: lat: latitude in decimal degrees. lon: longitude in decimal degrees. digits: total figures in the reference (2-10, even). 6 = 100 m precision.
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": {
"lat": "<lat>",
"lon": "<lon>"
},
"name": "latlon_to_gridref"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | Yes | ||
| lon | Yes | ||
| digits | No |