@datafire/aviationdata_systems

5.0.0 • Public • Published

@datafire/aviationdata_systems

Client library for AviationData.Systems Airports API V1

Installation and Usage

npm install --save @datafire/aviationdata_systems
let aviationdata_systems = require('@datafire/aviationdata_systems').create({
  username: "",
  password: ""
});

.then(data => {
  console.log(data);
});

Description

Actions

AutoCompleteAirportName_AirportNameSearch

Required parameters: airport_name, airport_service_type. Optional parameter: country code (ISO 3166-1).

aviationdata_systems.AutoCompleteAirportName_AirportNameSearch({
  "airport_name": "",
  "airport_service_type": ""
}, context)

Input

  • input object
    • airport_name required string: Required: The airports name
    • airport_service_type required string (values: All, Scheduled, NonScheduled): Required: Needs to be: All, Scheduled or NonScheduled
    • optional_country_code string: Optional: Country code (ISO 3166-1). This can be found via /countries

Output

AirportIATA_AirportIATASearch

Required parameters: airport_iata

aviationdata_systems.AirportIATA_AirportIATASearch({
  "airport_iata": ""
}, context)

Input

  • input object
    • airport_iata required string: Required: The airports IATA code

Output

AirportDetails_AirportNameSearch

Required parameters: airport_name, api_mode

aviationdata_systems.AirportDetails_AirportNameSearch({
  "airport_name": ""
}, context)

Input

  • input object
    • airport_name required string: Required: The airports name

Output

NearestAirports_NearestAirportList

Required parameters: result_count, latitude, longitude, airport_service_type

aviationdata_systems.NearestAirports_NearestAirportList({
  "result_count": 0,
  "latitude": 0,
  "longitude": 0
}, context)

Input

  • input object
    • result_count required integer: Required: Number of airports to return. Min: 1 Max: 20
    • latitude required number: Required: Latitude
    • longitude required number: Required: Longitude

Output

CountryAirportList_CountryAirportList

Required parameters: country code (ISO 3166-1), airport_service_type.

aviationdata_systems.CountryAirportList_CountryAirportList({
  "country_code": "",
  "airport_service_type": ""
}, context)

Input

  • input object
    • country_code required string: Country code (ISO 3166-1). This can be found via /countries
    • airport_service_type required string (values: All, Scheduled, NonScheduled): Required: Needs to be: All, Scheduled or NonScheduled

Output

CountryList_CountryAirportList

Country list. Returns a list of countries where airport data is available

aviationdata_systems.CountryList_CountryAirportList(null, context)

Input

This action has no parameters

Output

Definitions

AirportsAPI.Controllers.AirportDetailsController.Response

  • AirportsAPI.Controllers.AirportDetailsController.Response object

AirportsAPI.Controllers.AirportIATAController.Response

  • AirportsAPI.Controllers.AirportIATAController.Response object

AirportsAPI.Controllers.AutoCompleteAirportNameController.Response

AirportsAPI.Controllers.CountryAirportListController.AirportListResponse

AirportsAPI.Controllers.CountryListController.CountryListResponse

  • AirportsAPI.Controllers.CountryListController.CountryListResponse object

AirportsAPI.Controllers.NearestAirportsController.Response

  • AirportsAPI.Controllers.NearestAirportsController.Response object

AirportsAPI.Models.Airport

AirportsAPI.Models.AirportList

  • AirportsAPI.Models.AirportList object
    • airport_name string
    • airport_type string
    • iata_code string
    • latitude string
    • location string
    • longitude string

AirportsAPI.Models.AirportListAutocomplete

  • AirportsAPI.Models.AirportListAutocomplete object
    • label string
    • value string

AirportsAPI.Models.Country

  • AirportsAPI.Models.Country object
    • continent string
    • country_code string
    • flag_url string
    • name string

AirportsAPI.Models.Frequency

  • AirportsAPI.Models.Frequency object
    • desc string
    • frequency_mhz string
    • frequency_type string

AirportsAPI.Models.Location.Country

  • AirportsAPI.Models.Location.Country object
    • country_code string
    • flag_url string
    • name string

AirportsAPI.Models.Location.Region

  • AirportsAPI.Models.Location.Region object
    • local_code string
    • name string
    • region_code string

AirportsAPI.Models.Runway

  • AirportsAPI.Models.Runway object
    • closed boolean
    • hE_latitude string
    • hE_longitude string
    • he_displaced_threshold_ft string
    • he_elevation_ft string
    • he_heading_deg string
    • le_displaced_threshold_ft string
    • le_elevation_ft string
    • le_heading_deg string
    • le_latitude string
    • le_longitude string
    • length_ft string
    • lighted boolean
    • surface_type string
    • width_ft string

Readme

Keywords

none

Package Sidebar

Install

npm i @datafire/aviationdata_systems

Weekly Downloads

2

Version

5.0.0

License

MIT

Unpacked Size

23.2 kB

Total Files

4

Last publish

Collaborators

  • datafire