Convert a place name to coordinates, or coordinates to a place
geocodePlace names to coordinates and back: up to 5 matches for a name, or the place at a coordinate. Each match has a display name, latitude and longitude, country code and type. Attribution: © OpenStreetMap contributors, ODbL. Results are cached seven days. Price: $0.002 per successful call, paid with x402 (USDC on Base, Solana and 10 more networks); failed calls are not charged.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "geocode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Place name, e.g. Berlin | |
| lat | No | For reverse geocoding: latitude | |
| lon | No | For reverse geocoding: longitude |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | ||
| source | No | ||
| results | No | ||
| checkedAt | No | ||
| attribution | No |