db-vendo-client/p/db/example.js

19 lines
609 B
JavaScript
Raw Normal View History

2017-11-13 00:38:09 +01:00
'use strict'
const createClient = require('../../')
const dbProfile = require('.')
2017-11-13 00:38:09 +01:00
const client = createClient(dbProfile)
// Berlin Jungfernheide to München Hbf
client.journeys('8011167', '8000261', {results: 1, tickets: true})
2017-11-13 00:38:09 +01:00
// client.departures('8011167', {duration: 1})
// client.locations('Berlin Jungfernheide')
// client.locations('Atze Musiktheater', {poi: true, addressses: false, fuzzy: false})
2018-01-26 17:23:45 +01:00
// client.location('8000309') // Regensburg Hbf
2017-11-13 00:38:09 +01:00
// client.nearby(52.4751309, 13.3656537, {results: 1})
2017-11-13 00:38:09 +01:00
.then((data) => {
console.log(require('util').inspect(data, {depth: null}))
}, console.error)