From c270eed998452774392954f2d09c7daeb9347370 Mon Sep 17 00:00:00 2001 From: Kristjan Esperanto <35647502+KristjanESPERANTO@users.noreply.github.com> Date: Fri, 29 Oct 2021 18:21:00 +0200 Subject: [PATCH] nationalExp -> nationalExpress Probably overlooked at commit 567cc984097cbf147a809e4425dc8e185ea550ab. --- docs/journeys-from-trip.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/journeys-from-trip.md b/docs/journeys-from-trip.md index dd0164ce..8d12f304 100644 --- a/docs/journeys-from-trip.md +++ b/docs/journeys-from-trip.md @@ -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())