航班实时起降查询API代码实现

作者在 2015-08-21 17:55:33 发布以下内容
    航班实时起降查询代码实现功能:
    当日航班,含国际 orgCity dstCity 通过始发城市查询航班 | flightNo 通过航班号查询航班。
    接口名称:航班实时起降查询
    接口平台:聚合数据
    接口地址:http://op.juhe.cn/flight/df/fs
    支持格式:json/xml
    请求方式:HTTP GET/POST
    请求示例:http://op.juhe.cn/flight/df/fs?key=APPKEY&orgCity=PEK&dstCity=WUH&flightNo&dtype=json
    航班实时起降查询调用代码JSON返回示例:
        {  
            "resultcode": "200",  
            "reason": "Success",  
            "result": [  
                {  
                    "FlightNo": "CZ9378",  
                    "Rate": "92.00",  
                    "DepCity": "北京首都",  
                    "DepCode": "PEK",  
                    "ArrCity": "武汉天河",  
                    "ArrCode": "WUH",  
                    "DepTerminal": "T2",  
                    "ArrTerminal": "T2",  
                    "DepScheduled": "2014-12-19T08:05:00",  
                    "ArrScheduled": "2014-12-19T10:15:00",  
                    "DepEstimated": "2014-12-19T08:23:00",  
                    "ArrEstimated": "2014-12-19T09:40:00",  
                    "DepActual": "2014-12-19T08:23:00",  
                    "ArrActual": "2014-12-19T10:09:00",  
                    "FlightState": "到达",  
                    "arrRate": "93"  
                },  
                {  
                    "FlightNo": "MU2460",  
                    "Rate": "92.00",  
                    "DepCity": "北京首都",  
                    "DepCode": "PEK",  
                    "ArrCity": "武汉天河",  
                    "ArrCode": "WUH",  
                    "DepTerminal": "T2",  
                    "ArrTerminal": "T2",  
                    "DepScheduled": "2014-12-19T08:05:00",  
                    "ArrScheduled": "2014-12-19T10:15:00",  
                    "DepEstimated": "2014-12-19T08:05:00",  
                    "ArrEstimated": "2014-12-19T10:15:00",  
                    "DepActual": "2014-12-19T08:23:00",  
                    "ArrActual": "2014-12-19T10:09:00",  
                    "FlightState": "到达",  
                    "arrRate": "90.67"  
                },  
                {  
                    "FlightNo": "MU3185",  
                    "Rate": "92.00",  
                    "DepCity": "北京首都",  
                    "DepCode": "PEK",  
                    "ArrCity": "武汉天河",  
                    "ArrCode": "WUH",  
                    "DepTerminal": "T2",  
                    "ArrTerminal": "T2",  
                    "DepScheduled": "2014-12-19T08:35:00",  
                    "ArrScheduled": "2014-12-19T10:45:00",  
                    "DepEstimated": "2014-12-19T08:51:00",  
                    "ArrEstimated": "2014-12-19T10:48:00",  
                    "DepActual": "2014-12-19T08:51:00",  
                    "ArrActual": "2014-12-19T10:38:00",  
                    "FlightState": "到达",  
                    "arrRate": "89.33"  
                },  
                {  
                    "FlightNo": "MF4777",  
                    "Rate": "92.00",  
                    "DepCity": "北京首都",  
                    "DepCode": "PEK",  
                    "ArrCity": "武汉天河",  
                    "ArrCode": "WUH",  
                    "DepTerminal": "T2",  
                    "ArrTerminal": "T2",  
                    "DepScheduled": "2014-12-19T08:35:00",  
                    "ArrScheduled": "2014-12-19T10:45:00",  
                    "DepEstimated": "2014-12-19T08:51:00",  
                    "ArrEstimated": "2014-12-19T10:48:00",  
                    "DepActual": "2014-12-19T08:51:00",  
                    "ArrActual": "2014-12-19T10:38:00",  
                    "FlightState": "到达",  
                    "arrRate": "89.67"  
                },  
                {  
                    "FlightNo": "CZ6605",  
                    "Rate": "95.00",  
                    "DepCity": "北京首都",  
                    "DepCode": "PEK",  
                    "ArrCity": "武汉天河",  
                    "ArrCode": "WUH",  
                    "DepTerminal": "T2",  
                    "ArrTerminal": "T2",  
                    "DepScheduled": "2014-12-19T08:35:00",  
                    "ArrScheduled": "2014-12-19T10:45:00",  
                    "DepEstimated": "2014-12-19T08:30:00",  
                    "ArrEstimated": "2014-12-19T10:38:00",  
                    "DepActual": "2014-12-19T08:51:00",  
                    "ArrActual": "2014-12-19T10:38:00",  
                    "FlightState": "到达",  
                    "arrRate": "90"  
                },  
                {  
                    "FlightNo": "CZ3118",  
                    "Rate": "92.00",  
                    "DepCity": "北京首都",  
                    "DepCode": "PEK",  
                    "ArrCity": "武汉天河",  
                    "ArrCode": "WUH",  
                    "DepTerminal": "T2",  
                    "ArrTerminal": "T2",  
                    "DepScheduled": "2014-12-19T10:55:00",  
                    "ArrScheduled": "2014-12-19T13:20:00",  
                    "DepEstimated": "0001-01-01T00:00:00",  
                    "ArrEstimated": "0001-01-01T00:00:00",  
                    "DepActual": "0001-01-01T00:00:00",  
                    "ArrActual": "0001-01-01T00:00:00",  
                    "FlightState": "延误",  
                    "arrRate": "95.33"  
                },  
                {  
                    "FlightNo": "MU3019",  
                    "Rate": "92.00",  
                    "DepCity": "北京首都",  
                    "DepCode": "PEK",  
                    "ArrCity": "武汉天河",  
                    "ArrCode": "WUH",  
                    "DepTerminal": "T2",  
                    "ArrTerminal": "T2",  
                    "DepScheduled": "2014-12-19T10:55:00",  
                    "ArrScheduled": "2014-12-19T13:20:00",  
                    "DepEstimated": "0001-01-01T00:00:00",  
                    "ArrEstimated": "0001-01-01T00:00:00",  
                    "DepActual": "0001-01-01T00:00:00",  
                    "ArrActual": "0001-01-01T00:00:00",  
                    "FlightState": "延误",  
                    "arrRate": "95"  
                },  
                {  
                    "FlightNo": "MF1020",  
                    "Rate": "92.00",  
                    "DepCity": "北京首都",  
                    "DepCode": "PEK",  
                    "ArrCity": "武汉天河",  
                    "ArrCode": "WUH",  
                    "DepTerminal": "T2",  
                    "ArrTerminal": "T2",  
                    "DepScheduled": "2014-12-19T10:55:00",  
                    "ArrScheduled": "2014-12-19T13:20:00",  
                    "DepEstimated": "0001-01-01T00:00:00",  
                    "ArrEstimated": "0001-01-01T00:00:00",  
                    "DepActual": "0001-01-01T00:00:00",  
                    "ArrActual": "0001-01-01T00:00:00",  
                    "FlightState": "延误",  
                    "arrRate": "95.33"  
                },  
                {  
                    "FlightNo": "ZH1475",  
                    "Rate": "90.00",  
                    "DepCity": "北京首都",  
                    "DepCode": "PEK",  
                    "ArrCity": "武汉天河",  
                    "ArrCode": "WUH",  
                    "DepTerminal": "T3",  
                    "ArrTerminal": "T2",  
                    "DepScheduled": "2014-12-19T11:20:00",  
                    "ArrScheduled": "2014-12-19T13:30:00",  
                    "DepEstimated": "2014-12-19T11:20:00",  
                    "ArrEstimated": "2014-12-19T13:30:00",  
                    "DepActual": "0001-01-01T00:00:00",  
                    "ArrActual": "0001-01-01T00:00:00",  
                    "FlightState": "计划",  
                    "arrRate": "92.33"  
                },  
                {  
                    "FlightNo": "SC1475",  
                    "Rate": "90.00",  
                    "DepCity": "北京首都",  
                    "DepCode": "PEK",  
                    "ArrCity": "武汉天河",  
                    "ArrCode": "WUH",  
                    "DepTerminal": "T3",  
                    "ArrTerminal": "T2",  
                    "DepScheduled": "2014-12-19T11:20:00",  
                    "ArrScheduled": "2014-12-19T13:30:00",  
                    "DepEstimated": "2014-12-19T11:20:00",  
                    "ArrEstimated": "2014-12-19T13:30:00",  
                    "DepActual": "0001-01-01T00:00:00",  
                    "ArrActual": "0001-01-01T00:00:00",  
                    "FlightState": "计划",  
                    "arrRate": "92.33"  
                },  
                {  
                    "FlightNo": "CA1475",  
                    "Rate": "93.33",  
                    "DepCity": "北京首都",  
                    "DepCode": "PEK",  
                    "ArrCity": "武汉天河",  
                    "ArrCode": "WUH",  
                    "DepTerminal": "T3",  
                    "ArrTerminal": "T2",  
                    "DepScheduled": "2014-12-19T11:20:00",  
                    "ArrScheduled": "2014-12-19T13:30:00",  
                    "DepEstimated": "2014-12-19T11:20:00",  
                    "ArrEstimated": "2014-12-19T13:30:00",  
                    "DepActual": "0001-01-01T00:00:00",  
                    "ArrActual": "0001-01-01T00:00:00",  
                    "FlightState": "计划",  
                    "arrRate": "92.33"  
                },  
                {  
                    "FlightNo": "CZ9382",  
                    "Rate": "93.33",  
                    "DepCity": "北京首都",  
                    "DepCode": "PEK",  
                    "ArrCity": "武汉天河",  
                    "ArrCode": "WUH",  
                    "DepTerminal": "T2",  
                    "ArrTerminal": "T2",  
                    "DepScheduled": "2014-12-19T11:40:00",  
                    "ArrScheduled": "2014-12-19T13:55:00",  
                    "DepEstimated": "2014-12-19T11:40:00",  
                    "ArrEstimated": "2014-12-19T13:55:00",  
                    "DepActual": "0001-01-01T00:00:00",  
                    "ArrActual": "0001-01-01T00:00:00",  
                    "FlightState": "计划",  
                    "arrRate": "92"  
                },  
                {  
                    "FlightNo": "MU2452",  
                    "Rate": "93.33",  
                    "DepCity": "北京首都",  
                    "DepCode": "PEK",  
                    "ArrCity": "武汉天河",  
                    "ArrCode": "WUH",  
                    "DepTerminal": "T2",  
                    "ArrTerminal": "T2",  
                    "DepScheduled": "2014-12-19T11:40:00",  
                    "ArrScheduled": "2014-12-19T13:55:00",  
                    "DepEstimated": "2014-12-19T11:40:00",  
                    "ArrEstimated": "2014-12-19T13:55:00",  
                    "DepActual": "0001-01-01T00:00:00",  
                    "ArrActual": "0001-01-01T00:00:00",  
                    "FlightState": "计划",  
                    "arrRate": "93.67"  
                },  
                {  
                    "FlightNo": "HU7187",  
                    "Rate": "96.67",  
                    "DepCity": "北京首都",  
                    "DepCode": "PEK",  
                    "ArrCity": "武汉天河",  
                    "ArrCode": "WUH",  
                    "DepTerminal": "T1",  
                    "ArrTerminal": "T2",  
                    "DepScheduled": "2014-12-19T12:20:00",  
                    "ArrScheduled": "2014-12-19T14:40:00",  
                    "DepEstimated": "2014-12-19T12:20:00",  
                    "ArrEstimated": "2014-12-19T14:40:00",  
                    "DepActual": "0001-01-01T00:00:00",  
                    "ArrActual": "0001-01-01T00:00:00",  
                    "FlightState": "计划",  
                    "arrRate": "95.67"  
                },  
                {  
                    "FlightNo": "ZH1873",  
                    "Rate": "93.33",  
                    "DepCity": "北京首都",  
                    "DepCode": "PEK",  
                    "ArrCity": "武汉天河",  
                    "ArrCode": "WUH",  
                    "DepTerminal": "T3",  
                    "ArrTerminal": "T2",  
                    "DepScheduled": "2014-12-19T13:15:00",  
                    "ArrScheduled": "2014-12-19T15:35:00",  
                    "DepEstimated": "2014-12-19T13:15:00",  
                    "ArrEstimated": "2014-12-19T15:35:00",  
                    "DepActual": "0001-01-01T00:00:00",  
                    "ArrActual": "0001-01-01T00:00:00",  
                    "FlightState": "计划",  
                    "arrRate": "93.33"  
                },  
                {  
                    "FlightNo": "SC1873",  
                    "Rate": "93.33",  
                    "DepCity": "北京首都",  
                    "DepCode": "PEK",  
                    "ArrCity": "武汉天河",  
                    "ArrCode": "WUH",  
                    "DepTerminal": "T3",  
                    "ArrTerminal": "T2",  
                    "DepScheduled": "2014-12-19T13:15:00",  
                    "ArrScheduled": "2014-12-19T15:35:00",  
                    "DepEstimated": "2014-12-19T13:15:00",  
                    "ArrEstimated": "2014-12-19T15:35:00",  
                    "DepActual": "0001-01-01T00:00:00",  
                    "ArrActual": "0001-01-01T00:00:00",  
                    "FlightState": "计划",  
                    "arrRate": "93.33"  
                },  
                {  
                    "FlightNo": "CA1873",  
                    "Rate": "93.33",  
                    "DepCity": "北京首都",  
                    "DepCode": "PEK",  
                    "ArrCity": "武汉天河",  
                    "ArrCode": "WUH",  
                    "DepTerminal": "T3",  
                    "ArrTerminal": "T2",  
                    "DepScheduled": "2014-12-19T13:15:00",  
                    "ArrScheduled": "2014-12-19T15:35:00",  
                    "DepEstimated": "2014-12-19T13:15:00",  
                    "ArrEstimated": "2014-12-19T15:35:00",  
                    "DepActual": "0001-01-01T00:00:00",  
                    "ArrActual": "0001-01-01T00:00:00",  
                    "FlightState": "计划",  
                    "arrRate": "93.33"  
                },  
                {  
                    "FlightNo": "ZH4941",  
                    "Rate": "96.67",  
                    "DepCity": "北京首都",  
                    "DepCode": "PEK",  
                    "ArrCity": "武汉天河",  
                    "ArrCode": "WUH",  
                    "DepTerminal": "T3",  
                    "ArrTerminal": "T2",  
                    "DepScheduled": "2014-12-19T15:25:00",  
                    "ArrScheduled": "2014-12-19T17:35:00",  
                    "DepEstimated": "2014-12-19T15:25:00",  
                    "ArrEstimated": "2014-12-19T17:35:00",  
                    "DepActual": "0001-01-01T00:00:00",  
                    "ArrActual": "0001-01-01T00:00:00",  
                    "FlightState": "计划",  
                    "arrRate": "79"  
                },  
                {  
                    "FlightNo": "NH5790",  
                    "Rate": "96.67",  
                    "DepCity": "北京首都",  
                    "DepCode": "PEK",  
                    "ArrCity": "武汉天河",  
                    "ArrCode": "WUH",  
                    "DepTerminal": "T3",  
                    "ArrTerminal": "2",  
                    "DepScheduled": "2014-12-19T15:25:00",  
                    "ArrScheduled": "2014-12-19T17:35:00",  
                    "DepEstimated": "2014-12-19T15:25:00",  
                    "ArrEstimated": "2014-12-19T17:35:00",  
                    "DepActual": "0001-01-01T00:00:00",  
                    "ArrActual": "0001-01-01T00:00:00",  
                    "FlightState": "计划",  
                    "arrRate": "80.33"  
                },  
                {  
                    "FlightNo": "CA8215",  
                    "Rate": "96.67",  
                    "DepCity": "北京首都",  
                    "DepCode": "PEK",  
                    "ArrCity": "武汉天河",  
                    "ArrCode": "WUH",  
                    "DepTerminal": "T3",  
                    "ArrTerminal": "T2",  
                    "DepScheduled": "2014-12-19T15:25:00",  
                    "ArrScheduled": "2014-12-19T17:35:00",  
                    "DepEstimated": "2014-12-19T15:25:00",  
                    "ArrEstimated": "2014-12-19T17:35:00",  
                    "DepActual": "0001-01-01T00:00:00",  
                    "ArrActual": "0001-01-01T00:00:00",  
                    "FlightState": "计划",  
                    "arrRate": "77"  
                },  
                {  
                    "FlightNo": "CA8205",  
                    "Rate": "93.33",  
                    "DepCity": "北京首都",  
                    "DepCode": "PEK",  
                    "ArrCity": "武汉天河",  
                    "ArrCode": "WUH",  
                    "DepTerminal": "T3",  
                    "ArrTerminal": "T2",  
                    "DepScheduled": "2014-12-19T17:35:00",  
                    "ArrScheduled": "2014-12-19T19:45:00",  
                    "DepEstimated": "2014-12-19T17:35:00",  
                    "ArrEstimated": "2014-12-19T19:45:00",  
                    "DepActual": "0001-01-01T00:00:00",  
                    "ArrActual": "0001-01-01T00:00:00",  
                    "FlightState": "计划",  
                    "arrRate": "85.33"  
                },  
                {  
                    "FlightNo": "ZH4935",  
                    "Rate": "90.00",  
                    "DepCity": "北京首都",  
                    "DepCode": "PEK",  
                    "ArrCity": "武汉天河",  
                    "ArrCode": "WUH",  
                    "DepTerminal": "T3",  
                    "ArrTerminal": "T2",  
                    "DepScheduled": "2014-12-19T17:35:00",  
                    "ArrScheduled": "2014-12-19T19:45:00",  
                    "DepEstimated": "2014-12-19T17:35:00",  
                    "ArrEstimated": "2014-12-19T19:45:00",  
                    "DepActual": "0001-01-01T00:00:00",  
                    "ArrActual": "0001-01-01T00:00:00",  
                    "FlightState": "计划",  
                    "arrRate": "82.67"  
                },  
                {  
                    "FlightNo": "CZ9383",  
                    "Rate": "96.67",  
                    "DepCity": "北京首都",  
                    "DepCode": "PEK",  
                    "ArrCity": "武汉天河",  
                    "ArrCode": "WUH",  
                    "DepTerminal": "T2",  
                    "ArrTerminal": "T2",  
                    "DepScheduled": "2014-12-19T18:20:00",  
                    "ArrScheduled": "2014-12-19T20:40:00",  
                    "DepEstimated": "2014-12-19T18:20:00",  
                    "ArrEstimated": "2014-12-19T20:40:00",  
                    "DepActual": "0001-01-01T00:00:00",  
                    "ArrActual": "0001-01-01T00:00:00",  
                    "FlightState": "计划",  
                    "arrRate": "93"  
                },  
                {  
                    "FlightNo": "MU2454",  
                    "Rate": "96.67",  
                    "DepCity": "北京首都",  
                    "DepCode": "PEK",  
                    "ArrCity": "武汉天河",  
                    "ArrCode": "WUH",  
                    "DepTerminal": "T2",  
                    "ArrTerminal": "T2",  
                    "DepScheduled": "2014-12-19T18:20:00",  
                    "ArrScheduled": "2014-12-19T20:40:00",  
                    "DepEstimated": "2014-12-19T18:20:00",  
                    "ArrEstimated": "2014-12-19T20:40:00",  
                    "DepActual": "0001-01-01T00:00:00",  
                    "ArrActual": "0001-01-01T00:00:00",  
                    "FlightState": "计划",  
                    "arrRate": "92.67"  
                },  
                {  
                    "FlightNo": "MF1040",  
                    "Rate": "100.00",  
                    "DepCity": "北京首都",  
                    "DepCode": "PEK",  
                    "ArrCity": "武汉天河",  
                    "ArrCode": "WUH",  
                    "DepTerminal": "T2",  
               
WebService | 阅读 5203 次
文章评论,共0条
游客请输入验证码
文章归档
最新评论