mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-04-20 23:23:56 +03:00
un-break parsing of remarks
This commit is contained in:
parent
6db7bf69a0
commit
971adcdbf1
1 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ const createParseArrOrDep = (prefix) => {
|
|||
direction: d.transport?.direction?.stopPlaces?.length > 0 && profile.parseStationName(ctx, d.transport?.direction?.stopPlaces[0].name) || profile.parseStationName(ctx, d.destination?.name || d.richtung || d.terminus) || null,
|
||||
provenance: profile.parseStationName(ctx, d.transport?.origin?.name || d.origin?.name || d.abgangsOrt?.name) || null,
|
||||
line: profile.parseLine(ctx, d) || null,
|
||||
remarks: profile.parseRemarks(ctx, d),
|
||||
remarks: [],
|
||||
origin: profile.parseLocation(ctx, d.transport?.origin || d.origin) || null,
|
||||
destination: profile.parseLocation(ctx, d.transport?.destination || d.destination) || null,
|
||||
vias: d.ueber,
|
||||
|
@ -37,7 +37,7 @@ const createParseArrOrDep = (prefix) => {
|
|||
Object.defineProperty(res, 'canceled', {value: true});
|
||||
}
|
||||
|
||||
if (opt.remarks) {
|
||||
if (opt.remarks || opt.meldungen) {
|
||||
res.remarks = profile.parseRemarks(ctx, d);
|
||||
}
|
||||
// TODO opt.stopovers
|
||||
|
|
Loading…
Add table
Reference in a new issue