Socket
Socket
Sign inDemoInstall

aviation-edge

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

aviation-edge

IATA and ICAO database with API key for airlines, airport, flight tracking, timetables and air routes.


Version published
Maintainers
1
Weekly downloads
1

Weekly downloads

Readme

Source

NodeJs-SDK

Nodejs Library for https://aviation-edge.com/

Installation

$ npm install aviation-edge

Sample Examples

try {

  var aviation = require('aviation-edge');
  var ae = new aviation('api-key');

  //City
  ae.apiCall('cityDatabase',{codeIataCity: 'AAA',codeIso2Country: 'PF'}, function(response) {
   console.log(response);

  });

  //Benchamrk Cities
  ae.apiCall('benchmarkCities',{codeIataCity: 'AAA',codeIso2Country: 'PF'}, function(response) {
    console.log(response);

  });


  //Country
  ae.apiCall('countryDatabase',{codeIso2Country: 'PF',nameCountry: 'French Polynesia'}, function(response) {
    console.log(response);

  });

  //Airport
  ae.apiCall('airportDatabase',{codeIataAirport: 'AAA',codeIso2Country: 'PF'}, function(response) {
    console.log(response);

  });

  //Benchamrk Airport
  ae.apiCall('benchmarkAirports',{codeIataAirport: 'AAA',codeIso2Country: 'PF'}, function(response) {
    console.log(response);

  });

  //Airline
  ae.apiCall('airlineDatabase',{codeIataAirline: 'AA',codeIso2Country: 'US'}, function(response) {
    console.log(response);

  });

  //Benchamrk Airline
  ae.apiCall('benchmarkAirlines',{codeIataAirline: 'AA',codeIso2Country: 'US'}, function(response) {
    console.log(response);

  });

  //Airplane
  ae.apiCall('airplaneDatabase',{numberRegistration: 'HB-JVE',hexIcaoAirplane: '4B19EA'}, function(response) {
    console.log(response);

  });

  //Aircrafts
  ae.apiCall('planeTypeDatabase',{codeIataAircraft: '100'}, function(response) {
    console.log(response);

  });

  //Tax
  ae.apiCall('taxDatabase',{codeIataTax: 'AB'}, function(response) {
    console.log(response);

  });

  // Real Time Flights Informations
  ae.apiCall('flight',{iataCode: 'LGA',type: 'departure'}, function(response) {
    console.log(response);

  });

  //Airport Timetables
  ae.apiCall('timetable',{iataCode: 'LGA',type: 'departure'}, function(response) {
    console.log(response);

  });

  // Routes iataCode=LGA&type=departure
  ae.apiCall('routes',{departureIata: 'CDG', departureIcao: 'LFPG', airlineIata: '0B'}, function(response) {
    console.log(response);

  });

  // NearBy
  ae.apiCall('nearby',{lat: '-5.466667',lng: '122.63333',distance:'1000'}, function(response) {
    console.log(response);

  });


  // autocomplete
  ae.apiCall('autocomplete',{query: 'madrid'}, function(response) {
    console.log(response);

});

} 
catch(e) {
    process.exit(e.code);
}

Keywords

FAQs

Last updated on 11 Dec 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc