Updated JSON version of the OurAirports Database.
npm install @mm-coder/ourairports-json
import * as airports from 'ourairports-json'
const airports = require('ourairports-json')
Airports is an array of airports as follows:
{
"id": "4461",
"ident": "LPPT",
"type": "large_airport",
"name": "Humberto Delgado Airport (Lisbon Portela Airport)",
"latitude_deg": "38.7813",
"longitude_deg": "-9.13592",
"elevation_ft": "374",
"continent": "EU",
"iso_country": "PT",
"iso_region": "PT-11",
"municipality": "Lisbon",
"scheduled_service": "yes",
"gps_code": "LPPT",
"iata_code": "LIS",
"local_code": "",
"home_link": "http://www.ana.pt/en-US/Aeroportos/lisboa/Lisboa/Pages/HomeLisboa.aspx",
"wikipedia_link": "https://en.wikipedia.org/wiki/Lisbon_Portela_Airport",
"keywords": "Lisboa"
}
Running the updater will update the ./dist/airports.json
with the latest information in the OurAirports database
pip install -r requirements.txt
python3 updater.py
Was inspired by this outdated package