携程火车票单程查询v2

## 携程火车票单程查询v2

### 1) 请求地址

>https://m.ctrip.com/restapi/soa2/14666/json/TrainGetTransferRouteV2?_fxpcqlniredt=09031078419575776586&x-traceID=09031078419575776586-1636965163954-7608539

### 2) 调用方式:HTTP post

### 3) 接口描述:

* 具体参数

### 4) 请求参数:

```
{
    "head": {
        "cid": "",
        "ctok": "",
        "cver": "1.0",
        "lang": "01",
        "sid": "8888",
        "syscode": "09",
        "auth": "",
        "xsid": "",
        "extension": [
            {
                "name": "protocal",
                "value": "https"
            }
        ],
        "clientID": "",
        "APIKey": "CtripWap",
        "source": "Online",
        "version": "708.000"
    },
    "contentType": "json",
    "channel": "PC",
    "departureName": "重庆北",
    "arrivalName": "成都",
    "departureDate": "20211119",
    "serviceVersion": 1,
    "OptionalFilter": {
        "TransferType": "Train"
    }
}
```
#### GET参数:
|字段名称       |字段说明         |类型            |必填            |备注     |
| -------------|:--------------:|:--------------:|:--------------:| ------:|
|_fxpcqlniredt||string|Y|-|
|x-traceID||string|Y|-|


#### POST参数:
|字段名称       |字段说明         |类型            |必填            |备注     |
| -------------|:--------------:|:--------------:|:--------------:| ------:|
|0||string|Y|-|
|1||string|Y|-|
|2||string|Y|-|
|3||string|Y|-|
|4||string|Y|-|
|5||string|Y|-|
|6||string|Y|-|
|7||string|Y|-|
|8||string|Y|-|
|9||string|Y|-|
|10||string|Y|-|
|11||string|Y|-|
|12||string|Y|-|
|13||string|Y|-|
|14||string|Y|-|
|15||string|Y|-|
|16||string|Y|-|
|17||string|Y|-|
|18||string|Y|-|
|19||string|Y|-|
|20||string|Y|-|
|21||string|Y|-|
|22||string|Y|-|
|23||string|Y|-|

### 5) 请求返回结果:

