Skip to content
Branch: master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

README.md

nodejs-sdk

NodeJS Library for https://airlabs.co/

Installation

$ npm install iatacodes

Documentation

https://airlabs.co

Examples

const IC = require('iatacodes');

const ic = new IC('YOUR-API-KEY');

ic.api('airports', {code: 'CDG'}, function(error, response) {
  console.log(response);
});

ic.api('cities', {code: 'PAR'}, function(error, response) {
  console.log(response);
});

ic.api('countries', {code: 'FR'}, function(error, response) {
  console.log(response);
});

ic.api('airlines', {code: 'AF'}, function(error, response) {
  console.log(response);
});

ic.api('routes', {arrival: 'CDG'}, function(error, response) {
  console.log(response);
});

ic.api('autocomplete', {query: 'madrid'}, function(error, response) {
  console.log(response);
});

ic.api('nearby', {lat: -6.1744, lng: 106.8294, distance: 1000}, function(error, response) {
  console.log(response);
});

ic.api('timetable', {code: 'LGA', type: 'departure'}, function(error, response) {
  console.log(response);
});

License

This project is licensed under the MIT license.

About

NodeJS Library for AirLabs API

Resources

License

Releases

No releases published
You can’t perform that action at this time.