plan_journey
Plan a public transit journey between two stations or coordinates, returning ranked itineraries with leg details and transfer counts.
Instructions
Plan a public-transit (rail/subway) journey using a self-hosted OpenTripPlanner instance (self-hosted OTP (Kanto rail/subway)). 'from' and 'to' are each a station name (e.g. "新宿") or a "lat,lon" coordinate. Returns ranked itineraries with per-leg lines (line name, stations, minutes), departure/arrival times, and transfer count. Accurate within the covered area (Kanto); returns no route for places outside coverage.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Destination: a station name or a "lat,lon" coordinate. | |
| from | Yes | Origin: a station name or a "lat,lon" coordinate. | |
| numItineraries | No | Number of itineraries to return (default 3). |