npm install reserbus-node
Reserbus, service that sell buses around México
Search for terminals
var reserbus = require('reserbus');
reserbus.terminals({
query: 'México'
});
Search for cities
var reserbus = require('reserbus');
reserbus.cities({prefetch: true}, function(err, result) {
console.log(err, result);
});
Search for buses
Arguments
- trips (Array):
arrivalDate (String) [format: 'dd/mm/yyyy']
origin (String)
destination (String)
var reserbus = require('reserbus');
reserbus.search({
trips: [{
arrivalDate: '03/03/2014',
origin: 'ciudad-de-mexico',
destination: 'monterrey'
}]
}, function(err, results) {
console.log(results.trips[0].departures);
});