Search Routes
search_routesFind RegioJet connections between two locations on a given date and return route IDs to retrieve detailed route information.
Instructions
Search RegioJet connections between two locations on a date. Returns route ids for get_route_detail.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Response language; defaults to server setting. | |
| page | No | Paginate relative to cursor. | |
| to_id | Yes | Destination city or station id from find_locations. | |
| cursor | No | Cursor from a previous search_routes result. | |
| from_id | Yes | Origin city or station id from find_locations. | |
| tariffs | No | Passenger tariff per traveller, e.g. ['REGULAR', 'REGULAR', 'CHILD_UNDER_12']. See list_tariffs. | |
| to_type | Yes | ||
| currency | No | Price currency; defaults to server setting. | |
| from_type | Yes | ||
| departure_date | No | Departure date (YYYY-MM-DD). Defaults to today. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cursor | No | Pass back to search_routes together with page=FORWARD/BACKWARD to get the next/previous page. | |
| routes | Yes | ||
| currency | Yes |