0.0.2 • Published 8 years ago

getsbb v0.0.2

Weekly downloads
2
License
ISC
Repository
github
Last release
8 years ago

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)