汽车票行业搜索接口
| 名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
|---|---|---|---|---|---|
| rq | BusSearchRq | 可选 | 入参 | ||
|
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| result | HisvResult | module | 出参 |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripBtripSupplychainBusIndustrySearchRequest req = new AlitripBtripSupplychainBusIndustrySearchRequest();
AlitripBtripSupplychainBusIndustrySearchRequest.BusSearchRq obj1 = new AlitripBtripSupplychainBusIndustrySearchRequest.BusSearchRq();
obj1.setArrCity("临湘");
obj1.setArriveCityName("临湘,房县");
obj1.setDepCity("临湘");
obj1.setDepDate("2021-05-19");
obj1.setFromStationName("天河客运站,越秀南客运站");
obj1.setPeriodTime("1,2");
obj1.setScene("common");
obj1.setShowNoSell(0L);
obj1.setStandardFromAreaCode("123");
obj1.setStandardFromStationId(123L);
obj1.setStandardFromStationName("天河客运站");
obj1.setStandardToAreaCode("123");
obj1.setToStationName("省汽车客运站,天河客运站,越秀南客运站");
obj1.setCorpId("123");
obj1.setPageIndex(1L);
obj1.setPageSize(50L);
req.setRq(obj1);
AlitripBtripSupplychainBusIndustrySearchResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
<alitrip_btrip_supplychain_bus_industry_search_response>
<result>
<module>
<arr_city>临湘</arr_city>
<bus_lines>
<bus_line_info_vo>
<arr_station>天河客运站</arr_station>
<arrival_time>2021-05-19 00:00:00</arrival_time>
<bus_distance>100</bus_distance>
<bus_no_id>111</bus_no_id>
<bus_number>11</bus_number>
<bus_number_uuid>123</bus_number_uuid>
<bus_type>123</bus_type>
<dep_city>临湘</dep_city>
<dep_station>省汽车客运站</dep_station>
<depart_time>2021-05-19 00:00:00</depart_time>
<extra_schedule>false</extra_schedule>
<full_price>100</full_price>
<half_price>100</half_price>
<is_support_e_ticket>0</is_support_e_ticket>
<last_depart_time>2021-05-19 00:00:00</last_depart_time>
<last_place_name>临湘</last_place_name>
<pre_order>false</pre_order>
<real_name_grade>2|3|4</real_name_grade>
<service_price>1</service_price>
<shift_type>0</shift_type>
<spend_time>30</spend_time>
<standard_city_name>临湘</standard_city_name>
<status>1</status>
<stock>90</stock>
<via_station>廊坊,天津</via_station>
<via_station_type>0</via_station_type>
</bus_line_info_vo>
</bus_lines>
<dep_city>临湘</dep_city>
<dep_date>2021-05-19</dep_date>
<dep_stations>
<string>["省汽车客运站"</string>
<string>"天河客运站"]</string>
</dep_stations>
<en_large>0</en_large>
<name_same_city>
<from_city_list>
<city_vo>
<city>123</city>
<code>123</code>
<name>123</name>
<province>湖北</province>
</city_vo>
</from_city_list>
<to_city_list>
<city_vo>
<city>123</city>
<code>123</code>
<name>123</name>
<province>湖北</province>
</city_vo>
</to_city_list>
</name_same_city>
<pre_order>false</pre_order>
<recommend_routes>
<route_vo>
<from_city>临湘</from_city>
<to_city>临湘</to_city>
</route_vo>
</recommend_routes>
<station_latitude_longitudes>
<station_latitude_longitude_vo>
<latitude>123.123</latitude>
<longitude>123.123</longitude>
<poi_picture_url_list>
<string>["123"]</string>
</poi_picture_url_list>
<poi_tag_list>
<string>["123"]</string>
</poi_tag_list>
<station_address>123</station_address>
<station_name>123</station_name>
<station_tel>123</station_tel>
<tour_station_type>00</tour_station_type>
</station_latitude_longitude_vo>
</station_latitude_longitudes>
<to_station_names>
<string>[]</string>
</to_station_names>
<total>20</total>
</module>
<result_code>0</result_code>
<result_msg>成功</result_msg>
<is_success>true</is_success>
</result>
</alitrip_btrip_supplychain_bus_industry_search_response>
<error_response>
<code>50</code>
<msg>Remote service error</msg>
<sub_code>isv.invalid-parameter</sub_code>
<sub_msg>非法参数</sub_msg>
</error_response>
| 错误码 | 错误描述 | 解决方案 |
|---|