aviationstack is a suite of API used in tracking flight data. This is useful for individuals who are interested in building a flight booking or tracking system.
Aviationstack是用于跟踪飞行数据的一套API。 这对于有兴趣建立机票预定或跟踪系统的个人很有用。
特征 ( Features )
- It’s free to get started, so you can evaluate if this is suitable for your needs. 它是免费的入门指南,因此您可以评估它是否适合您的需求。
- Very efficient and easy to use API. 非常有效且易于使用的API。
- Built by apilayer, so you know you’re in safe hands. 由apilayer构建 ,因此您可以安全使用。
使用航空堆栈 ( Using aviationstack )
After creating a free account over at their website, make sure to get your API key as this is needed to make requests to the API.
在其网站上创建免费帐户后,请确保获取您的API密钥,因为这是向API发出请求所必需的。
The base endpoint for all requests is:
所有请求的基本端点是:
https://api.aviationstack.com/v1/?access_key=MY_KEY
Note: you should replace MY\KEY with the API key you get from the site._
注意:您应该将MY \ KEY替换为从网站获得的API密钥。_
Every future request has an endpoint associated with that endpoint.
每个将来的请求都有一个与该端点关联的端点。
/flights
lists all realtime flight./flights
列出所有实时航班。/historical
lists historical flight data./historical
列出历史飞行数据。/routes
is useful for listing the routes an airline will take./routes
对于列出航空公司将采用的航线很有用。/airports
is used to get data about airports, etc./airports
用于获取有关机场等的数据。
You can find more info on their documentation.
您可以在他们的文档中找到更多信息。
翻译自: https://scotch.io/tutorials/flight-tracking-with-aviationstack-real-time-flight-tracking-api