2018-03-14 14:54:08 +01:00
|
|
|
'use strict'
|
|
|
|
|
|
|
|
const createClient = require('../..')
|
|
|
|
const nahshProfile = require('.')
|
|
|
|
|
|
|
|
const client = createClient(nahshProfile)
|
|
|
|
|
|
|
|
// Flensburg Hbf to Kiel Hbf
|
2018-03-15 09:33:31 +01:00
|
|
|
client.journeys('8000103', '8000199', {results: 10, tickets: true})
|
2018-03-14 14:54:08 +01:00
|
|
|
// client.departures('8000199', {duration: 10})
|
|
|
|
// client.journeyLeg('1|30161|5|100|14032018', 'Bus 52')
|
|
|
|
// client.locations('Schleswig', {results: 1})
|
|
|
|
// client.location('706990') // Kiel Holunderbusch
|
|
|
|
// client.nearby({type: 'location', latitude: 54.295691, longitude: 10.116424}, {distance: 60})
|
|
|
|
// client.radar(54.4, 10.0, 54.2, 10.2, {results: 10})
|
|
|
|
|
|
|
|
.then((data) => {
|
|
|
|
console.log(require('util').inspect(data, {depth: null}))
|
|
|
|
})
|
|
|
|
.catch(console.error)
|