传入城市 获取对应的目的地
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
param_last_place_search_r_q | ParamLastPlaceSearchRq | 可选 | 目的地查询参数 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | Result | 无 | 目的地返回结果 |
|
1 2 3 4 5 6 7 8 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); BusLastplaceGetRequest req = new BusLastplaceGetRequest(); BusLastplaceGetRequest.ParamLastPlaceSearchRq obj1 = new BusLastplaceGetRequest.ParamLastPlaceSearchRq(); obj1.setDepCityCode( "110100" ); obj1.setDepCityName( "北京市" ); req.setParamLastPlaceSearchRQ(obj1); BusLastplaceGetResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 | < bus_lastplace_get_response > < result > < err_code >0001</ err_code > < err_msg >获取目的地服务不可用</ err_msg > < success >false</ success > < module >无</ module > </ result > </ bus_lastplace_get_response > |
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 > |
错误码 | 错误描述 | 解决方案 |
---|