国际火车票搜索接口
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
from_division_id | Number | 可选 | 123456789 | 出发城市id | |
from_division_name | String | 可选 | 法兰克福市 | 出发城市名称 | |
from_station_code | String | 可选 | FLANK | 出发车站编码 | |
from_station_name | String | 可选 | 法兰克福站 | 出发车站名称 | |
to_division_id | Number | 可选 | 123456 | 到达城市id | |
to_division_name | String | 可选 | 加州 | 到达城市名称 | |
to_station_code | String | 可选 | JZ | 到达车站编码 | |
to_station_name | String | 可选 | 加州车站 | 到达车站名称 | |
dep_date | String | 可选 | 2019-11-11 | 出发日期 | |
dep_time | String | 可选 | 01:01 | 发车时间 | |
adult | Number | 可选 | 4 | 成人数量 | |
child | Number | 可选 | 2 | 儿童数量 | |
old | Number | 可选 | 3 | 老人数量 | |
young | Number | 可选 | 3 | 青年数量 | |
async_key | String | 可选 | qwertyuio | 异步轮询key | |
duration | Number | 可选 | 4 | 持续时长,单位小时 | |
count | Number | 可选 | 5 | 单次查询返回数量,默认5,最大100 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | RailSolutionRS | 仓位信息 | |
|
{"from_station_name":"法兰克福站","async_key":"qwertyuio","from_division_id":123456789,"young":3,"old":3,"dep_time":"01:01","count":5,"to_division_id":123456,"from_division_name":"法兰克福市","from_station_code":"FLANK","dep_date":"2019-11-11","duration":4,"to_station_code":"JZ","to_station_name":"加州车站","to_division_name":"加州","adult":4,"child":2}
{ "result":{ "success":true, "err_code":"001", "err_msg":"系统错误", "async_key":"b4779ce2f0aeb2e44be8076a4de12633", "has_more":"true", "railSolutions":[ { "sections":[ { "trains":[ { "arrival":"2019-11-22 12:00", "departure":"2019-11-22 02:00", "to_station_name":"法兰克福站", "to_station_code":"CLK", "from_station_name":"加州火车票", "from_station_code":"NSD", "type":"高等坐席", "number":"N101" } ], "services":[ { "booking_type":"成人票全价", "booking_code":"qwe", "unit_price":10000, "price":40000, "stock":3, "offer_name":"全价票", "offer_code":"quanj", "service_name":"经济舱", "service_code":"jingji" } ], "carrier_code":"CDALX", "carrier_name":"捷克铁路" } ], "fee_price":3000, "transfer_times":2, "duration":27, "arrival":"2019-11-22 10:00", "departure":"2019-11-22 02:00", "to_station_name":"法兰克福站", "to_station_code":"flank", "from_station_name":"加州火车站", "from_station_code":"calafni" } ] } }
{"result":{"success":"不等于true","err_msg":"Illegal request","err_code":"sign-check-failure"}}
错误码 | 错误描述 | 解决方案 |
---|