# Geocode an address

Free-text address or place search on OpenStreetMap data (Nominatim): coordinates, display name, structured address, OSM type/id. Needs q. Served by OpenStreetMap.

Free-text address or place search on OpenStreetMap data (Nominatim): coordinates, display name, structured address, OSM type/id. Worldwide, no key. Low rate limit (1 req/s).

- Tool ID: `nominatim/geocode`
- Name in the catalog: Geocode an address (OpenStreetMap)
- Provider: [OpenStreetMap](/providers/nominatim.md)
- Price: no charge per call
- Authentication: an authorised Agentik workspace is required for execution, including zero-price tools.

## Pricing contract

No charge per call. A workspace is still needed so your agent can call it.


```json
{
  "model": "per_call",
  "amountUsd": 0
}
```

## Complete input schema


```json
{
  "type": "object",
  "properties": {
    "q": {
      "type": "string",
      "minLength": 2,
      "maxLength": 300,
      "description": "Free-form query, e.g. '10 Downing Street, London'"
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 10,
      "default": 3
    },
    "countrycodes": {
      "type": "string",
      "pattern": "^[a-z]{2}(,[a-z]{2})*$",
      "description": "Restrict to ISO 3166-1 alpha-2 codes, e.g. 'fr,be'"
    },
    "language": {
      "type": "string",
      "minLength": 2,
      "maxLength": 10,
      "description": "Preferred language for names, e.g. 'en' or 'fr'",
      "default": "en"
    }
  },
  "required": [
    "q"
  ],
  "additionalProperties": false
}
```

## Published example

This is the provider tool’s published example. Replace example values with the user’s requested inputs, respecting the schema; do not execute an example merely to test a connection.


```json
{
  "tool_id": "nominatim/geocode",
  "input": {
    "q": "Eiffel Tower",
    "limit": 1
  }
}
```

## Execute and retrieve

Inspect again before execution, explain the price and obtain the required authority. Use MCP run_tool or POST /v1/run with this tool ID, valid input and an idempotency key. Save the returned run ID and follow the actual state. If Agentik answers that the tool is temporarily unavailable, do not retry it blindly; use discovery to propose an alternative.

A partial or uncertain result can still have consumed provider resources. Consult [billing](/docs/billing.md), [idempotency](/docs/idempotency.md) and [asynchronous results](/docs/async.md).

Licence: ODbL 1.0 (OpenStreetMap).

Attribution: Data © OpenStreetMap contributors, ODbL 1.0 (osm.org/copyright). Nominatim usage policy: max 1 request/second..

[Provider documentation](https://nominatim.org/release-docs/latest/api/Search/)

[REST inspection](https://api.agentik.cc/v1/tools/nominatim/geocode) · [OpenAPI](/openapi.json) · [Connection guide](/connect.md)

---

[HTML page](/providers/nominatim/geocode) · [Agent index](/llms.txt)
