airport-data-js 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -3
- package/dist/airport-data.min.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +13 -9
- package/INSTRUCTIONS_REACT.md +0 -2
- package/data/airports.json +0 -1
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
A comprehensive library providing easy retrieval of airport data based on IATA, ICAO, city codes, country codes, and continents. Ideal for developers building applications related to aviation, travel, and geography.
|
|
4
4
|
|
|
5
|
+
#### NPM: https://www.npmjs.com/package/airport-data-js
|
|
6
|
+
|
|
5
7
|
## Features
|
|
6
8
|
|
|
7
9
|
- Retrieve airport data using IATA code.
|
|
@@ -13,6 +15,12 @@ A comprehensive library providing easy retrieval of airport data based on IATA,
|
|
|
13
15
|
- Efficiently packaged with minimized and gzipped data.
|
|
14
16
|
- **Comprehensive Data Access**: Retrieve airport data using IATA code, ICAO code, city codes, country codes, and continents.
|
|
15
17
|
- **Unique Link Integration**: The first library to provide direct links to [FlightRadar24](https://www.flightradar24.com/), [Radarbox](https://www.radarbox.com/), and [FlightAware](https://www.flightaware.com/) for each airport, giving users immediate access to live flight tracking and airport data.
|
|
18
|
+
- 9143 Aiports in total.
|
|
19
|
+
|
|
20
|
+
## Updates from 1.0.4 to 1.0.5
|
|
21
|
+
- Added 500+ aiports
|
|
22
|
+
- Fixed cities
|
|
23
|
+
- Added Wikipedia links
|
|
16
24
|
|
|
17
25
|
## Installation
|
|
18
26
|
|
|
@@ -25,7 +33,7 @@ npm install airport-data-js
|
|
|
25
33
|
For detailed instructions on how to use this library in different environments, please refer to the following links:
|
|
26
34
|
|
|
27
35
|
- [Node.js Instructions](https://github.com/aashishvanand/airport-data-js/blob/nodejs-sample/README.md)
|
|
28
|
-
- [React Instructions](
|
|
36
|
+
- [React Instructions](https://github.com/aashishvanand/airport-data-js/blob/reactjs-sample/README.md)
|
|
29
37
|
|
|
30
38
|
## Usage
|
|
31
39
|
|
|
@@ -53,6 +61,8 @@ console.log(airportByCountryCode);
|
|
|
53
61
|
// Retrieve data based on continents
|
|
54
62
|
const airportByContinent = airportData.getAirportByContinent("AS");
|
|
55
63
|
console.log(airportByContinent);
|
|
64
|
+
|
|
65
|
+
|
|
56
66
|
```
|
|
57
67
|
|
|
58
68
|
## Example Data Fields
|
|
@@ -71,7 +81,7 @@ For Chennai International Airport:
|
|
|
71
81
|
| Longitude | 80.1693 |
|
|
72
82
|
| Altitude (in feet) | 52 |
|
|
73
83
|
| State | Tamil Nadu |
|
|
74
|
-
| City |
|
|
84
|
+
| City | Chennai |
|
|
75
85
|
| County | Kancheepuram |
|
|
76
86
|
| State Code | Tamil Nadu |
|
|
77
87
|
| Airport Type | large_airport |
|
|
@@ -166,4 +176,4 @@ This project is licensed under the Creative Commons Attribution 4.0 Internationa
|
|
|
166
176
|
|
|
167
177
|
## Contributing
|
|
168
178
|
|
|
169
|
-
Contributions, issues, and feature requests are welcome! Feel free to check the [issues page](https://github.com/aashishvanand/airport-data-js/issues).
|
|
179
|
+
Contributions, issues, and feature requests are welcome! Feel free to check the [issues page](https://github.com/aashishvanand/airport-data-js/issues).
|