```

{
    "ResponseStatus": {
        "Timestamp": "/Date(1636965358355+0800)/",
        "Ack": "Success",
        "Errors": [],
        "Build": null,
        "Version": null,
        "Extension": [
            {
                "Id": "CLOGGING_TRACE_ID",
                "Version": null,
                "ContentType": null,
                "Value": "7343953780518949291"
            },
            {
                "Id": "RootMessageId",
                "Version": null,
                "ContentType": null,
                "Value": "100025527-0a0ed3c2-454712-4211085"
            }
        ]
    },
    "Message": null,
    "RetCode": 0,
    "RecommentInfo": null,
    "TransferLines": [
        
       
      

        {
            "TransferLineTag": null,
            "TotalPrice": "406",
            "ActionType": "Train_Train",
            "Tag": "",
            "TagColor": "",
            "JumpUrl": "",
            "IsDirect": false,
            "DataType": 0,
            "Lines": [
                {
                    "Index": 0,
                    "Type": "Train",
                    "TrafficIcon": "http://images3.c-ctrip.com/train/app/730/icon_train_train1.png",
                    "TrafficType": "火车",
                    "Flight": null,
                    "Train": {
                        "TrainNo": null,
                        "TrainNumber": "D1833",
                        "DepartStation": "重庆西",
                        "ArriveStation": "贵阳东",
                        "DepartTime": "20211119162100",
                        "ArriveTime": "20211119183800",
                        "IsStartStation": false,
                        "DepartCity": null,
                        "ArriveCity": null,
                        "IsEndStation": false,
                        "RunTime": 137,
                        "PreSaleTime": null,
                        "TakeDays": 0,
                        "IsBookable": false,
                        "DepartLongitude": "106.444",
                        "DepartLatitude": "29.5075",
                        "ArriveLongitude": "106.752",
                        "ArriveLatitude": "26.672",
                        "SeatList": [
                            {
                                "SeatName": "二等座",
                                "SeatPrice": 138,
                                "SeatBookable": false,
                                "SeatInventory": 99,
                                "SeatPriority": 0,
                                "SeatQtyShow": null,
                                "SeatShowStyle": 0
                            },
                            {
                                "SeatName": "一等座",
                                "SeatPrice": 220,
                                "SeatBookable": false,
                                "SeatInventory": 19,
                                "SeatPriority": 0,
                                "SeatQtyShow": null,
                                "SeatShowStyle": 0
                            },
                            {
                                "SeatName": "无座",
                                "SeatPrice": 138,
                                "SeatBookable": false,
                                "SeatInventory": 0,
                                "SeatPriority": 0,
                                "SeatQtyShow": null,
                                "SeatShowStyle": 0
                            }
                        ]
                    },
                    "Bus": null,
                    "Car": null,
                    "Scenic": null
                },
                {
                    "Index": 1,
                    "Type": "Train",
                    "TrafficIcon": "http://images3.c-ctrip.com/train/app/730/icon_train_train1.png",
                    "TrafficType": "火车",
                    "Flight": null,
                    "Train": {
                        "TrainNo": null,
                        "TrainNumber": "G2196",
                        "DepartStation": "贵阳东",
                        "ArriveStation": "成都东",
                        "DepartTime": "20211119194600",
                        "ArriveTime": "20211119232100",
                        "IsStartStation": false,
                        "DepartCity": null,
                        "ArriveCity": null,
                        "IsEndStation": false,
                        "RunTime": 215,
                        "PreSaleTime": null,
                        "TakeDays": 0,
                        "IsBookable": false,
                        "DepartLongitude": "106.752",
                        "DepartLatitude": "26.672",
                        "ArriveLongitude": "104.148",
                        "ArriveLatitude": "30.635",
                        "SeatList": [
                            {
                                "SeatName": "二等座",
                                "SeatPrice": 268,
                                "SeatBookable": false,
                                "SeatInventory": 99,
                                "SeatPriority": 0,
                                "SeatQtyShow": null,
                                "SeatShowStyle": 0
                            },
                            {
                                "SeatName": "一等座",
                                "SeatPrice": 429,
                                "SeatBookable": false,
                                "SeatInventory": 6,
                                "SeatPriority": 0,
                                "SeatQtyShow": null,
                                "SeatShowStyle": 0
                            },
                            {
                                "SeatName": "商务座",
                                "SeatPrice": 805,
                                "SeatBookable": false,
                                "SeatInventory": 0,
                                "SeatPriority": 0,
                                "SeatQtyShow": null,
                                "SeatShowStyle": 0
                            }
                        ]
                    },
                    "Bus": null,
                    "Car": null,
                    "Scenic": null
                }
            ]
        },
        {
            "TransferLineTag": null,
            "TotalPrice": "406",
            "ActionType": "Train_Train",
            "Tag": "",
            "TagColor": "",
            "JumpUrl": "",
            "IsDirect": false,
            "DataType": 0,
            "Lines": [
                {
                    "Index": 0,
                    "Type": "Train",
                    "TrafficIcon": "http://images3.c-ctrip.com/train/app/730/icon_train_train1.png",
                    "TrafficType": "火车",
                    "Flight": null,
                    "Train": {
                        "TrainNo": null,
                        "TrainNumber": "D1877",
                        "DepartStation": "重庆西",
                        "ArriveStation": "贵阳东",
                        "DepartTime": "20211119160900",
                        "ArriveTime": "20211119182300",
                        "IsStartStation": false,
                        "DepartCity": null,
                        "ArriveCity": null,
                        "IsEndStation": false,
                        "RunTime": 134,
                        "PreSaleTime": null,
                        "TakeDays": 0,
                        "IsBookable": false,
                        "DepartLongitude": "106.444",
                        "DepartLatitude": "29.5075",
                        "ArriveLongitude": "106.752",
                        "ArriveLatitude": "26.672",
                        "SeatList": [
                            {
                                "SeatName": "二等座",
                                "SeatPrice": 138,
                                "SeatBookable": false,
                                "SeatInventory": 99,
                                "SeatPriority": 0,
                                "SeatQtyShow": null,
                                "SeatShowStyle": 0
                            },
                            {
                                "SeatName": "一等座",
                                "SeatPrice": 220,
                                "SeatBookable": false,
                                "SeatInventory": 99,
                                "SeatPriority": 0,
                                "SeatQtyShow": null,
                                "SeatShowStyle": 0
                            },
                            {
                                "SeatName": "无座",
                                "SeatPrice": 138,
                                "SeatBookable": false,
                                "SeatInventory": 0,
                                "SeatPriority": 0,
                                "SeatQtyShow": null,
                                "SeatShowStyle": 0
                            }
                        ]
                    },
                    "Bus": null,
                    "Car": null,
                    "Scenic": null
                },
                {
                    "Index": 1,
                    "Type": "Train",
                    "TrafficIcon": "http://images3.c-ctrip.com/train/app/730/icon_train_train1.png",
                    "TrafficType": "火车",
                    "Flight": null,
                    "Train": {
                        "TrainNo": null,
                        "TrainNumber": "G2196",
                        "DepartStation": "贵阳东",
                        "ArriveStation": "成都东",
                        "DepartTime": "20211119194600",
                        "ArriveTime": "20211119232100",
                        "IsStartStation": false,
                        "DepartCity": null,
                        "ArriveCity": null,
                        "IsEndStation": false,
                        "RunTime": 215,
                        "PreSaleTime": null,
                        "TakeDays": 0,
                        "IsBookable": false,
                        "DepartLongitude": "106.752",
                        "DepartLatitude": "26.672",
                        "ArriveLongitude": "104.148",
                        "ArriveLatitude": "30.635",
                        "SeatList": [
                            {
                                "SeatName": "二等座",
                                "SeatPrice": 268,
                                "SeatBookable": false,
                                "SeatInventory": 99,
                                "SeatPriority": 0,
                                "SeatQtyShow": null,
                                "SeatShowStyle": 0
                            },
                            {
                                "SeatName": "一等座",
                                "SeatPrice": 429,
                                "SeatBookable": false,
                                "SeatInventory": 6,
                                "SeatPriority": 0,
                                "SeatQtyShow": null,
                                "SeatShowStyle": 0
                            },
                            {
                                "SeatName": "商务座",
                                "SeatPrice": 805,
                                "SeatBookable": false,
                                "SeatInventory": 0,
                                "SeatPriority": 0,
                                "SeatQtyShow": null,
                                "SeatShowStyle": 0
                            }
                        ]
                    },
                    "Bus": null,
                    "Car": null,
                    "Scenic": null
                }
            ]
        }
    ],
    "Cities": [
        {
            "Name": "内江",
            "Code": null,
            "Tag": "最多人选"
        },
        {
            "Name": "广元",
            "Code": null,
            "Tag": ""
        },
        {
            "Name": "贵阳",
            "Code": null,
            "Tag": ""
        },
        {
            "Name": "内江",
            "Code": null,
            "Tag": ""
        }
    ]
}


```


