Skip to content

Latest commit

 

History

History
90 lines (71 loc) · 2.14 KB

readme.md

File metadata and controls

90 lines (71 loc) · 2.14 KB

⚠️ This project has been deprecated. ⚠️

This package is no longer maintained and will be deleted in 30 days.

chart-supplements

Build Status NPM Version Coverage

Fetch the latest chart supplements information for airports

Installation

$ npm install --save chart-supplements

Usage

chartSupplements.list(['PANC', 'PADK']).then(results => {
  console.log(JSON.stringify(results, null, 2))
})

Output

[
  {
    "ident": "ANC (PANC)",
    "city": "ANCHORAGE",
    "state": "AK",
    "airport": "TED STEVENS ANCHORAGE INTL",
    "navAid": "",
    "chart": "ANCHORAGE",
    "volBackPages": {
      "name": "AK (PDF)",
      "url": "http://aeronav.faa.gov/afd/02mar2017/AK_rear_02mar2017.pdf"
    },
    "airportNavAidListing": {
      "name": "ak_45_02MAR2017 (PDF)",
      "url": "http://aeronav.faa.gov/afd/02mar2017/ak_45_02MAR2017.pdf"
    }
  },
  {
    "ident": "ADK (PADK)",
    "city": "ADAK ISLAND",
    "state": "AK",
    "airport": "ADAK",
    "navAid": "",
    "chart": "W ALEUTIAN ISLS",
    "volBackPages": {
      "name": "AK (PDF)",
      "url": "http://aeronav.faa.gov/afd/02mar2017/AK_rear_02mar2017.pdf"
    },
    "airportNavAidListing": {
      "name": "ak_32_02MAR2017 (PDF)",
      "url": "http://aeronav.faa.gov/afd/02mar2017/ak_32_02MAR2017.pdf"
    }
  }
]

API

chartSupplements(icaos)

chartSupplements.list(icaos)

icaos

Type: string or array

One of the following:

  • a single ICAO code
  • an array of ICAO codes

chartSupplements.fetchCurrentCycle()

License

MIT © Forrest Desjardins