Live bus positions
bus_positionsRetrieve real-time positions, speed, direction, and status for buses on a specified city route, including low-floor ramp availability and last stop.
Instructions
Where the buses on a route are right now: position, speed, direction and status of each vehicle, whether it is low-floor with a ramp (where the city publishes its fleet), and the stop each one last arrived at or left. Example: city "Taipei", routeName "307".
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. | |
| 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. |