getsbb

0.0.2 • Public • Published

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)

Readme

Keywords

Package Sidebar

Install

npm i getsbb

Weekly Downloads

1

Version

0.0.2

License

ISC

Last publish

Collaborators

  • desouza