JSPM

@faa-aviation-data-portal/tfrs

0.0.5
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q45501F
  • License MIT

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

Package Exports

  • @faa-aviation-data-portal/tfrs

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@faa-aviation-data-portal/tfrs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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