# Geo Calc Plus Code Encoder

> Geo Calc Plus Code Encoder is a paid API for AI agents from geo-calc.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-30).

Encodes a latitude/longitude coordinate pair into an Open Location Code (Plus Code), returning the code, its geographic area bounds, and a short local form.

## Facts

- Endpoint: GET https://geo-calc.x402tookit.com/pluscode-encode?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/geo-calc-plus-code-encoder-a0ad7a0e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jJTvoQFXdoYp0FUupsQBx

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 geo-calc-plus-code-encoder-a0ad7a0e
```

Example prompt: Encode the coordinates 37.7749, -122.4194 as a Plus Code — give me the full Open Location Code, its geographic bounds, and the short local form.

## When to prefer this

Choose this endpoint when you need to encode a lat/lon coordinate into an Open Location Code (Plus Code) with its geographic cell bounds and a short local form. Prefer it over geohash encoding when the output must be compatible with Google Plus Codes / OLC standard, or when you need the cell's bounding box alongside the code.

## Known failure modes

- Latitude out of range (-90 to 90) returns an error
- Longitude out of range (-180 to 180) returns an error
- Invalid code length (not in 2,4,6,8,10,11,12,13,14,15) returns an error
- Missing required lat or lon parameters returns a validation error
- Payment failure via x402 protocol results in 402 response

## How this service works

Encode latitude/longitude as an Open Location Code (Plus Code) with its area bounds and a short local form.

## Output

Returns the full Plus Code (Open Location Code) string, a shorter local form of the code, the geographic bounding box (north, south, east, west bounds), the center latitude and longitude of the encoded cell, and the code length used.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "lat",
      "lon"
     ],
     "properties": {
      "lat": {
       "type": "number",
       "description": "Latitude in degrees, -90 to 90"
      },
      "lon": {
       "type": "number",
       "description": "Longitude in degrees, -180 to 180"
      },
      "length": {
       "type": "integer",
       "description": "Code digits: 2,4,6,8,10 (default),11,12,13,14,15"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "bounds": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "east": {
         "type": [
          "null",
          "number"
         ]
        },
        "west": {
         "type": [
          "null",
          "number"
         ]
        },
        "north": {
         "type": [
          "null",
          "number"
         ]
        },
        "south": {
         "type": [
          "null",
          "number"
         ]
        }
       }
      },
      "length": {
       "type": [
        "null",
        "number"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "plusCode": {
       "type": [
        "null",
        "string"
       ]
      },
      "centerLat": {
       "type": [
        "null",
        "number"
       ]
      },
      "centerLon": {
       "type": [
        "null",
        "number"
       ]
      
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/geo-calc-plus-code-encoder-a0ad7a0e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from geo-calc.x402tookit.com](https://www.zero.xyz/host/geo-calc.x402tookit.com/llms.txt)
