First and last bus
bus_first_lastFind first and last bus departure times for a Taiwan route by city and date, per direction and sub-route, with timetable-derived results where official lists are unavailable.
Instructions
When the first and the last bus of a route leave on a day, per direction and sub-route. Taipei, New Taipei and Tainan publish no first/last list, so there it is worked out from the timetable. Example: city "Taichung", routeName "300"; or city "InterCity", routeName "1610".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | Yes | City: a TDX code (Taipei, NewTaipei, Taoyuan, Taichung, Tainan, Kaohsiung, Keelung, Hsinchu, HsinchuCounty, MiaoliCounty, ChanghuaCounty, NantouCounty, YunlinCounty, ChiayiCounty, Chiayi, PingtungCounty, YilanCounty, HualienCounty, TaitungCounty, KinmenCounty, PenghuCounty, LienchiangCounty) or its Chinese name (臺北市, 新北市, ...), or "InterCity" for 公路客運 / 國道客運 coaches between cities. | |
| date | No | Travel date in Taiwan, YYYY-MM-DD (default: today). | |
| direction | No | Only one direction: "outbound" (去程) or "inbound" (返程). Default: both. | |
| routeName | Yes | Exact route name as TDX lists it, e.g. "307", "紅5", "1610". Find it with bus_route_search. |