我们的机场是一个很好的客户端库,可以满足您所有的机场数据需求

ourairports的Python项目详细描述


我们的机场是 ourairports.com公共域 datasets

安装

只需运行:

$ pip install ourairports

使用

通过国际民航组织标识符获取机场信息

^{pr2}$

通过IATA标识符获取机场信息

from ourairports import OurAirports
airports = OurAirports().getAirportsByIATA('CWL')

通过经纬度距离获取机场信息

from ourairports import OurAirports
airports = OurAirports().getAirportsByDistance('51.5007325', '-0.1268141', 25)
for port in airports:
    print port.name

许可证

本项目根据麻省理工学院许可证的条款发布,并且 包括在下面

MIT License

Copyright (c) 2020 Matthew Gall

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

数据免责声明

我们机场的数据来源于 ^{a1和公共数据集 既不是作者,也不是ourairports.com网站团队提供 任何种类,明示或暗示,包括但不限于 适销性、适用于特定用途的保证, 所提供数据的准确性、可靠性或无干扰性

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
javascript通过WebSocket将服务器时间推送到多个客户端   这种java字节转换是如何工作的   数据库错误。sql。SQLEception:参数索引超出范围(1>参数数,为0)   java如何在搜索时过滤选定的viewpager片段中的recyclerview?   java如何使用OpenCV将图像转换为黑白图像并在ANDROID中消除阴影   Spring MVC项目中的java HTTP服务器状态404错误   Spring MVC中的java JSR303自定义约束验证器   java如何基于另一个ArrayList的值显示ArrayList中的特定项?   java如何在firebase messages节点获取最后发送给我的消息?   部署后在google app engine上运行servlet时发生java错误   java如何使用servlet在两个jsp之间发送数据   java日历年中的周是月中的周   从URL读取一个资源并直接返回这些字节作为REST请求的响应,Java 7和spring MVC 3.2不存储内存