Lat Long Coordinate Converter API - DD, DMS, DDM, UTM (WGS84), Geohash & distance
lat_long_converterConvert geographic coordinates between Decimal Degrees (DD), Degrees Minutes Seconds (DMS), Degrees Decimal Minutes (DDM), UTM (WGS84), Geohash, and WKT POINT. Auto-detects input format (DD, DMS, DDM, or UTM). Optional compareTo computes Haversine distance (km/miles/nmi), initial bearing, and midpoint. Single or batch up to 1,000 coordinates. 0 AI, pure stdlib math, < 5 ms. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.001/call via x402 at https://radarbg.com/x402/lat-long-converter.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"input": "40.7128, -74.0060",
"compareTo": "51.5074, -0.1278"
},
"name": "lat_long_converter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | No | Optional numeric latitude (-90 to 90), used with lon | |
| lon | No | Optional numeric longitude (-180 to 180), used with lat | |
| input | No | Coordinate string in DD, DMS, DDM, or UTM format (provide input, lat+lon, or inputs) | |
| inputs | No | Optional batch list of up to 1,000 coordinate strings | |
| compareTo | No | Optional second coordinate to calculate distance, bearing, and midpoint |