Changed Journeys to Departures.

the endpoint which is discussed here is departures not journeys. 
If you use journeys with this parameters, you get mad with debugging.
This commit is contained in:
Julian Amelung 2018-04-17 17:58:55 +02:00 committed by Jannis Redmann
parent c8a144427e
commit 16e6dd6d14

View file

@ -44,7 +44,7 @@ const vbbProfile = require('hafas-client/p/vbb')
const client = createClient(vbbProfile)
// S Charlottenburg
client.journeys('900000024101', {duration: 3})
client.departures('900000024101', {duration: 3})
.then(console.log)
.catch(console.error)
```