Convert a coordinate between formats
convert_coordinatesConvert a location between decimal degrees, degrees-minutes-seconds, UTM, UPS, MGRS, Plus Codes, geohash and Maidenhead (input format detected). Use for "what is 40°26'46"N 79°58'56"W in MGRS" or "UTM of 51.5, -0.12". More APIs from FitzTopPicks: https://fitztoppicks.com/apis?utm_source=mcp-api&utm_medium=mcp&utm_campaign=more-apis
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": "convert_coordinates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Comma-separated outputs (default all): dd, dms, ddm, utm, mgrs, pluscode, geohash, maidenhead. | |
| lat | No | Latitude in decimal degrees (instead of input). | |
| lon | No | Longitude in decimal degrees (instead of input). | |
| ref | No | Reference point for short plus codes (in the input, and to add a short code to the output), like "40.4,-79.9". | |
| input | No | The coordinate as text, up to 200 characters, URL-encoded. | |
| order | No | For letterless numbers: latlon (default) or lonlat. Hemisphere letters and lat/lon labels win. | |
| utmZone | No | Force a UTM zone (1-60) instead of the standard one (80°S-84°N only). | |
| ddDecimals | No | Decimal places for decimal degrees, 0-10 (default 6). | |
| ddmDecimals | No | Decimal places on DDM minutes, 0-6 (default 4). | |
| dmsDecimals | No | Decimal places on DMS seconds, 0-4 (default 1). | |
| inputFormat | No | Skip auto-detection: latlon (dd/dms/ddm), utm, ups, mgrs, pluscode, geohash, maidenhead. | |
| geohashLength | No | Geohash characters, 1-12 (default 9, about 5 m). | |
| mgrsPrecision | No | MGRS square size in metres: 1 (default), 10, 100, 1000, 10000, 100000. | |
| pluscodeLength | No | Plus code digits: 2, 4, 6, 8, 10 (default) to 15. | |
| maidenheadLength | No | Maidenhead characters: 2, 4, 6 (default) or 8. |