引言
使用openflights能够下载到全球范围的机场、航班、路线等数据信息,数据地址为:https://openflights.org/data.html。
机场空间位置示意图:
机场数据(Airport)
机场数据包含机场名称(Name)、所属国家(Country)、所在城市(City)、经纬度位置(Latitude、Longitude)、高程(Altitude)、时区等信息,提供了在线查询机场信息的网址,批量下载机场数据的方式。
数据查询地址:
https://openflights.org/html/apsearch
批量机场数据下载地址:
https://raw.githubusercontent.com/jpatokal/openflights/master/data/airports.dat
航线信息
航线信息包含航线(Airline)、起点机场(Source airport)、目的机场(Destination airport)、中间经过机场(Stops)等数据信息;
数据查询地址:
https://openflights.org/html/alsearch
批量数据下载地址:
https://raw.githubusercontent.com/jpatokal/openflights/master/data/airlines.dat
航线信息示意图:
使用此数据,在地图上基于位置信息,能够显示机场的位置信息,借助echarts等开发类库,根据航线起点、终点的机场位置数据,展示航线的数据信息,按照国家、城市显示机场、航线的数据信息。
网站同时提供了github的下载此类数据方式,地址是:https://github.com/jpatokal/openflights