plan_route
Search transit routes in Japan for departure, arrival, first, or last train between stations or locations.
Instructions
Search transit routes in Japan for departure, arrival, first train, or last train. Times are seconds from service-date midnight in the response timezone.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Destination endpoint from suggest_places/suggest_stations, or geo:<lat>,<lon>. | |
| via | No | Up to 3 waypoint endpoints. Departure/arrival searches only. | |
| date | No | Service date as YYYYMMDD. | |
| from | Yes | Origin endpoint from suggest_places/suggest_stations, or geo:<lat>,<lon>. | |
| time | No | HH:MM or HH:MM:SS. | |
| type | No | departure: 出発, arrival: 到着, first: 始発, last: 終電. | departure |
| toLabel | No | ||
| viaLabel | No | ||
| avoidWalk | No | ||
| fromLabel | No | ||
| allowModes | No | Transit modes to allow, for example ['rail', 'bus']. | |
| avoidModes | No | Transit modes to avoid, for example ['bus', 'air', 'ferry']. | |
| maxTransfers | No | ||
| numItineraries | No |