我们的机场是一个很好的客户端库,可以满足您所有的机场数据需求
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网站团队提供 任何种类,明示或暗示,包括但不限于 适销性、适用于特定用途的保证, 所提供数据的准确性、可靠性或无干扰性
- 项目
标签: