mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
nationalExp -> nationalExpress
Probably overlooked at commit 567cc98409
.
This commit is contained in:
parent
6941e7a4ad
commit
c270eed998
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ const client = createClient(dbProfile, 'my-awesome-program')
|
|||
// find any journey from Berlin Südkreuz to München Hbf
|
||||
const [journey] = await client.journeys(berlinSüdkreuz, münchenHbf, {results: 1, stopovers: true})
|
||||
// find the ICE leg
|
||||
const leg = journey.legs.find(l => l.line.product === 'nationalExp')
|
||||
const leg = journey.legs.find(l => l.line.product === 'nationalExpress')
|
||||
// find the stopover at the stop you've just passed
|
||||
const previousStopover = leg.stopovers.find(st => st.departure && new Date(st.departure) < Date.now())
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue