mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
parseMovement: expose journey (leg) id
This commit is contained in:
parent
a97e0d31e7
commit
48f2cefb5b
1 changed files with 1 additions and 0 deletions
|
@ -12,6 +12,7 @@ const createParseMovement = (profile, locations, lines, remarks, polylines = [])
|
||||||
|
|
||||||
const res = {
|
const res = {
|
||||||
direction: profile.parseStationName(m.dirTxt),
|
direction: profile.parseStationName(m.dirTxt),
|
||||||
|
journeyId: m.jid || null,
|
||||||
trip: m.jid && +m.jid.split('|')[1] || null, // todo: this seems brittle
|
trip: m.jid && +m.jid.split('|')[1] || null, // todo: this seems brittle
|
||||||
line: lines[m.prodX] || null,
|
line: lines[m.prodX] || null,
|
||||||
location: m.pos ? {
|
location: m.pos ? {
|
||||||
|
|
Loading…
Add table
Reference in a new issue