https://github.com/fdesjardins/chart-supplements
Fetch airport chart supplements using Node.js
https://github.com/fdesjardins/chart-supplements
airports aviation chart-supplements charts faa
Last synced: 2 months ago
JSON representation
Fetch airport chart supplements using Node.js
- Host: GitHub
- URL: https://github.com/fdesjardins/chart-supplements
- Owner: fdesjardins
- License: mit
- Created: 2016-10-09T04:17:23.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T02:29:39.000Z (over 2 years ago)
- Last Synced: 2024-10-11T09:14:26.394Z (8 months ago)
- Topics: airports, aviation, chart-supplements, charts, faa
- Language: JavaScript
- Size: 847 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 10
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# chart-supplements
[![Build Status][travis-image]][travis-url]
[![NPM Version][npm-image]][npm-url]
[![Coverage][coveralls-image]][coveralls-url]Fetch the latest chart supplements information for airports
## Installation
```
$ npm install --save chart-supplements
```## Usage
```js
chartSupplements.list(['PANC', 'PADK']).then(results => {
console.log(JSON.stringify(results, null, 2))
})
```### Output
```json
[
{
"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](https://github.com/fdesjardins)
[npm-url]: https://www.npmjs.com/package/chart-supplements
[npm-image]: https://img.shields.io/npm/v/chart-supplements.svg?style=flat
[travis-url]: https://travis-ci.org/fdesjardins/chart-supplements
[travis-image]: https://img.shields.io/travis/fdesjardins/chart-supplements.svg?style=flat
[coveralls-url]: https://coveralls.io/r/fdesjardins/chart-supplements
[coveralls-image]: https://img.shields.io/coveralls/fdesjardins/chart-supplements.svg?style=flat