Skip to content

Instantly share code, notes, and snippets.

@mped-oticon
Created July 25, 2022 21:19
Show Gist options
  • Save mped-oticon/e3aa58aa2ff995112e1e5b4705bc6f57 to your computer and use it in GitHub Desktop.
Save mped-oticon/e3aa58aa2ff995112e1e5b4705bc6f57 to your computer and use it in GitHub Desktop.
HAFAS id notes WIP
#VN#1#ST#1658481984#PI#0#ZI#25701#TA#14#DA#240722#1S#8600714#1T#1147#LS#8600659#LT#1300#PU#86#RT#1#CA#006#ZE#C#ZB# C#PC#4#FR#8600714#FT#1147#TO#8600659#TT#1300#
VN 1 # Version?
ST 1658481984 # UNIX time. Dep or arrival?
PI 0
ZI 25701
TA 14
DA 240722
1S 8600714 # Location ID. Of start or end?
1T 1147
LS 8600659 # Location ID. Of start or end?
LT 1300 # Local time? HH:MM ?
PU 86
RT 1 # Transport type? {1:Train, 3:Bus}
CA 006
ZE C # Short name
ZB C # Long name
PC 4
FR 8600714
FT 1147
TO 8600659
TT 1300
#VN#1#ST#1658481984#PI#0#ZI#55022#TA#0#DA#240722#1S#48642#1T#1208#LS#51848#LT#1231#PU#86#RT#3#CA#013#ZE#158#ZB#Bus 158#PC#5#FR#48642#FT#1208#TO#51848#TT#1231#
VN 1
ST 1658481984
PI 0
ZI 55022
TA 0
DA 240722
1S 48642
1T 1208
LS 51848
LT 1231
PU 86
RT 3
CA 013
ZE 158
ZB Bus 158
PC 5
FR 48642
FT 1208
TO 51848
TT 1231
({'id': '2|#VN#1#ST#1658481984#PI#0#ZI#25701#TA#14#DA#240722#1S#8600714#1T#1147#LS#8600659#LT#1300#PU#86#RT#1#CA#006#ZE#C#ZB# C#PC#4#FR#8600714#FT#1147#TO#8600659#TT#1300#',
({'id': '2|#VN#1#ST#1658481984#PI#0#ZI#11674#TA#4#DA#240722#1S#48635#1T#1205#LS#2567#LT#1228#PU#86#RT#1#CA#013#ZE#152#ZB#Bus 152#PC#5#FR#48635#FT#1205#TO#2567#TT#1228#',
({'id': '2|#VN#1#ST#1658481984#PI#0#ZI#25701#TA#14#DA#240722#1S#8600714#1T#1147#LS#8600659#LT#1300#PU#86#RT#1#CA#006#ZE#C#ZB# C#PC#4#FR#8600714#FT#1147#TO#8600659#TT#1300#',
({'id': '2|#VN#1#ST#1658481984#PI#0#ZI#55022#TA#0#DA#240722#1S#48642#1T#1208#LS#51848#LT#1231#PU#86#RT#3#CA#013#ZE#158#ZB#Bus 158#PC#5#FR#48642#FT#1208#TO#51848#TT#1231#',
({'id': '2|#VN#1#ST#1658481984#PI#0#ZI#25645#TA#9#DA#240722#1S#8600659#1T#1116#LS#8600714#LT#1231#PU#86#RT#1#CA#006#ZE#C#ZB# C#PC#4#FR#8600659#FT#1116#TO#8600714#TT#1231#',
({'id': '2|#VN#1#ST#1658481984#PI#0#ZI#25645#TA#9#DA#240722#1S#8600659#1T#1116#LS#8600714#LT#1231#PU#86#RT#1#CA#006#ZE#C#ZB# C#PC#4#FR#8600659#FT#1116#TO#8600714#TT#1231#',
({'id': '2|#VN#1#ST#1658481984#PI#0#ZI#25701#TA#15#DA#240722#1S#8600714#1T#1157#LS#8600659#LT#1310#PU#86#RT#1#CA#006#ZE#C#ZB# C#PC#4#FR#8600714#FT#1157#TO#8600659#TT#1310#',
({'id': '2|#VN#1#ST#1658481984#PI#0#ZI#25701#TA#15#DA#240722#1S#8600714#1T#1157#LS#8600659#LT#1310#PU#86#RT#1#CA#006#ZE#C#ZB# C#PC#4#FR#8600714#FT#1157#TO#8600659#TT#1310#',
#VN#1#ST#1658481984#PI#0#ZI#25701#TA#14#DA#240722#1S#8600714#1T#1147#LS#8600659#LT#1300#PU#86#RT#1#CA#006#ZE#C#ZB# C#PC#4#FR#8600714#FT#1147#TO#8600659#TT#1300#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment