# Reverse Geocoding API (x402.donnyautomation.com)

> Reverse Geocoding API (x402.donnyautomation.com) is a paid API for AI agents from x402.donnyautomation.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Converts latitude and longitude coordinates to a human-readable street address and place name using OpenStreetMap Nominatim with worldwide coverage.

## Facts

- Endpoint: GET https://x402.donnyautomation.com/reverse-geocode
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/reverse-geocoding-api-x402-donnyautomation-com-5ef4f0f9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AXk1IaPSKEGA-TrNgoRMO

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 reverse-geocoding-api-x402-donnyautomation-com-5ef4f0f9
```

Example prompt: What's the street address at latitude 48.8584, longitude 2.2945? I need the full structured address including road, city, and country.

## When to prefer this

Choose this endpoint when you need a reliable, worldwide reverse geocode with no risk of hallucinated addresses — it explicitly returns 404 rather than fabricating a result. Ideal for AI agents in logistics, delivery tracking, geofencing, and mapping that need trustworthy structured address data. At $0.01 USDC per call it is cost-effective for moderate-volume use cases.

## Known failure modes

- Coordinates in ocean or unmapped area return 404 with no fabricated fallback
- Invalid latitude (outside -90..90) or longitude (outside -180..180) returns an error
- Missing lat or lon query parameter results in a validation error
- Very remote or sparse areas may return only partial address fields (e.g. country only)

## How this service works

Reverse geocoding: latitude/longitude to a street address, worldwide, via OpenStreetMap Nominatim. Returns displayName plus structured address (road, city, state, postcode, country), place type and attribution. Requires BOTH ?lat= and ?lon=. Errors: 400 bad_coords (either missing or non-numeric) or coords_out_of_range (lat -90..90, lon -180..180), 404 no_match for ocean or unmapped points, 502 geocoder_unavailable. The OPPOSITE direction (name to coordinates) is /geocode.

## Output

Returns the display name (full human-readable address string), structured address fields (road, city, state, postcode, country), plus place type and category. Returns 404 for ocean coordinates or unmapped areas — never fabricates an address.

## 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": "string",
       "description": "Latitude, -90..90 (e.g. 48.8584)."
      },
      "lon": {
       "type": "string",
       "description": "Longitude, -180..180 (e.g. 2.2945)."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ts": "2026-08-01T00:00:00.000Z",
  "lat": 48.8584,
  "lon": 2.2945,
  "address": {
   "city": "Paris",
   "road": "Avenue Gustave Eiffel",
   "country": "France",
   "postcode": "75007"
  },
  "attribution": "Data © OpenStreetMap contributors, ODbL. Geocoding via Nominatim.",
  "displayName": "Tour Eiffel, Avenue Gustave Eiffel, Paris, France"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/reverse-geocoding-api-x402-donnyautomation-com-5ef4f0f9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.donnyautomation.com](https://www.zero.xyz/host/x402.donnyautomation.com/llms.txt)
