Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KItinerary
Commits
9c83d2ec
Commit
9c83d2ec
authored
Jul 31, 2022
by
Volker Krause
Browse files
Document the eos.uptrade ticket format
parent
250e9d9a
Pipeline
#211052
passed with stage
in 8 minutes and 38 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/lib/scripts/eos.js
View file @
9c83d2ec
...
...
@@ -4,6 +4,18 @@
*/
function
parseTicket
(
ticket
,
node
)
{
// U_TLAY block in UIC 918.3 container with type "EOSU",
// up to 9 rows of content
// 0: Traveler name
// 1: Ticket name/tariff
// 2: Area of validity
// 3: Time range of validity
// 4: empty?
// 5: Traveler birth date
// 6: empty? (optional)
// 7: departure station (optional)
// 8: arrival station (optional)
var
res
=
JsonLd
.
newTrainReservation
();
res
.
reservedTicket
=
node
.
result
[
0
];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment