🧭
plan_journeyComputes public transport itineraries between two places (names, stop ids or 'lat,lon'), with walking legs, transfers and real-time data. Shows them as a list and on a map. Give it the place names of the user as they are: no need to search them first. Fails listing the candidates when a name is ambiguous: call it again with the value given for the right one. Between city names (e.g. 'Paris' to 'Nantes'), the long-distance itineraries start and end at the stations, without the local legs to/from the city center; give an address for door-to-door itineraries. The itineraries do not all leave from (or arrive at) the same station: give the user the station of each one (departure, arrival: name, time, local time and track of the boarding in the first vehicle and of the leaving of the last one). Service alerts (disruptions, works, closed lines or elevators) active at the time of a leg or departure are numbered after it, e.g. 'alerts [1]', and listed at the end: tell the user briefly about those of the options you propose. The itineraries do not avoid the lines with an alert: warn when one says the service is interrupted (NO_SERVICE).
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": {
"to": "<to>"
},
"name": "plan_journey"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Destination: place name, stop id or 'lat,lon'. Names are searched near the origin. | |
| bike | No | Bike of the user: TO_STATION (ridden to the first stop, then left there), ON_BOARD (carried on board, ridden at both ends; only trips allowing bikes). Default NONE. | |
| from | No | Origin: place name, stop id or 'lat,lon'. Default: 'position'. | |
| time | No | Departure (or arrival with arriveBy) date-time, ISO-8601: with offset, or in the local time of the origin. Default: now. | |
| count | No | Minimum number of itineraries (default 5). | |
| modes | No | Allowed transit modes (default: all). | |
| arriveBy | No | true: 'time' is the latest arrival time. | |
| language | No | Preferred language of the names, as ISO 639-1 code (e.g. fr, de). The names of the stations are translated in fr, es, en, nl, de and it ("Gérone" for Girona in fr). | |
| position | No | Current position of the user, 'lat,lon': origin when 'from' is missing, else favors the places near it. | |
| pageCursor | No | Cursor returned by a previous call, for earlier or later itineraries. | |
| wheelchair | No | true: accessible paths for a wheelchair user. | |
| maxTransfers | No | Maximum number of transfers. | |
| walkingSpeed | No | Walking speed (default NORMAL, about 4.3 km/h). | |
| maxWalkMinutes | No | Maximum walk (or bike ride) to the first stop and from the last stop, in minutes (default 25): lower for a user who walks little. | |
| transferMargin | No | COMFORTABLE: 5 more minutes reserved for each transfer (default NORMAL). |