# Decimal Lat/Lon to MGRS Converter

> Decimal Lat/Lon to MGRS Converter is a paid API for AI agents from geospatial.openverbs.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Converts a decimal latitude/longitude coordinate to a Military Grid Reference System (MGRS) string on WGS84 with configurable precision.

## Facts

- Endpoint: POST https://geospatial.openverbs.com/v1/mgrs
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/decimal-lat-lon-to-mgrs-converter-e0212792
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_e4dsTVi1wcYa3vj7X9ucc

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability decimal-lat-lon-to-mgrs-converter-e0212792 -d '<json body>'
```

Example prompt: Convert coordinates 34.0522° N, 118.2437° W to an MGRS string at full 5-digit precision.

## When to prefer this

Use this endpoint when you need to express a WGS84 decimal lat/lon as a standard MGRS grid reference — particularly for military, defence, search-and-rescue, or interoperability with mapping tools that require MGRS notation. Prefer this over UTM when the consumer expects the full MGRS zone-letter-square-easting-northing alphanumeric format. The configurable precision (1–5 digits per axis) makes it suitable for coarse area designation through to 1-metre field accuracy.

## Known failure modes

- Latitude out of range (< -90 or > 90) returns a validation error
- Longitude out of range (< -180 or > 180) returns a validation error
- Precision outside 1–5 returns a validation error
- Coordinates at the poles (lat ±90) may produce undefined MGRS output as MGRS is not defined at the poles
- Missing required lat or lon fields returns a 400 bad request
- Payment failure or insufficient USDC balance returns a 402 Payment Required

## How this service works

Convert decimal lat/lon to a Military Grid Reference System (MGRS) string on WGS84. Precision is the number of digits per axis (1–5; 5 = 1-metre resolution, default 5).

## Output

Returns an MGRS string (e.g. '11SPC8913697262') representing the input decimal coordinate on the WGS84 datum. Precision 5 (default) gives 1-metre resolution; lower values yield coarser grid cells (10 m, 100 m, 1 km, 10 km).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "lat",
      "lon"
     ],
     "properties": {
      "lat": {
       "type": "number",
       "maximum": 90,
       "minimum": -90,
       "description": "Latitude in decimal degrees."
      },
      "lon": {
       "type": "number",
       "maximum": 180,
       "minimum": -180,
       "description": "Longitude in decimal degrees."
      },
      "precision": {
       "type": "integer",
       "maximum": 5,
       "minimum": 1,
       "description": "Digits per axis. Default 5 (1 m)."
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/decimal-lat-lon-to-mgrs-converter-e0212792/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from geospatial.openverbs.com](https://www.zero.xyz/host/geospatial.openverbs.com/llms.txt)
