2017-11-18 17:53:12 +01:00
|
|
|
'use strict'
|
|
|
|
|
|
|
|
const createClient = require('../..')
|
|
|
|
const vbbProfile = require('.')
|
|
|
|
|
|
|
|
const client = createClient(vbbProfile)
|
|
|
|
|
2017-12-17 18:16:04 +01:00
|
|
|
// Hauptbahnhof to Charlottenburg
|
2017-11-18 17:53:12 +01:00
|
|
|
client.journeys('900000003201', '900000024101', {results: 1})
|
|
|
|
// client.departures('900000013102', {duration: 1})
|
|
|
|
// client.locations('Alexanderplatz', {results: 2})
|
2018-01-26 17:23:45 +01:00
|
|
|
// client.location('900000042101') // Spichernstr
|
2017-11-18 17:53:12 +01:00
|
|
|
// client.nearby(52.5137344, 13.4744798, {distance: 60})
|
|
|
|
// client.radar(52.52411, 13.41002, 52.51942, 13.41709, {results: 10})
|
2017-12-17 18:16:04 +01:00
|
|
|
|
2017-11-18 17:53:12 +01:00
|
|
|
.then((data) => {
|
2017-12-17 18:16:04 +01:00
|
|
|
console.log(require('util').inspect(data, {depth: null}))
|
|
|
|
})
|
|
|
|
.catch(console.error)
|