Plan Transit Journey
transport-rest.transit.plan_journeyPlan a Berlin/Brandenburg public transit journey between two stop IDs and get leg-by-leg routes with lines, transfers, real-time delays, and duration.
Instructions
Plan a public transit journey between two Berlin/Brandenburg stops, with leg-by-leg routing (lines, transfers, real-time delays, duration). Stop IDs come from transport-rest.transit.search_locations or transport-rest.transit.nearby_stops. Data: v6.bvg.transport.rest (community HAFAS wrapper for BVG), no auth required, 100 req/min.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| arrival | No | ISO 8601 date-time to arrive at or before. Mutually exclusive with departure. | |
| results | No | Maximum number of journey options to return (default 3, max 10). | |
| departure | No | ISO 8601 date-time to depart at or after (e.g. "2026-09-01T08:00:00+02:00"). Mutually exclusive with arrival; defaults to now if neither is set. | |
| to_stop_id | Yes | Destination stop/station ID, obtained from transport-rest.location_search or transport-rest.nearby_stops. | |
| from_stop_id | Yes | Origin stop/station ID, obtained from transport-rest.location_search or transport-rest.nearby_stops. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present only when the call failed. Includes error code, message, request_id, and any provider-specific extras. | |
| result | No | Tool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response. |