nfdc-airport-data
National Flight Data Center’s (NFDC) 28 Day NASR Subscription, Airports and Other Landing Facilities
Installation
$ npm install --save @faa-aviation-data-portal/nfdc-airport-data
Usage
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',
...
}
API
airportData.facilities(options)
airportData.runways(options)
airportData.remarks(options)
airportData.schedules(options)
options
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:
airportData.regions()
airportData.districts()
airportData.states()
airportData.counties()
airportData.cities()
airportData.uses()
airportData.certifications()
License
MIT © Forrest Desjardins