TOOL API
get-train-route-stations
Get the intermediate stops for a specific train over a given segment, including arrival and departure times and dwell time at each station. Use it when the user asks which stations a particular train stops at; the train_no and station telecodes usually come from get-tickets or get-station-code-by-names, and relative dates must be resolved with get-current-date first.
Call information
- Tool slug
- 12306.get-train-route-stations
- Provider
- China Railway 12306
- Average response
- 0 ms
- Calls in 7 days
- 0
Input parameters
trainNorequired要查询的实际车次编号 `train_no`,例如 "240000G10336",而非"G1033"。此编号通常可以从 `get-tickets` 的查询结果中获取,或者由用户直接提供。
fromStationTelecoderequired该列车行程的**出发站**的 `station_telecode` (3位字母编码`)。通常来自 `get-tickets` 结果中的 `telecode` 字段,或者通过 `get-station-code-by-names` 得到。
toStationTelecoderequired该列车行程的**到达站**的 `station_telecode` (3位字母编码)。通常来自 `get-tickets` 结果中的 `telecode` 字段,或者通过 `get-station-code-by-names` 得到。
departDaterequired列车从 `fromStationTelecode` 指定的车站出发的日期 (格式: yyyy-MM-dd)。如果用户提供的是相对日期,请务必先调用 `get-current-date` 解析。