TOOL API

get_train_route_stations

Query detailed stopping information for a specific train number within a specified interval, including passing stations, arrival time, departure time and stop duration. Used when user asks about stopping stations of a specific train.

Other1 credits

Call information

Tool slug
12306.get_train_route_stations
Provider
12306 Train Tickets
Average response
22 ms
Calls in 7 days
2

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` 解析。