作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试通过OpenSky api接收飞机信息,同时尝试了python api和其他api。问题在于我们无法获得所需的所有信息。这是我们向其余api请求的示例。
def request(icao):
"""
@Param icao type string
"""
contents = urllib.request.urlopen(
"https://opensky-network.org/api/states/all?extended=true&icao24="+icao).read()
print(contents)
"""
The received data is a json with the following fields:
# icao24 - ICAO24 address of the transmitter in hex string representation.
# callsign - callsign of the vehicle. Can be None if no callsign has been received.
# origin_country - inferred through the ICAO24 address
# time_position - seconds since epoch of last position report. Can be None if there was no position report received by OpenSky within 15s before.
# last_contact - seconds since epoch of last received message from this transponder
# longitude - in ellipsoidal coordinates (WGS-84) and degrees. Can be None
# latitude - in ellipsoidal coordinates (WGS-84) and degrees. Can be None
# geo_altitude - geometric altitude in meters. Can be None
# on_ground - true if aircraft is on ground (sends ADS-B surface position reports).
# velocity - over ground in m/s. Can be None if information not present
# heading - in decimal degrees (0 is north). Can be None if information not present.
# vertical_rate - in m/s, incline is positive, decline negative. Can be None if information not present.
# sensors - serial numbers of sensors which received messages from the vehicle within the validity period of this state vector. Can be None if no filtering for sensor has been requested.
# baro_altitude - barometric altitude in meters. Can be None
# squawk - transponder code aka Squawk. Can be None
# spi - special purpose indicator
# position_source - origin of this state’s position: 0 = ADS-B, 1 = ASTERIX, 2 = MLAT, 3 = FLARM
Read more here:
https://opensky-network.org/apidoc/rest.html
"""
最佳答案
可用的飞机数据库可以在那里以CSV格式下载:https://opensky-network.org/datasets/metadata/
关于python - 通过OpenSky API或其他API从icao24接收飞机资料信息,例如飞机型号和制造商?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57994164/
OpenSky-Network 是一个用于全局飞机定位数据的 API。与 Openlayers-3 一起玩真是太棒了……但是! (因为有一个但是!) 使用 JavaScript,我试图访问 this
我是一名优秀的程序员,十分优秀!