航班查询接口不同城市航班动态查询

航班查询接口支持不同城市航班查询,下面将分享航班查询接口开发文档及调用实例。

接口名称:航班查询接口

接口平台:聚合数据

接口地址:http://apis.juhe.cn/plan/city

支持格式:JSON/XML

请求方式:GET

请求示例:http://apis.juhe.cn/plan/city?key=xxxxx

接口备注:spell可作为航线查询的参数 —— 北京 分为 北京(PEK),北京南苑(NAY)。上海 分为 上海(SHA),上海浦东(PVG

航班查询接口JSON返回示例:

{
"resultcode":"200",
"reason":"SUCCESSED!",
"result":[
        {
            "city":"北京",
            "spell":"PEK"
        }
    ]
}

航班查询接口XML返回示例:

  <?xml version="1.0" encoding="utf-8" ?> 
- <root>
  <resultcode>200</resultcode> 
  <reason>SUCCESSED!</reason> 
- <result>
- <item>
  <city>安庆</city> 
  <spell>AQG</spell> 
  </item>
- <item>
    <city>阿克苏</city> 
    <spell>AKU</spell> 
  </item>
- <item>
    <city>阿勒泰</city> 
    <spell>AAT</spell> 
  </item>
- <item>
    <city>阿尔山</city> 
    <spell>YIE</spell> 
  </item>
- <item>
    <city>保山</city> 
    <spell>BSD</spell> 
  </item>
- <item>
    <city>包头</city> 
    <spell>BAV</spell> 
  </item>
- <item>
    <city>北京</city> 
    <spell>PEK</spell> 
  </item>
- <item>
    <city>北京南苑</city> 
    <spell>NAY</spell> 
  </item>
- <item>
    <city>博乐</city> 
    <spell>BPL</spell> 
  </item>
- <item>
    <city>巴彦淖尔</city> 
    <spell>RLK</spell> 
  </item>
- <item>
    <city>百色</city> 
    <spell>AEB</spell> 
  </item>
- <item>
    <city>常州</city> 
    <spell>CZX</spell> 
  </item>
- <item>
    <city>常德</city> 
    <spell>CGD</spell> 
  </item>
- <item>
    <city>成都</city> 
    <spell>CTU</spell> 
  </item>
- <item>
    <city>昌都</city> 
    <spell>BPX</spell> 
  </item>
- <item>
    <city>赤峰</city> 
    <spell>CIF</spell> 
  </item>
- <item>
    <city>重庆</city> 
    <spell>CKG</spell> 
  </item>
- <item>
    <city>长春</city> 
    <spell>CGQ</spell> 
  </item>
- <item>
    <city>长沙</city> 
    <spell>CSX</spell> 
  </item>
  </result>
  </root>


转载于:https://my.oschina.net/u/2473144/blog/514596

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值