search_routes
Free-text search over every route in the TrainRouter atlas — matches route name, cities, train name, operator and countries, with optional category/country filters. Accent-insensitive; every word of the query must match. Returns compact per-route facts with id and trainrouter.com URL, sorted by renown with route-name matches first; with no query it lists the whole atlas by renown. Use get_route with a returned id for full detail, famous_routes for a ready-made top list, city_pair for A-to-B journey times.
Parameters4
| query | string | optional | Free text matched against name, cities, train, operator and countries — e.g. "glacier", "Tokyo", "Amtrak". Omit to browse all routes by renown. |
| category | string | optional | Only routes in this category. |
| country | string | optional | Only routes crossing this country — full name or 2-letter ISO code ("Switzerland" or "CH"). |
| limit | integer | optional | Max routes returned. Default 10, max 50. |
Raw schema
{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Free text matched against name, cities, train, operator and countries — e.g. \"glacier\", \"Tokyo\", \"Amtrak\". Omit to browse all routes by renown."
},
"category": {
"type": "string",
"enum": [
"high-speed",
"classic",
"night",
"scenic"
],
"description": "Only routes in this category."
},
"country": {
"type": "string",
"description": "Only routes crossing this country — full name or 2-letter ISO code (\"Switzerland\" or \"CH\")."
},
"limit": {
"type": "integer",
"description": "Max routes returned. Default 10, max 50."
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}