汽车票查询上车点接口
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
cityCode | String | 可选 | 810100 | 城市编码 | |
cityName | String | 可选 | 香港 | 城市名称 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
retCode | String | 0 | 返回错误码 |
retDesc | String | 成功 | 返回错误信息 |
stationList | BusStation [] | 上车点list(是必填) | |
|
|||
success | Boolean | true | 成功状态 |
1 2 3 4 5 6 | QimenCloudClient client = new DefaultQimenCloudClient(url, appkey, secret); AlitripBusProductQuerystationRequest req = new AlitripBusProductQuerystationRequest(); req.setCityCode( "810100" ); req.setCityName( "香港" ); AlitripBusProductQuerystationResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | < retCode >0</ retCode > < retDesc >成功</ retDesc > < stationList > < bus_station > < stationCode >123456789</ stationCode > < stationName >香港机场</ stationName > < stationAddress >香港机场南口</ stationAddress > < longitude >105.469673</ longitude > < latitude >32.033114</ latitude > < cityName >香港</ cityName > < provinceName >香港</ provinceName > < presellDay >7</ presellDay > < presellTime >120</ presellTime > < maxSellNum >5</ maxSellNum > < sellStartTime >05:00</ sellStartTime > < sellEndTime >18:00</ sellEndTime > < refundTime >120</ refundTime > < isRefund >true</ isRefund > < isOrderRefund >true</ isOrderRefund > < refundMsg >1</ refundMsg > < obtainVoucher >0</ obtainVoucher > < supportEticket >true</ supportEticket > < status >1</ status > < servicePrice >100</ servicePrice > < attribute >{"param":"param"}</ attribute > < supportWithChild >false</ supportWithChild > < supportChild >true</ supportChild > < refundStructuredInfo >"[{"key":"发车前4-6小时","seq":"1","value":"不收取退票手续费"},{"ext":"如有紧急情况请联系车站","key":"发车前2-4小时","seq":"2","value":"收取5%手续费"},{"key":"发车前1-2小时","seq":"3","value":"收取10%手续费"}]"</ refundStructuredInfo > </ bus_station > </ stationList > < success >true</ success > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|