Bus fares
bus_fareRetrieve bus fare information between stops or per section for a specified city and route, including cash single-ticket and smart-card prices by passenger type.
Instructions
What a bus route costs, per passenger type and ticket (cash single ticket, smart card such as EasyCard): the fare between two stops for coaches and routes priced by distance, or the fare per section for city routes. Example: city "InterCity", routeName "1610", from "臺北", to "高雄"; or city "Taipei", routeName "307".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Where to travel to: part of a stop name, or a city, e.g. "臺北轉運站", "岡山", "高雄". | |
| 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. | |
| from | No | Where to travel from: part of a stop name, or a city, e.g. "臺北轉運站", "岡山", "高雄". | |
| limit | No | Maximum number of fares to return (default 20). | |
| 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. |