航班动态查询api调用代码示例

航班动态查询api代码,航班时刻表查询可实现查询本航段的航班号、本航段的起飞时刻(时分)、本航段的ASR支持标志、本航段的舱位列表、本航段的到达时刻、本航段的到达日期修正、有效期限的起始时间(年月日)、有效期限的截至时间(年月日)等等。

接口名称:航班动态查询api

接口平台:聚合数据

接口地址:http://op.juhe.cn/flight/sk

支持格式:json/xml

请求方式:HTTP GET/POST

请求示例:http://op.juhe.cn/flight/sk?key=APPKEY&orgCity=SHA&dstCity=WUH&flightDate=2014-11-12&airline=ALL&direct=true&nostop=true 

航班动态查询api调用代码JSON返回示例:

{
    "resultcode": "200",
    "reason": "Success",
    "result": [
        {
            "flightNo": "FM9361    ",
            "ArrTime": "0755  ",
            "arrTimeModify": "0755  ",
            "Asr": "false",
            "ClassList": "FPAYKBEHLMNRSVTWG*",
            "DepTime": "0940  ",
            "DepTimeModify": [],
            "Dstcity": "WUH",
            "effectiveDate": "2012-12-01T00:00:00",
            "expirationDate": "2012-12-01T00:00:00",
            "flightClasses": [],
            "IsEtkt": "true",
            "Link": "false",
            "Meal": "false",
            "OpenTo": [],
            "OrgCity": "SHA",
            "PlaneStyle": "73E",
            "StopNumber": "0"
        },
        {
            "flightNo": "MU9361    ",
            "ArrTime": "0755  ",
            "arrTimeModify": "0755  ",
            "Asr": "false",
            "ClassList": "FPYKBEHLMNRSVTWGX*",
            "DepTime": "0940  ",
            "DepTimeModify": [],
            "Dstcity": "WUH",
            "effectiveDate": "2012-12-01T00:00:00",
            "expirationDate": "2012-12-01T00:00:00",
            "flightClasses": [],
            "IsEtkt": "true",
            "Link": "false",
            "Meal": "false",
            "OpenTo": [],
            "OrgCity": "SHA",
            "PlaneStyle": "73E",
            "StopNumber": "0"
        },
        {
            "flightNo": "FM9359    ",
            "ArrTime": "0915  ",
            "arrTimeModify": "0915  ",
            "Asr": "false",
            "ClassList": "FPAYKBEHLMNRSVTWG*",
            "DepTime": "1105  ",
            "DepTimeModify": [],
            "Dstcity": "WUH",
            "effectiveDate": "2012-03-29T00:00:00",
            "expirationDate": "2012-03-29T00:00:00",
            "flightClasses": [],
            "IsEtkt": "true",
            "Link": "false",
            "Meal": "false",
            "OpenTo": [],
            "OrgCity": "SHA",
            "PlaneStyle": "738",
            "StopNumber": "0"
        },
        {
            "flightNo": "MU9359    ",
            "ArrTime": "0915  ",
            "arrTimeModify": "0915  ",
            "Asr": "false",
            "ClassList": "FPYKBEHLMNRSVTWGX*",
            "DepTime": "1105  ",
            "DepTimeModify": [],
            "Dstcity": "WUH",
            "effectiveDate": "2012-03-29T00:00:00",
            "expirationDate": "2012-03-29T00:00:00",
            "flightClasses": [],
            "IsEtkt": "true",
            "Link": "false",
            "Meal": "false",
            "OpenTo": [],
            "OrgCity": "SHA",
            "PlaneStyle": "738",
            "StopNumber": "0"
        },
        {
            "flightNo": "MU2516    ",
            "ArrTime": "1045  ",
            "arrTimeModify": "1045  ",
            "Asr": "false",
            "ClassList": "FPAYKBEHLMNRSVTWG*",
            "DepTime": "1235  ",
            "DepTimeModify": [],
            "Dstcity": "WUH",
            "effectiveDate": "2012-11-27T00:00:00",
            "expirationDate": "2012-11-27T00:00:00",
            "flightClasses": [],
            "IsEtkt": "true",
            "Link": "false",
            "Meal": "false",
            "OpenTo": [],
            "OrgCity": "SHA",
            "PlaneStyle": "JET",
            "StopNumber": "0"
        },
        {
            "flightNo": "FM9363    ",
            "ArrTime": "1925  ",
            "arrTimeModify": "1925  ",
            "Asr": "false",
            "ClassList": "FPAYKBEHLMNRSVTWG*",
            "DepTime": "2120  ",
            "DepTimeModify": [],
            "Dstcity": "WUH",
            "effectiveDate": "2012-03-30T00:00:00",
            "expirationDate": "2012-03-30T00:00:00",
            "flightClasses": [],
            "IsEtkt": "true",
            "Link": "false",
            "Meal": "false",
            "OpenTo": [],
            "OrgCity": "SHA",
            "PlaneStyle": "738",
            "StopNumber": "0"
        },
        {
            "flightNo": "MU9363    ",
            "ArrTime": "1925  ",
            "arrTimeModify": "1925  ",
            "Asr": "false",
            "ClassList": "FPYKBEHLMNRSVTWGX*",
            "DepTime": "2120  ",
            "DepTimeModify": [],
            "Dstcity": "WUH",
            "effectiveDate": "2012-03-30T00:00:00",
            "expirationDate": "2012-03-30T00:00:00",
            "flightClasses": [],
            "IsEtkt": "true",
            "Link": "false",
            "Meal": "false",
            "OpenTo": [],
            "OrgCity": "SHA",
            "PlaneStyle": "738",
            "StopNumber": "0"
        },
        {
            "flightNo": "MU2512    ",
            "ArrTime": "2345  ",
            "arrTimeModify": "2345  ",
            "Asr": "false",
            "ClassList": "FPAYKBEHLMNRSVTWG*",
            "DepTime": "0140  ",
            "DepTimeModify": [],
            "Dstcity": "WUH",
            "effectiveDate": "2012-12-30T00:00:00",
            "expirationDate": "2012-12-30T00:00:00",
            "flightClasses": [],
            "IsEtkt": "true",
            "Link": "false",
            "Meal": "false",
            "OpenTo": [],
            "OrgCity": "SHA",
            "PlaneStyle": "JET",
            "StopNumber": "0"
        },
        {
            "flightNo": "MU2512    ",
            "ArrTime": "2345  ",
            "arrTimeModify": "2345  ",
            "Asr": "false",
            "ClassList": "FPAYKBEHLMNRSVTWG*",
            "DepTime": "0140  ",
            "DepTimeModify": [],
            "Dstcity": "WUH",
            "effectiveDate": "2012-12-31T00:00:00",
            "expirationDate": "2012-12-31T00:00:00",
            "flightClasses": [],
            "IsEtkt": "true",
            "Link": "false",
            "Meal": "false",
            "OpenTo": [],
            "OrgCity": "SHA",
            "PlaneStyle": "JET",
            "StopNumber": "0"
        }
    ],
    "error_code": 0
}


你可能感兴趣的:(航班动态查询api调用代码示例)