Fetch temporary flight restrictions and related data from https://tfr.faa.gov
$ npm install --save @faa-aviation-data-portal/tfrs
tfrs.list().then(results => {
console.log(JSON.stringify(results, null, 2))
})
[
{
"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"
}
},
...
]
The TFR NOTAM ID, e.g., 9/2094
Type: string
Options to customize the results of the fetch()
method
Type: object
Example:
{
"format": "json"
}
Specify the format of the results. Note, not all formats contain the same information.
Type: string
Valid values:
json
xml
aixm
Contributions welcome!
MIT © Forrest Desjardins