The FAA data source this package relied on (https://www.faa.gov/airports/airport_safety/airportdata_5010) is no longer available. That page now redirects to the FAA Airport Data and Information Portal (ADIP). Because the format of the ADIP requests and returned data are significantly different from the old source, we do not plan to update this package to use ADIP.
National Flight Data Center’s (NFDC) 28 Day NASR Subscription, Airports and Other Landing Facilities
$ npm install --save @faa-aviation-data-portal/nfdc-airport-data
const airportData = require('nfdc-airport-data')
airportData.facilities({ city: 'Anchorage' }).then(results => {
console.log(results[0])
})
Partial output:
{
SiteNumber: '50033.1*H',
Type: 'HELIPORT',
LocationID: '2OK',
EffectiveDate: '06/21/2018',
Region: 'AAL',
DistrictOffice: 'NONE',
State: 'AK',
StateName: 'ALASKA',
County: 'ANCHORAGE',
CountyState: 'AK',
City: 'ANCHORAGE',
FacilityName: 'ALASKA RGNL HOSPITAL',
Ownership: 'PU',
...
}
Type: object
const defaultOptions = {
region: '',
district: '',
state: '',
county: '',
city: '',
use: '',
certification: ''
}
All options values can be empty for searching all regions, districts, etc. You can also see currently available options using the following methods:
MIT © Forrest Desjardins