Skip to content

A simple wrapper to return price and airline from the Google Flights API

License

Notifications You must be signed in to change notification settings

adhorrig/google-flights-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Google Flights Wrapper

Installation

npm install google-flights-wrapper

Usage

var qpx = require('google-flights-wrapper')(API_KEY_HERE);

qpx.api("1", "EUR5000", "1", "DUB", "GDN", "2016-12-14", function(data){
  //data looks like: [ { airline: 'SK', price: 'EUR71.10' } ]
});

Api Parameters:

adultCount: The number of adults going on the trip.
maxPrice: The max price for the trip. Note: Must be prefixed with currency i.e. EUR.
solutions: The number of possible routes the API should return.
origin: The origin airport code.
destination: The destination airport code.
date: The date of the flight.
fn: A function to access the API response.

About

A simple wrapper to return price and airline from the Google Flights API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published