mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 23:29:35 +02:00
17 lines
545 B
JavaScript
17 lines
545 B
JavaScript
|
'use strict'
|
||
|
|
||
|
const createClient = require('.')
|
||
|
const dbProfile = require('./p/db')
|
||
|
|
||
|
const client = createClient(dbProfile)
|
||
|
|
||
|
// Berlin Jungfernheide to München Hbf
|
||
|
client.journeys('8011167', '8000261', {results: 1})
|
||
|
// client.departures('8011167', {duration: 1})
|
||
|
// client.locations('Berlin Jungfernheide')
|
||
|
// client.locations('ATZE Musiktheater', {poi: true, addressses: false, fuzzy: false})
|
||
|
// client.nearby(52.4751309, 13.3656537, {results: 1})
|
||
|
.then((data) => {
|
||
|
console.log(require('util').inspect(data, {depth: null}))
|
||
|
}, console.error)
|