getsbb
v0.0.2
Published
Class for the Traininformation in switzerland
Downloads
3
Readme
GETSBB
Klasse für die Zuginformationen in der Schweiz Class for the Traininformation in switzerland
$ npm install GETSBB
Usage
var sbb = require('GETSBB')
//initialize Connection
//example
from = "Bern"
to = "Biel"
var myconnections = sbb(from,to);
//Ouput
setTimeout(function () {
//Departure Name
console.log(sbb.DepartureName[0])
//Departure Time
console.log(sbb.DepartureTime[0])
//Platform
console.log("Gleis " +sbb.DeparturePlatform[0])
//DepartureTranfer
if (sbb.DepartureTranfer[0] == undefined) {
console.log(0)}
else {console.log(sbb.DepartureTranfer[0])}
},2000)