Need private packages and team management tools?Check out npm Teams »

@faa-aviation-data-portal/tfrs

0.0.5 • Public • Published

tfrs

Fetch temporary flight restrictions and related data from https://tfr.faa.gov

NPM Version

Installation

$ npm install --save @faa-aviation-data-portal/tfrs

Usage

tfrs.list().then(results => {
  console.log(JSON.stringify(results, null, 2))
})

Partial Output

[
  {
    "date": "08/15/2019",
    "notam": "9/2094",
    "facility": "ZLA",
    "state": "UT",
    "type": "HAZARDS",
    "description": "52NM SW OF ST. GEORGE, UT, Thursday, August 15, 2019 through Monday, September 30, 2019 UTC New  ",
    "links": {
      "details": "https://tfr.faa.gov/save_pages/detail_9_2094.html",
      "zoom": "https://tfr.faa.gov/tfr_map_ims/html/cc/scale3/tile_2_3.html",
      "xml": "https://tfr.faa.gov/save_pages/detail_9_2094.xml"
    }
  },
  ...
]

API

tfrs.list()

tfrs.fetch(tfrId, options)

tfrId

The TFR NOTAM ID, e.g., 9/2094

Type: string

options

Options to customize the results of the fetch() method

Type: object

Example:

{
  "format": "json"
}
options.format

Specify the format of the results. Note, not all formats contain the same information.

Type: string

Valid values:

  • json
  • xml
  • aixm

Contributing

Contributions welcome!

License

MIT © Forrest Desjardins

Install

npm i @faa-aviation-data-portal/tfrs

DownloadsWeekly Downloads

89

Version

0.0.5

License

MIT

Unpacked Size

12.7 kB

Total Files

4

Last publish

Collaborators

  • avatar