Skip to content

Latest commit

 

History

History
92 lines (68 loc) · 2.37 KB

readme.md

File metadata and controls

92 lines (68 loc) · 2.37 KB

⚠️ This project has been deprecated. ⚠️

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.

nfdc-airport-data

National Flight Data Center’s (NFDC) 28 Day NASR Subscription, Airports and Other Landing Facilities

NPM Version Build Status

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