各位亲爱的用户:
您好!为了给您提供更优质的售后服务,保障您在平台获得更多权益,需要您登录用户中心完成用户认证操作。完成用户认证后,您可在平台顺利购买数据。
若用户未完成用户认证操作,或将影响您的购买体验,望各位用户知悉。
站站查询接口
标识:station2s
- 接口地址:
https://way.jd.com/jisuapi/station2s
- 请求方式:
HTTPS GET POST
- 请求示例:
https://way.jd.com/jisuapi/station2s?start=杭州&end=北京&appkey=您申请的APPKEY
QUERY请求参数
- 公共请求参数
-
名称 类型 必填 示例值 描述 appkey String 是 1 您申请的appkey - 业务请求参数
-
名称 类型 必填 示例值 描述 start String 是 杭州 出发 end String 是 北京 到达
返回参数
- 公共返回参数
-
名称 类型 示例值 描述 code string 10000 更多返回参数示例值请参看“错误参照码” charge boolean false 或 true false:不扣费 true:扣费 remain long 1305 数据剩余次数 msg string 查询成功 更多返回参数示例值请参看“错误参照码” result object {...} 数据查询结果 - 业务返回参数
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
msg | string | ok | 错误信息 |
result | array | [...] | 结果 |
pricetd | string | pricetd | |
costtime | string | 5时55分 | 用时 |
distance | string | 1279 | 距离 |
pricegr1 | string | 高级软卧上票价 | |
pricegr2 | string | 高级软卧下票价 | |
trainno | string | G34 | 车次 |
type | string | 高铁 | 类型 |
isend | string | 1 | 是否终点 |
priceyd | string | 0.0 | 一等座票价 |
departuretime | string | 07:10 | 出发时间 |
priceed | string | 538.5 | 二等座票价 |
priceyw2 | string | 0 | 硬卧中票价 |
sequenceno | string | 1 | 顺序 |
priceyw1 | string | 0 | 硬卧上票价 |
pricesw | string | 商务座票价 | |
priceyw3 | string | 0 | 硬卧下票价 |
station | string | 杭州东 | 出发站 |
arrivaltime | string | 13:05 | 到达时间 |
pricerw1 | string | 0 | 软卧上票价 |
endstation | string | 北京南 | 到达站 |
pricerw2 | string | 0 | 软卧下票价 |
status | string | 0 | 状态 |
返回示例值
{"code":"10000","charge":false,"remain":1305,"msg":"查询成功","result":{
"status":"0",
"msg":"ok",
"result":[
{
"trainno":"G34",
"type":"高铁",
"station":"杭州东",
"endstation":"北京南",
"departuretime":"07:10",
"arrivaltime":"13:05",
"sequenceno":"1",
"costtime":"5时55分",
"distance":"1279",
"isend":"1",
"pricesw":"",
"pricetd":"",
"pricegr1":"",
"pricegr2":"",
"pricerw1":"0",
"pricerw2":"0",
"priceyw1":"0",
"priceyw2":"0",
"priceyw3":"0",
"priceyd":"0.0",
"priceed":"538.5"
},
{
"trainno":"G20",
"type":"高铁",
"station":"杭州东",
"endstation":"北京南",
"departuretime":"08:30",
"arrivaltime":"13:30",
"sequenceno":"1",
"costtime":"5时0分",
"distance":"1279",
"isend":"1",
"pricesw":"",
"pricetd":"",
"pricegr1":"",
"pricegr2":"",
"pricerw1":"0",
"pricerw2":"0",
"priceyw1":"0",
"priceyw2":"0",
"priceyw3":"0",
"priceyd":"907.0",
"priceed":"538.5"
}
]
}}