OpenStreetMap Nominatim Reverse Geocoding
Convert WGS84 latitude and longitude coordinates into structured street address, city, postal code, country code, and OSM place metadata.
curl -sG "https://api.agentapigate.ai/v1/geo/nominatim/reverse_geocode" \ --data-urlencode "lat=51.5074" \ --data-urlencode "lon=-0.1278" \ --data-urlencode "format=md" \ -H "Authorization: Bearer aag_live_YOUR_KEY" \ -H "X-AAG-Max-Cost: 0.0100"
# OpenStreetMap Nominatim Reverse Geocoding (`geo.nominatim.reverse_geocode`) **place_id**: 281467806 · **display_name**: Mileage Central Point of London Plaque, Charing Cross, Westminster, Covent Garden, City of Westminster, Greater London, England, WC2N 5DU, United Kingdom · **category**: historic · **type**: memorial ## address - **historic**: Mileage Central Point of London Plaque - **road**: Charing Cross - **quarter**: Westminster - **suburb**: Covent Garden - **city**: City of Westminster - **ISO3166-2-lvl8**: GB-WSM - **state**: England - **ISO3166-2-lvl4**: GB-ENG - **postcode**: WC2N 5DU - **country**: United Kingdom - **country_code**: gb ## boundingbox - [1] 51.5073562 - [2] 51.5074562 - [3] -0.1277415 - [4] -0.1276415
Endpoint Parameters, Cost & Token Economy Reference
Endpoint ID:geo.nominatim.reverse_geocode · Method: GET| Parameter | Type | Req | Sample / Default | Description |
|---|---|---|---|---|
| lat | number | required | 51.5074 | WGS84 latitude (-90 to 90, e.g. 51.5074) |
| lon | number | required | -0.1278 | WGS84 longitude (-180 to 180, e.g. -0.1278) |
| zoom | number | optional | 18 | Address detail level from 3 (country) to 18 (building, default 18) |
| format | enum | optional | json | compact | md | Response format; compact or md cuts LLM tokens. |
| dry_run | 0 | 1 | optional | 1 | Returns exact pre-flight price quote & validation at $0.00 cost. |
| Access Rail / Metric | Value | Policy & SLA |
|---|---|---|
| API Key (PAYG) | $0.0015 / call | $0/mo · Balance never expires |
| Remote MCP Tool | geo_nominatim_reverse_geocode | OAuth 2.1 Hub & /mcp/local |
| x402 Base USDC | $0.0020 / call | Zero-signup USDC enabled |
| P50 Latency | 1418 ms | $0 billed on empty or 4xx/5xx |
| Token Economy | 560t → 190t (-68%) | Partner credit: eligible |
| Data Attribution | Data © OpenStreetMap contributors, ODbL 1.0 (nominatim.openstreetmap.org — Reverse Geocoding) | |
More geo.nominatim Sibling Endpoints
Frequently Asked Questions
How do I call OpenStreetMap Nominatim Reverse Geocoding (geo.nominatim.reverse_geocode) over REST and Remote MCP?
Send GET requests to https://api.agentapigate.ai/v1/geo/nominatim/reverse_geocode with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool geo_nominatim_reverse_geocode on https://mcp.agentapigate.ai/mcp.
What does geo.nominatim.reverse_geocode cost per call and are failed calls billed?
Each successful HTTP 200 response costs $0.0015 USD from a non-expiring PAYG balance ($0/month minimum). Upstream errors, empty responses, and ?dry_run=1 pre-flight quotes always bill $0.00.
How does ?format=md or ?format=compact optimize AI agent token usage on geo.nominatim.reverse_geocode?
Passing ?format=md transforms the response into normalized Markdown (~190 tokens vs ~560 raw tokens, saving 68% of LLM context budget) while preserving structured JSON via ?format=json.
Can I restrict an AI agent key to only local endpoints with a daily USD cap?
Yes. Create a scoped aag_agent_* sub-key via POST /v1/keys with allowed_packs: ["local"], optional allowed_endpoints: ["geo.nominatim.reverse_geocode"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.