接口地址:http://v.juhe.cn/multway/plans
支持格式:json
请求方法:http get/post
请求参数说明:
名称 必填 类型 说明 key 是 string 您申请的appkey from 是 string 出发城市/场站,格式如:北京 to 是 string 到达城市/场站,格式:上海 type 是 string 查询类型,2:机场三字码 ,3:城市或者场站名称 date 是 string 出发日期,格式:2016-09-01 time 否 string 出发时间,格式:08:00 mode 是 string 交通工具,2:飞机,4:火车,8:机场巴士,组合的就是几个相应的值相加
请求示例:http://v.juhe.cn/multway/plans?from=%E4%B8%8A%E6%B5%B7&to=%E5%8C%97%E4%BA%AC&date=2016-09-01&mode=2&type=3&key=
返回参数说明:
名称 类型 说明 error_code int 返回码 reason string 返回说明 result string 返回结果 cachtime int 方案信息有效期,单位:分 plans list 方案列表,方案是对应某一行程或子行程的一个具体可行的交通方案组合,每个方案由 1 个或多个子方案组成。 id string 方案编号 tripid string 行程id from string 出发站名称 to string 到达站名称 top int 推荐标示,8:推荐,4:省时,2:省钱,1:早到,可以是组合,比如 6=推荐+省钱 rank int 推荐值,格式:0-100,100 优先推荐 duration int 行程总耗时,格式:100 (100 分钟) stime string 开始时间 etime string 结束时间 transfer int 换乘次数 price number 价格 legs list 子方案,子方案是对应行程段的具体可行的交通方案,只能包括一个具体的日期、航班或车次及席别、价位信 息。 mode int 交通工具 no string 班次号 aircode string 航空公司代码 aircom string 类别简称 stop int 经停标识 sterm string 出发航站楼 eterm string 到达航站楼 cabinname string 席别座位名称 state int 状态
返回示例:JSON返回示例:
{ "reason": "查询成功", "result": { "data": [ { "date": "2016-09-01", "from": "上海", "id": "250e9c93356113c03c58244903059305", "plans": [ { "duration": 135, "etime": "2016-09-02 00:10", "from": "上海虹桥", "id": "39ca813b62abc48816ed5e80a639375f", "legs": [ { "aircode": "CA", "aircom": "国航", "cabinname": "经济舱", "eterm": "T3", "fromcity": "上海", "mode": 1, "no": "CA1886", "state": 0, "sterm": "T2", "stop": 0, "tocity": "北京" } ], "price": 640, "rank": 29336, "stime": "2016-09-01 21:55", "to": "北京首都", "top": 8, "transfer": 0, "tripid": "250e9c93356113c03c58244903059305" } ], "time": "", "to": "北京" } ], "cachtime": 30 }, "error_code": 0 }
接口地址:http://v.juhe.cn/multway/planinfo
支持格式:json
请求方法:http get/post
请求参数说明:
名称 必填 类型 说明 key 是 string 您申请的appkey pid 是 string 方案id,规划列表返回的方案 id
请求示例:http://v.juhe.cn/multway/planinfo.php?pid=449134a5f5b6d365a41b4cbb486b9b79&key=
返回参数说明:
名称 类型 说明 plans 方案 list 方案列表 id string 方案id rank int 推荐值,格式:0-100,100 优先推荐 duration int 行程总耗时,格式:100,分钟数 stime string 开始时间,格式:YYYY-MM-DD HH:mm etime string 结束时间,格式:YYYY-MM-DD HH:mm nums int 子方案数,格式:1 transfer int 换乘次数,格式:0/1 0 直达 >0 换乘 price number 方案总体价格 legs list 子方案 id int 子方案序号 from_id string 出发地场站标识,格式:tr_1812 from string 出发站名称 fromcity string 出发城市 to_id string 到达地场站标识,格式: tr_1811 to string 到达站名称,格式:承德 tocity string 到达城市,格式:上海 mode int 交通工具,1 飞机,2 火车,3 机场巴士 stime string 开始时间,格式:YYYY-MM-DD HH:mm etime string 结束时间 no string 班次号 stop int 经停次数 duration int 当前行程耗时,分钟 aircom string 类别简称,格式:国航/高铁/普客 aircode string 代码 scode string 出发地三字码,格式:pekmode=1 为飞机不可为空 sterm string 出发航站楼,格式:t2 mode=1 为飞机不可为空 eterm string 到达航站楼,格式:t2 mode=1 为飞机不可为空 ecode string 到达地三字码,格式:sha mode=1 为飞机不可为空 airportfee number 机建费,格式:50 mode=1 为飞机不可为空 fuelfee number 燃油费,格式:0 mode=1 为飞机不可为空 meal int 餐饮,格式:1有 0无 airtype string 机型,格式:a320(大) remarks string 备注描述 service_time string 服务时间,格式:08:00-24:00 cabins list 当前班次交通工具所有可预订席位价格信息 code string 仓位/席别 代码,格式: y 或者 v1 /一等/二等 name string 仓位/席别 名称,格式:经济舱 9 折或者一等/二等 price float 价格 seat int 余座 discount float 折扣,格式:80.00% rules string 退改签规定
返回示例:JSON返回示例:
{ "reason": "请求成功", "result": [ { "duration": 135, "etime": "2016-09-02 00:10", "from": "上海虹桥", "id": "39ca813b62abc48816ed5e80a639375f", "legs": [ { "aircode": "CA", "aircom": "国航", "airportfee": 50, "airtype": "772", "cabinname": "经济舱", "cabins": [ { "code": "W", "discount": 52, "name": "经济舱", "price": 640, "rules": "", "seat": 1 }, { "code": "V", "discount": 62, "name": "经济舱", "price": 770, "rules": "", "seat": 9 }, { "code": "Q", "discount": 72, "name": "经济舱", "price": 890, "rules": "", "seat": 9 }, { "code": "H", "discount": 77, "name": "经济舱", "price": 950, "rules": "", "seat": 9 }, { "code": "U", "discount": 82, "name": "经济舱", "price": 1020, "rules": "", "seat": 9 }, { "code": "M1", "discount": 87, "name": "经济舱", "price": 1080, "rules": "", "seat": 9 }, { "code": "B", "discount": 92, "name": "经济舱", "price": 1140, "rules": "", "seat": 9 }, { "code": "G", "discount": 100, "name": "全价舱", "price": 1240, "rules": "", "seat": 9 }, { "code": "Y", "discount": 100, "name": "全价舱", "price": 1240, "rules": "", "seat": 9 }, { "code": "A", "discount": 180, "name": "商务舱", "price": 2230, "rules": "", "seat": 9 }, { "code": "F", "discount": 310, "name": "头等舱", "price": 3840, "rules": "", "seat": 9 } ], "duration": 135, "ecode": "PEK", "eterm": "T3", "etime": "2016-09-02 00:10", "from": "上海虹桥", "from_id": "PL_142", "fromcity": "上海", "fuelfee": 0, "id": "1", "legtype": 0, "meal": 0, "mode": 1, "no": "CA1886", "remarks": "", "scode": "SHA", "service_time": "06:00-23:59", "state": 0, "sterm": "T2", "stime": "2016-09-01 21:55", "stop": 0, "to": "北京首都", "to_id": "PL_99", "tocity": "北京", "yprice": 1240 } ], "price": 640, "rank": 29336, "stime": "2016-09-01 21:55", "to": "北京首都", "top": 8, "transfer": 0, "tripid": "250e9c93356113c03c58244903059305" } ], "error_code": 0 }
聚合数据是互联网专业数据科技服务商,致力于用数据科技赋能行业升级,驱动产业发展。主要向不同行业的企业客户提供大数据服务和系统的解决方案。经营范围是数据技术服务。
聚合数据作为天聚地合(苏州)数据股份有限公司旗下的互联网专业数据科技服务商,于2018年上线,总部位于苏州,在北京、杭州均设有数据处理中心。聚合数据主要提供两种核心服务:第一、数据技术服务。依托聚合云数据平台,以API数据接口的形式,向下游客户提供数据查询、信息验证和充值接口等服务;第二、数据应用。以大数据清洗、分析、挖掘等技术为主要技术手段,为企业客户提供数据应用系统或定制化的数据分析成果,帮助企业进行经营决策。目前可以为金融科技、汽车后市场、智慧城市等领域提供大数据解决方案。
企业和程序员可以通过进制数据封装的API或SDK极速接入其他数据资源,同时进制数据提供数据交易等服务。通过进制数据,不仅开发成本极大降低,而且可以获得其他丰富的数据服务:数据交易,数据分析,区块链Token管理等服务。
电话:173-6457-5198
QQ① 群:792473404
客服 QQ:1643296538
微信客服:binstds
扫描二维码添加客服微信
周一至周五 9:00 - 21:00(其中周三为 9:00 - 18:00)
周六 9:00 - 12:00(节假日除外)
进制数据团队
2020.01.01