Search public-transport objects
search_pt_objectsFind public-transport networks, lines, routes, or stop areas by name and get their IDs for use in journey planning, departures, and timetables.
Instructions
Find public-transport objects (networks, lines, routes, stop_areas, transportation modes) by name and return their ids. Use this to resolve a line to its id — e.g. 'metro 14' -> a 'line:...' id — to pass as line_id in next_departures/stop_schedules, or to forbid a line, transportation mode or network in plan_journey.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Max results (default 10). | |
| query | Yes | Free-text search, e.g. 'metro 14', 'RER A', 'bus 38' or a network name. | |
| types | No | Restrict result types (default: network, commercial_mode, line, route, stop_area). Use ['line'] when looking for a line id. |