Geocode a place name
geocodeConvert place names or addresses into coordinates (lat, lon) to disambiguate locations or get coordinates for a bounding box. Optionally bias results toward a nearby point.
Instructions
Turn a place name or address into coordinates (lat, lon), best match first. The station and route tools already accept place names, so call this only to pick between ambiguous places or to get coordinates for a bbox. Give lat and lon to prefer results near a point.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "geocode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | No | Optional latitude to prefer nearby results. Give with lon. | |
| lon | No | Optional longitude to prefer nearby results. Give with lat. | |
| limit | No | How many matches to return, 1 to 10. Default 5. | |
| query | Yes | City, address or point of interest, e.g. "Puerta del Sol, Madrid". At most 200 characters. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| results | Yes |