WS_Market
Click here for a complete list of operations.
getAirlinesByAirportID
輸入機場的server POI ID與出發/到達(IntType)及相關條件來取得該機場所有航班資料
傳入參數
參數名稱 | 參數型態 | 參數說明 |
nAirportID | int | 機場之POIID |
nIntType | int | 出發 /到達 (Depart: 0, Arrival:1) |
str_airway | string | 航班所屬的航空公司(ALL或航空公司代碼) str_airway要以4.6取得所有航空公司代碼與名稱 getAirCompany ()取得 |
str_depart | string | 航班的出發地或目的地(ALL或機場代碼) str_depart要以4.7取得所有機場代碼與名稱getAirport ()取得 |
str_s_time | string | 查詢起始時間hhmm;24小時制 |
str_e_time | string | 查詢終止時間hhmm;24小時制 |
參數輸入範例
參數 | 值 |
nAirportID | 540973 |
nIntType | 1 |
str_airway | BR |
str_depart | ALL |
str_s_time | 1500 |
str_e_time | 1510 |
回傳格式
回傳值 | 說明 |
DC_AP | 抵達之航空站/起飛之航空站 |
DC_ServiceID | 航班編號 |
DC_AC | 航空公司 |
DC_ScheduTime | 預定起飛時間/預定抵達時間 |
DC_ActualTime | 實際起飛時間/實際抵達時間 |
DC_Gate | 登機門 |
DC_Terminal | 航廈 |
DC_Remark | 狀態 (已飛 - Departed / 時間更改 - schedule changed / 取消 - cancelled / 已到 - arrived / 準時 - on time / 延誤 - delayed / 提早 - early / 報到 / 登機 ) |
回傳範例
[{"DT_FIDS":[{"DC_AP":"馬尼拉","DC_ServiceID":"BR272","DC_AC":"長榮航空","DC_ScheduTime":"15:00","DC_ActualTime":"15:00","DC_Gate":"C5","DC_Terminal":"2 ","DC_Remark":"準時"},{"DC_AP":"大阪","DC_ServiceID":"BR2131","DC_AC":"長榮航空","DC_ScheduTime":"15:05","DC_ActualTime":"15:05","DC_Gate":"C1","DC_Terminal":"2 ","DC_Remark":"準時"}]}]
Test
The test form is only available for requests from the local machine.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /WS_Market.asmx HTTP/1.1 Host: transittw.localking.com.tw Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://www.gotcha.com.tw/WS_Transit/getAirlinesByAirportID" <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <AuthHeaderMarket xmlns="http://www.gotcha.com.tw/WS_Transit"> <Username>string</Username> <HashKey>string</HashKey> <Password>string</Password> </AuthHeaderMarket> </soap:Header> <soap:Body> <getAirlinesByAirportID xmlns="http://www.gotcha.com.tw/WS_Transit"> <nAirportID>int</nAirportID> <nIntType>int</nIntType> </getAirlinesByAirportID> </soap:Body> </soap:Envelope>
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <getAirlinesByAirportIDResponse xmlns="http://www.gotcha.com.tw/WS_Transit"> <getAirlinesByAirportIDResult>string</getAirlinesByAirportIDResult> </getAirlinesByAirportIDResponse> </soap:Body> </soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /WS_Market.asmx HTTP/1.1 Host: transittw.localking.com.tw Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Header> <AuthHeaderMarket xmlns="http://www.gotcha.com.tw/WS_Transit"> <Username>string</Username> <HashKey>string</HashKey> <Password>string</Password> </AuthHeaderMarket> </soap12:Header> <soap12:Body> <getAirlinesByAirportID xmlns="http://www.gotcha.com.tw/WS_Transit"> <nAirportID>int</nAirportID> <nIntType>int</nIntType> </getAirlinesByAirportID> </soap12:Body> </soap12:Envelope>
HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <getAirlinesByAirportIDResponse xmlns="http://www.gotcha.com.tw/WS_Transit"> <getAirlinesByAirportIDResult>string</getAirlinesByAirportIDResult> </getAirlinesByAirportIDResponse> </soap12:Body> </soap12:Envelope>