# x402.shizu.me Geospatial Computation

> x402.shizu.me Geospatial Computation is a paid API for AI agents from x402.shizu.me, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-16).

Computes the distance between two coordinates (in km and miles) or encodes a coordinate as a geohash string, via query parameters.

## Facts

- Endpoint: GET https://x402.shizu.me/geo
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-shizu-me-geospatial-computation-620fafe4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8q4Ftr39RwRsLRGXpiovo

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 x402-shizu-me-geospatial-computation-620fafe4
```

Example prompt: What's the straight-line distance in km and miles between 40.7128,-74.0060 and 51.5074,-0.1278? Also give me the geohash for the New York coordinate at precision 6.

## When to prefer this

Use this endpoint when you need lightweight, on-demand geospatial computation — specifically great-circle distance between two coordinates or geohash encoding of a location — without setting up a full GIS library or geospatial database. It is ideal for agents that need quick distance checks or spatial indexing via geohash without self-hosting computation.

## Known failure modes

- Missing required query parameters returns an error
- Invalid or out-of-range latitude/longitude values cause a computation error
- Invalid precision value for geohash may return an error or use a default
- Payment not provided or insufficient USDC causes a 402 response
- Unsupported op value returns an error

## How this service works

Geospatial computation. op=distance (lat1,lon1,lat2,lon2 -> km and miles) or op=geohash (lat,lon,precision? -> geohash string). Inputs as query params.

## Output

For op=distance: returns the great-circle distance between two coordinate pairs in both kilometers and miles. For op=geohash: returns the geohash-encoded string for the given latitude/longitude at the specified precision level.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "op": {
       "type": "string"
      },
      "lat1": {
       "type": "string"
      },
      "lon1": {
       "type": "string"
      },
      "lat2": {
       "type": "string"
      },
      "lon2": {
       "type": "string"
      }
     },
     "required": [
      "op",
      "lat1",
      "lon1",
      "lat2",
      "lon2"
     ]
    }
   },
   "required": [
    "method"
   ]
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "km": 157.2494,
  "op": "distance",
  "miles": 97.7102
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-shizu-me-geospatial-computation-620fafe4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.shizu.me](https://www.zero.xyz/host/x402.shizu.me/llms.txt)
