# Reverse Geocoder (Lat/Lng to Address) via OpenStreetMap Nominatim

> Reverse Geocoder (Lat/Lng to Address) via OpenStreetMap Nominatim is a paid API for AI agents from x402-deployer.x402-deployer.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Converts latitude/longitude coordinates into a structured postal address with house number, road, city, county, state, postcode, and country using OpenStreetMap Nominatim.

## Facts

- Endpoint: POST https://x402-deployer.x402-deployer.workers.dev/reverse-geocode
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-741af90a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7zsyHyTgGvImHKhdGScOW

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-deployer-x402-deployer-workers-dev-741af90a -d '<json body>'
```

Example prompt: What's the street address at coordinates 48.8584° N, 2.2945° E? I need the full structured address including road, city, postcode, and country.

## When to prefer this

Use this endpoint when you need to convert raw GPS or map coordinates into a human-readable postal address — for example, enriching location data from a device, geotagging content, or displaying a friendly address to users. Prefer this over forward geocoding services when you already have coordinates and need address details. Best when you need structured address components (not just a display string) with global coverage via OpenStreetMap.

## Known failure modes

- Coordinates in ocean or uninhabited area return no result or sparse address fields
- Highly rural coordinates may only return country/region with no street-level detail
- Invalid or out-of-range lat/lng values (e.g. lat > 90) return an error
- Rate limits or Nominatim upstream outages may cause timeouts
- Missing ODbL attribution compliance may be a legal issue for downstream use

## How this service works

Reverse geocoder / lat-lng-to-address. Coords → structured address. OpenStreetMap Nominatim.

## Output

A structured address object containing house number, road/street, city, county, state, postcode, and country derived from the input coordinates, backed by OpenStreetMap Nominatim with global coverage.

## 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": {
     "required": [
      "latitude",
      "longitude"
     ],
     "properties": {
      "zoom": {
       "type": "number",
       "description": "Address detail level. 3 (country) → 5 (state) → 10 (city) → 13 (village) → 17 (street, default) → 18 (building)."
      },
      "latitude": {
       "type": "number",
       "description": "Latitude in decimal degrees. Range -90 to 90."
      },
      "longitude": {
       "type": "number",
       "description": "Longitude in decimal degrees. Range -180 to 180."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "name": {
       "type": "string"
      },
      "type": {
       "type": "string"
      },
      "zoom": {
       "type": "integer"
      },
      "osm_id": {
       "type": "integer"
      },
      "source": {
       "type": "string"
      },
      "address": {
       "type": "object",
       "properties": {
        "city": {
         "type": "string"
        },
        "road": {
         "type": "string"
        },
        "state": {
         "type": "string"
        },
        "county": {
         "type": "string"
        },
        "country": {
         "type": "string"
        },
        "postcode": {
         "type": "string"
        },
        "country_code": {
         "type": "string"
        }
       }
      },
      "latitude": {
       "type": "number"
      },
      "place_id": {
       "type": "integer"
      },
      "longitude": {
       "type": "number"
      },
      "importance": {
       "type": "number"
      },
      "bounding_box": {
       "type": "array",
       "items": {
        "type": "number"
       }
      },
      "display_name": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-741af90a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-deployer.x402-deployer.workers.dev](https://www.zero.xyz/host/x402-deployer.x402-deployer.workers.dev/llms.txt)