### 6) 请求返回结果参数说明:
|字段名称       |字段说明         |类型            |必填            |备注     |
| -------------|:--------------:|:--------------:|:--------------:| ------:|
|ResponseStatus||string|Y|-|
|Timestamp||string|Y|-|
|Ack||string|Y|-|
|Errors||string|Y|-|
|Build||string|Y|-|
|Version||string|Y|-|
|Extension||string|Y|-|
|Id||string|Y|-|
|ContentType||string|Y|-|
|Value||string|Y|-|
|Message||string|Y|-|
|RetCode||string|Y|-|
|RecommentInfo||string|Y|-|
|TransferLines||string|Y|-|
|TransferLineTag||string|Y|-|
|TotalPrice||string|Y|-|
|ActionType||string|Y|-|
|Tag||string|Y|-|
|TagColor||string|Y|-|
|JumpUrl||string|Y|-|
|IsDirect||string|Y|-|
|DataType||string|Y|-|
|Lines||string|Y|-|
|Index||string|Y|-|
|Type||string|Y|-|
|TrafficIcon||string|Y|-|
|TrafficType||string|Y|-|
|Flight||string|Y|-|
|Train||string|Y|-|
|TrainNo||string|Y|-|
|TrainNumber||string|Y|-|
|DepartStation||string|Y|-|
|ArriveStation||string|Y|-|
|DepartTime||string|Y|-|
|ArriveTime||string|Y|-|
|IsStartStation||string|Y|-|
|DepartCity||string|Y|-|
|ArriveCity||string|Y|-|
|IsEndStation||string|Y|-|
|RunTime||string|Y|-|
|PreSaleTime||string|Y|-|
|TakeDays||string|Y|-|
|IsBookable||string|Y|-|
|DepartLongitude||string|Y|-|
|DepartLatitude||string|Y|-|
|ArriveLongitude||string|Y|-|
|ArriveLatitude||string|Y|-|
|SeatList||string|Y|-|
|Bus||string|Y|-|
|Car||string|Y|-|
|Scenic||string|Y|-|
|SeatName||string|Y|-|
|SeatPrice||string|Y|-|
|SeatBookable||string|Y|-|
|SeatInventory||string|Y|-|
|SeatPriority||string|Y|-|
|SeatQtyShow||string|Y|-|
|SeatShowStyle||string|Y|-|
|Cities||string|Y|-|
|Name||string|Y|-|
|Code||string|Y|-|

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

程序007

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值