# Geocode (Forward & Reverse) via OpenStreetMap Nominatim

> Geocode (Forward & Reverse) via OpenStreetMap Nominatim is a paid API for AI agents from 402.com.tr, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Forward geocodes an address string or reverse geocodes lat/lon coordinates using OpenStreetMap Nominatim, returning up to 5 results with display names and address components.

## Facts

- Endpoint: GET https://402.com.tr/api/x402/geocode
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/geocode-forward-reverse-via-openstreetmap-nominatim-4cf8bfc7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_K9y9bHpGXScJ_FsUF2Mjz

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 geocode-forward-reverse-via-openstreetmap-nominatim-4cf8bfc7
```

Example prompt: Can you geocode '1600 Pennsylvania Avenue NW, Washington, DC' and give me the latitude, longitude, and full address components?

## When to prefer this

Choose this endpoint when you need lightweight forward or reverse geocoding backed by OpenStreetMap/Nominatim community data, especially for non-commercial or global address lookups. Ideal for agents that need to resolve place names to coordinates or coordinates to human-readable addresses without needing postal-authority accuracy. Good for automation pipelines that require affordable geocoding ($0.01/call) with structured address components. Prefer commercial geocoders (Google, HERE) when authoritative postal data or high result accuracy is critical.

## Known failure modes

- No results found for ambiguous or misspelled address — returns empty array
- Missing required parameter (neither q nor lat+lon provided) — likely returns error
- Coordinates outside valid range (lat > 90, lon > 180) — may return empty or error
- Very new or obscure addresses not yet in OpenStreetMap — no results
- Rate limiting or payment failure for $0.01 USDC per call

## How this service works

Forward geocode an address (q=) or reverse geocode lat=+lon= using OpenStreetMap Nominatim. Returns up to 5 hits with display name and address parts. Community map data — not a postal authority.

## Output

Returns up to 5 geocoding hits from OpenStreetMap Nominatim, each containing a display name (human-readable full address), structured address parts (street, city, county, country, postcode, etc.), and geographic coordinates. Results are community-sourced map data, not from a postal authority.

## 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"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "q": {
       "type": "string",
       "description": "Address text (forward)"
      },
      "lat": {
       "type": "string",
       "description": "Latitude (reverse)"
      },
      "lon": {
       "type": "string",
       "description": "Longitude (reverse)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/geocode-forward-reverse-via-openstreetmap-nominatim-4cf8bfc7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 402.com.tr](https://www.zero.xyz/host/402.com.tr/llms.txt)
