add provenance field on arrivals

This commit is contained in:
Julius Tens 2020-06-09 12:46:13 +02:00 committed by Jannis Redmann
parent 542aa8caef
commit 3ca4a0c2b2
2 changed files with 4 additions and 0 deletions

View file

@ -29,6 +29,7 @@ const createParseArrOrDep = (prefix) => {
...profile.parsePlatform(ctx, plPlanned, plPrognosed, cancelled),
// todo: for arrivals, this is the *origin*, not the *direction*
direction: prefix === DEPARTURE && d.dirTxt && profile.parseStationName(ctx, d.dirTxt) || null,
provenance: prefix === ARRIVAL && d.dirTxt && profile.parseStationName(ctx, d.dirTxt) || null,
line: d.line || null,
remarks: []
}

View file

@ -185,6 +185,7 @@ module.exports = [
platform: null,
plannedPlatform: null,
direction: 'S+U Hermannstr.',
provenance: null,
line: {
type: 'line',
id: 'u8',
@ -849,6 +850,7 @@ module.exports = [
platform: null,
plannedPlatform: null,
direction: 'U Paracelsus-Bad',
provenance: null,
line: {
type: 'line',
id: 'u8',
@ -1608,6 +1610,7 @@ module.exports = [
platform: '4',
plannedPlatform: '4',
direction: 'S Spandau',
provenance: null,
line: {
type: 'line',
id: 's9',