[英]OpenSky Network REST API, response filtered by location
Just starting out using the OpenSky Network REST API and am looking for a way to capture aircraft in a particular location. 刚开始使用OpenSky Network REST API并正在寻找一种在特定位置捕获飞机的方法。 I can see an api/states/all endpoint, and a way to filter results by receiver using serials=nnn (although the Receiver Availability page only gives the serial number, not the location of the receivers), but is it possible to only fetch aircraft state vectors that match a requested location/range?
我可以看到一个api / states / all端点,以及一种使用serials = nnn按接收方过滤结果的方法(尽管Receiver Availability页面仅提供序列号,而不提供接收方的位置),但是否只能提取与请求的位置/范围相匹配的飞机状态向量? It could be done in the client of course, but this would help to minimise the API traffic
当然可以在客户端完成此操作,但这将有助于最大程度地减少API流量
A few months ago, a latitude and logitude filter for requests to /api/states/all
was added to the OpenSky API: 几个月前,OpenSky API中添加了对
/api/states/all
请求的纬度和经度过滤器:
Please refer to the API Documentation for further details. 有关更多详细信息,请参阅API文档 。
I'm one of the OpenSky Network developers. 我是OpenSky Network开发人员之一。
Filtering for a particular area is not possible at the moment.
目前无法过滤特定区域。
We are planning to implement a bounding box filter, but it won't be available before autumn 2017.
我们正计划实施边界框过滤器,但它将在2017年秋季之前不可用。
Update August 2018 (a bit late, because I nearly forgot about this post) 2018年8月更新 (有点晚了,因为我差点忘了这篇文章)
In the meantime filtering by location is possible. 同时,可以按位置进行过滤。 You can define a bounding box using
lamin
, lomin
, lomax
und lamax
( lo
= longitude, la
= latitude). 您可以使用
lamin
, lomin
, lomax
和lamax
( lo
=经度, la
=纬度)定义边界框。 Here is an example: 这是一个例子:
https://opensky-network.org/api/states/all?lamin=45.8389&lomin=5.9962&lamax=47.8229&lomax=10.5226
For more detailed information, have a look at the API documentation 有关更多详细信息,请参阅API文档
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.