Example: Train AC - FF without timing

from tom.util import example, dump_routing_info_as_xml
from tom.tom import make_train_from_yml, TrainRun, RouteSection, Route
from tom.plot import plot_train, plot_graph

Load example 4 from yaml specification

_, t_spec_file = example('../tests/data', 'without-timing')
print(t_spec_file.read_text())

Out:

---
# This example demonstrates, how to use ECM without the need to specify
# exact departure and travel times.
# Just always use as departure time 12:00 and travel time 24h if the train
# should have a night shift.
coreID: 00AB
lead_ru: 1080 # DB FV
# initial revision of RoutingInfo. Alle sections
# also have version 1
version: 1
sections:
    - id: 10
      version: 1
      departure_station: AC
      arrival_station: EMM
      travel_time: '24:00:00'
      color: yellowgreen
      succ:
          - 20
    - id: 20
      version: 1
      departure_station: EMM
      arrival_station: FF
      departure_time: '12:00:00' # => Route Construction Start
      travel_time: '24:00:00'
      calendar:
        begin: '2021-12-02'
        end: '2021-12-31'
        mask: 'Tue Wed Thu Fri'
      color: green

    - id: 30
      version: 1
      departure_station: AC
      arrival_station: Venlo
      travel_time: '24:00:00'
      color: cyan
      succ:
          - 40
    - id: 40
      version: 1
      departure_station: Venlo
      arrival_station: FF
      travel_time: '24:00:00'
      departure_time: '12:00:00' # => Route Construction Start
      calendar:
        begin: '2021-12-02'
        end: '2022-01-01'
        mask: 'Sat Sun Mon'
      color: salmon

Create train object and show its train id.

t = make_train_from_yml(t_spec_file)
t.train_id()

Out:

'TR/8350/00AB/00/2021'

Timetable

df = t.to_dataframe()
df
Departure AC Arrival Venlo Departure Venlo Arrival EMM Departure EMM Arrival FF
Daily Train ID
TR/8350/00AB/10/2021/2021-12-01 Mi 01.12.21 12:00 Do 02.12.21 12:00 Do 02.12.21 12:00 Fr 03.12.21 12:00
TR/8350/00AB/10/2021/2021-12-02 Do 02.12.21 12:00 Fr 03.12.21 12:00 Fr 03.12.21 12:00 Sa 04.12.21 12:00
TR/8350/00AB/30/2021/2021-12-03 Fr 03.12.21 12:00 Sa 04.12.21 12:00 Sa 04.12.21 12:00 So 05.12.21 12:00
TR/8350/00AB/30/2021/2021-12-04 Sa 04.12.21 12:00 So 05.12.21 12:00 So 05.12.21 12:00 Mo 06.12.21 12:00
TR/8350/00AB/30/2021/2021-12-05 So 05.12.21 12:00 Mo 06.12.21 12:00 Mo 06.12.21 12:00 Di 07.12.21 12:00
TR/8350/00AB/10/2021/2021-12-06 Mo 06.12.21 12:00 Di 07.12.21 12:00 Di 07.12.21 12:00 Mi 08.12.21 12:00
TR/8350/00AB/10/2021/2021-12-07 Di 07.12.21 12:00 Mi 08.12.21 12:00 Mi 08.12.21 12:00 Do 09.12.21 12:00
TR/8350/00AB/10/2021/2021-12-08 Mi 08.12.21 12:00 Do 09.12.21 12:00 Do 09.12.21 12:00 Fr 10.12.21 12:00
TR/8350/00AB/10/2021/2021-12-09 Do 09.12.21 12:00 Fr 10.12.21 12:00 Fr 10.12.21 12:00 Sa 11.12.21 12:00
TR/8350/00AB/30/2021/2021-12-10 Fr 10.12.21 12:00 Sa 11.12.21 12:00 Sa 11.12.21 12:00 So 12.12.21 12:00
TR/8350/00AB/30/2021/2021-12-11 Sa 11.12.21 12:00 So 12.12.21 12:00 So 12.12.21 12:00 Mo 13.12.21 12:00
TR/8350/00AB/30/2021/2021-12-12 So 12.12.21 12:00 Mo 13.12.21 12:00 Mo 13.12.21 12:00 Di 14.12.21 12:00
TR/8350/00AB/10/2021/2021-12-13 Mo 13.12.21 12:00 Di 14.12.21 12:00 Di 14.12.21 12:00 Mi 15.12.21 12:00
TR/8350/00AB/10/2021/2021-12-14 Di 14.12.21 12:00 Mi 15.12.21 12:00 Mi 15.12.21 12:00 Do 16.12.21 12:00
TR/8350/00AB/10/2021/2021-12-15 Mi 15.12.21 12:00 Do 16.12.21 12:00 Do 16.12.21 12:00 Fr 17.12.21 12:00
TR/8350/00AB/10/2021/2021-12-16 Do 16.12.21 12:00 Fr 17.12.21 12:00 Fr 17.12.21 12:00 Sa 18.12.21 12:00
TR/8350/00AB/30/2021/2021-12-17 Fr 17.12.21 12:00 Sa 18.12.21 12:00 Sa 18.12.21 12:00 So 19.12.21 12:00
TR/8350/00AB/30/2021/2021-12-18 Sa 18.12.21 12:00 So 19.12.21 12:00 So 19.12.21 12:00 Mo 20.12.21 12:00
TR/8350/00AB/30/2021/2021-12-19 So 19.12.21 12:00 Mo 20.12.21 12:00 Mo 20.12.21 12:00 Di 21.12.21 12:00
TR/8350/00AB/10/2021/2021-12-20 Mo 20.12.21 12:00 Di 21.12.21 12:00 Di 21.12.21 12:00 Mi 22.12.21 12:00
TR/8350/00AB/10/2021/2021-12-21 Di 21.12.21 12:00 Mi 22.12.21 12:00 Mi 22.12.21 12:00 Do 23.12.21 12:00
TR/8350/00AB/10/2021/2021-12-22 Mi 22.12.21 12:00 Do 23.12.21 12:00 Do 23.12.21 12:00 Fr 24.12.21 12:00
TR/8350/00AB/10/2021/2021-12-23 Do 23.12.21 12:00 Fr 24.12.21 12:00 Fr 24.12.21 12:00 Sa 25.12.21 12:00
TR/8350/00AB/30/2021/2021-12-24 Fr 24.12.21 12:00 Sa 25.12.21 12:00 Sa 25.12.21 12:00 So 26.12.21 12:00
TR/8350/00AB/30/2021/2021-12-25 Sa 25.12.21 12:00 So 26.12.21 12:00 So 26.12.21 12:00 Mo 27.12.21 12:00
TR/8350/00AB/30/2021/2021-12-26 So 26.12.21 12:00 Mo 27.12.21 12:00 Mo 27.12.21 12:00 Di 28.12.21 12:00
TR/8350/00AB/10/2021/2021-12-27 Mo 27.12.21 12:00 Di 28.12.21 12:00 Di 28.12.21 12:00 Mi 29.12.21 12:00
TR/8350/00AB/10/2021/2021-12-28 Di 28.12.21 12:00 Mi 29.12.21 12:00 Mi 29.12.21 12:00 Do 30.12.21 12:00
TR/8350/00AB/10/2021/2021-12-29 Mi 29.12.21 12:00 Do 30.12.21 12:00 Do 30.12.21 12:00 Fr 31.12.21 12:00
TR/8350/00AB/10/2021/2021-12-30 Do 30.12.21 12:00 Fr 31.12.21 12:00 Fr 31.12.21 12:00 Sa 01.01.22 12:00
TR/8350/00AB/30/2021/2021-12-31 Fr 31.12.21 12:00 Sa 01.01.22 12:00 Sa 01.01.22 12:00 So 02.01.22 12:00


Bildfahrplan

Show timetable as plot

plot_train(t)
Timetable TR/8350/00AB/00/2021 v1

Show only the first week

plot_train(t, no_of_runs=7)
Timetable TR/8350/00AB/00/2021 v1

Route Sections

From which sections the train is composed?

section: RouteSection
for section in t.sections:
    print(section.description(), "\n")

Out:

ID        : 10.v1
Calender  : 01/12 to 30/12 110001111000111100011110001111
Start   at: 12:00 in AC
Arrival at: 12:00 in EMM
Successors: [20]

ID        : 20.v1
Calender  : 02/12 to 31/12 110001111000111100011110001111
Start   at: 12:00 in EMM
Arrival at: 12:00 in FF
Successors: []

ID        : 30.v1
Calender  : 03/12 to 31/12 11100001110000111000011100001
Start   at: 12:00 in AC
Arrival at: 12:00 in Venlo
Successors: [40]

ID        : 40.v1
Calender  : 04/12 to 01/01 11100001110000111000011100001
Start   at: 12:00 in Venlo
Arrival at: 12:00 in FF
Successors: []

Section graph

The section graph is computed using the successor relation:

sg = t.section_graph()
plot_graph(sg)
plot ac ff without timing

Routes

Print all possible routes. Routes are calculated from all possible paths in the section graph.

route: Route
for route in t.routes():
    print(route.description(), "\n")

Out:

Route     : AC-EMM-FF
Key       : 10-20
Calendar  : 01/12 to 30/12  110001111000111100011110001111
Start   at: 12:00 in AC
Arrival at: 12:00 in EMM
Arrival at: 12:00 in FF


Route     : AC-Venlo-FF
Key       : 30-40
Calendar  : 03/12 to 31/12  11100001110000111000011100001
Start   at: 12:00 in AC
Arrival at: 12:00 in Venlo
Arrival at: 12:00 in FF

Section runs

For each day of the calendar of a section a SectionRun is created. The section runs are the rows of RouteSection.to_dataframe:

for section in t.sections:
    print(f"{section.section_id}: {section}")
    print(section.to_dataframe(), "\n")

Out:

10: AC-EMM
            ID                  AC                 EMM
2021-12-01  10 2021-12-01 12:00:00 2021-12-02 12:00:00
2021-12-02  10 2021-12-02 12:00:00 2021-12-03 12:00:00
2021-12-06  10 2021-12-06 12:00:00 2021-12-07 12:00:00
2021-12-07  10 2021-12-07 12:00:00 2021-12-08 12:00:00
2021-12-08  10 2021-12-08 12:00:00 2021-12-09 12:00:00
2021-12-09  10 2021-12-09 12:00:00 2021-12-10 12:00:00
2021-12-13  10 2021-12-13 12:00:00 2021-12-14 12:00:00
2021-12-14  10 2021-12-14 12:00:00 2021-12-15 12:00:00
2021-12-15  10 2021-12-15 12:00:00 2021-12-16 12:00:00
2021-12-16  10 2021-12-16 12:00:00 2021-12-17 12:00:00
2021-12-20  10 2021-12-20 12:00:00 2021-12-21 12:00:00
2021-12-21  10 2021-12-21 12:00:00 2021-12-22 12:00:00
2021-12-22  10 2021-12-22 12:00:00 2021-12-23 12:00:00
2021-12-23  10 2021-12-23 12:00:00 2021-12-24 12:00:00
2021-12-27  10 2021-12-27 12:00:00 2021-12-28 12:00:00
2021-12-28  10 2021-12-28 12:00:00 2021-12-29 12:00:00
2021-12-29  10 2021-12-29 12:00:00 2021-12-30 12:00:00
2021-12-30  10 2021-12-30 12:00:00 2021-12-31 12:00:00

20: EMM-FF
            ID                 EMM                  FF
2021-12-02  20 2021-12-02 12:00:00 2021-12-03 12:00:00
2021-12-03  20 2021-12-03 12:00:00 2021-12-04 12:00:00
2021-12-07  20 2021-12-07 12:00:00 2021-12-08 12:00:00
2021-12-08  20 2021-12-08 12:00:00 2021-12-09 12:00:00
2021-12-09  20 2021-12-09 12:00:00 2021-12-10 12:00:00
2021-12-10  20 2021-12-10 12:00:00 2021-12-11 12:00:00
2021-12-14  20 2021-12-14 12:00:00 2021-12-15 12:00:00
2021-12-15  20 2021-12-15 12:00:00 2021-12-16 12:00:00
2021-12-16  20 2021-12-16 12:00:00 2021-12-17 12:00:00
2021-12-17  20 2021-12-17 12:00:00 2021-12-18 12:00:00
2021-12-21  20 2021-12-21 12:00:00 2021-12-22 12:00:00
2021-12-22  20 2021-12-22 12:00:00 2021-12-23 12:00:00
2021-12-23  20 2021-12-23 12:00:00 2021-12-24 12:00:00
2021-12-24  20 2021-12-24 12:00:00 2021-12-25 12:00:00
2021-12-28  20 2021-12-28 12:00:00 2021-12-29 12:00:00
2021-12-29  20 2021-12-29 12:00:00 2021-12-30 12:00:00
2021-12-30  20 2021-12-30 12:00:00 2021-12-31 12:00:00
2021-12-31  20 2021-12-31 12:00:00 2022-01-01 12:00:00

30: AC-Venlo
            ID                  AC               Venlo
2021-12-03  30 2021-12-03 12:00:00 2021-12-04 12:00:00
2021-12-04  30 2021-12-04 12:00:00 2021-12-05 12:00:00
2021-12-05  30 2021-12-05 12:00:00 2021-12-06 12:00:00
2021-12-10  30 2021-12-10 12:00:00 2021-12-11 12:00:00
2021-12-11  30 2021-12-11 12:00:00 2021-12-12 12:00:00
2021-12-12  30 2021-12-12 12:00:00 2021-12-13 12:00:00
2021-12-17  30 2021-12-17 12:00:00 2021-12-18 12:00:00
2021-12-18  30 2021-12-18 12:00:00 2021-12-19 12:00:00
2021-12-19  30 2021-12-19 12:00:00 2021-12-20 12:00:00
2021-12-24  30 2021-12-24 12:00:00 2021-12-25 12:00:00
2021-12-25  30 2021-12-25 12:00:00 2021-12-26 12:00:00
2021-12-26  30 2021-12-26 12:00:00 2021-12-27 12:00:00
2021-12-31  30 2021-12-31 12:00:00 2022-01-01 12:00:00

40: Venlo-FF
            ID               Venlo                  FF
2021-12-04  40 2021-12-04 12:00:00 2021-12-05 12:00:00
2021-12-05  40 2021-12-05 12:00:00 2021-12-06 12:00:00
2021-12-06  40 2021-12-06 12:00:00 2021-12-07 12:00:00
2021-12-11  40 2021-12-11 12:00:00 2021-12-12 12:00:00
2021-12-12  40 2021-12-12 12:00:00 2021-12-13 12:00:00
2021-12-13  40 2021-12-13 12:00:00 2021-12-14 12:00:00
2021-12-18  40 2021-12-18 12:00:00 2021-12-19 12:00:00
2021-12-19  40 2021-12-19 12:00:00 2021-12-20 12:00:00
2021-12-20  40 2021-12-20 12:00:00 2021-12-21 12:00:00
2021-12-25  40 2021-12-25 12:00:00 2021-12-26 12:00:00
2021-12-26  40 2021-12-26 12:00:00 2021-12-27 12:00:00
2021-12-27  40 2021-12-27 12:00:00 2021-12-28 12:00:00
2022-01-01  40 2022-01-01 12:00:00 2022-01-02 12:00:00

TrainRuns

Each TrainRun defines a row in the timetable of the train above

tr: TrainRun
for tr in t.train_run_iterator():
    print(tr)
    for sr in tr.sections_runs:
        print(sr)
    print("\n")

Out:

TR/8350/00AB/10/2021/2021-12-01
10.v1:2021-12-01 12:00 OTR=-1 AC-EMM 2021-12-02 12:00 OTR=0
20.v1:2021-12-02 12:00 OTR=0 EMM-FF 2021-12-03 12:00 OTR=1


TR/8350/00AB/10/2021/2021-12-02
10.v1:2021-12-02 12:00 OTR=-1 AC-EMM 2021-12-03 12:00 OTR=0
20.v1:2021-12-03 12:00 OTR=0 EMM-FF 2021-12-04 12:00 OTR=1


TR/8350/00AB/10/2021/2021-12-06
10.v1:2021-12-06 12:00 OTR=-1 AC-EMM 2021-12-07 12:00 OTR=0
20.v1:2021-12-07 12:00 OTR=0 EMM-FF 2021-12-08 12:00 OTR=1


TR/8350/00AB/10/2021/2021-12-07
10.v1:2021-12-07 12:00 OTR=-1 AC-EMM 2021-12-08 12:00 OTR=0
20.v1:2021-12-08 12:00 OTR=0 EMM-FF 2021-12-09 12:00 OTR=1


TR/8350/00AB/10/2021/2021-12-08
10.v1:2021-12-08 12:00 OTR=-1 AC-EMM 2021-12-09 12:00 OTR=0
20.v1:2021-12-09 12:00 OTR=0 EMM-FF 2021-12-10 12:00 OTR=1


TR/8350/00AB/10/2021/2021-12-09
10.v1:2021-12-09 12:00 OTR=-1 AC-EMM 2021-12-10 12:00 OTR=0
20.v1:2021-12-10 12:00 OTR=0 EMM-FF 2021-12-11 12:00 OTR=1


TR/8350/00AB/10/2021/2021-12-13
10.v1:2021-12-13 12:00 OTR=-1 AC-EMM 2021-12-14 12:00 OTR=0
20.v1:2021-12-14 12:00 OTR=0 EMM-FF 2021-12-15 12:00 OTR=1


TR/8350/00AB/10/2021/2021-12-14
10.v1:2021-12-14 12:00 OTR=-1 AC-EMM 2021-12-15 12:00 OTR=0
20.v1:2021-12-15 12:00 OTR=0 EMM-FF 2021-12-16 12:00 OTR=1


TR/8350/00AB/10/2021/2021-12-15
10.v1:2021-12-15 12:00 OTR=-1 AC-EMM 2021-12-16 12:00 OTR=0
20.v1:2021-12-16 12:00 OTR=0 EMM-FF 2021-12-17 12:00 OTR=1


TR/8350/00AB/10/2021/2021-12-16
10.v1:2021-12-16 12:00 OTR=-1 AC-EMM 2021-12-17 12:00 OTR=0
20.v1:2021-12-17 12:00 OTR=0 EMM-FF 2021-12-18 12:00 OTR=1


TR/8350/00AB/10/2021/2021-12-20
10.v1:2021-12-20 12:00 OTR=-1 AC-EMM 2021-12-21 12:00 OTR=0
20.v1:2021-12-21 12:00 OTR=0 EMM-FF 2021-12-22 12:00 OTR=1


TR/8350/00AB/10/2021/2021-12-21
10.v1:2021-12-21 12:00 OTR=-1 AC-EMM 2021-12-22 12:00 OTR=0
20.v1:2021-12-22 12:00 OTR=0 EMM-FF 2021-12-23 12:00 OTR=1


TR/8350/00AB/10/2021/2021-12-22
10.v1:2021-12-22 12:00 OTR=-1 AC-EMM 2021-12-23 12:00 OTR=0
20.v1:2021-12-23 12:00 OTR=0 EMM-FF 2021-12-24 12:00 OTR=1


TR/8350/00AB/10/2021/2021-12-23
10.v1:2021-12-23 12:00 OTR=-1 AC-EMM 2021-12-24 12:00 OTR=0
20.v1:2021-12-24 12:00 OTR=0 EMM-FF 2021-12-25 12:00 OTR=1


TR/8350/00AB/10/2021/2021-12-27
10.v1:2021-12-27 12:00 OTR=-1 AC-EMM 2021-12-28 12:00 OTR=0
20.v1:2021-12-28 12:00 OTR=0 EMM-FF 2021-12-29 12:00 OTR=1


TR/8350/00AB/10/2021/2021-12-28
10.v1:2021-12-28 12:00 OTR=-1 AC-EMM 2021-12-29 12:00 OTR=0
20.v1:2021-12-29 12:00 OTR=0 EMM-FF 2021-12-30 12:00 OTR=1


TR/8350/00AB/10/2021/2021-12-29
10.v1:2021-12-29 12:00 OTR=-1 AC-EMM 2021-12-30 12:00 OTR=0
20.v1:2021-12-30 12:00 OTR=0 EMM-FF 2021-12-31 12:00 OTR=1


TR/8350/00AB/10/2021/2021-12-30
10.v1:2021-12-30 12:00 OTR=-1 AC-EMM 2021-12-31 12:00 OTR=0
20.v1:2021-12-31 12:00 OTR=0 EMM-FF 2022-01-01 12:00 OTR=30


TR/8350/00AB/30/2021/2021-12-03
30.v1:2021-12-03 12:00 OTR=-1 AC-Venlo 2021-12-04 12:00 OTR=0
40.v1:2021-12-04 12:00 OTR=0 Venlo-FF 2021-12-05 12:00 OTR=1


TR/8350/00AB/30/2021/2021-12-04
30.v1:2021-12-04 12:00 OTR=-1 AC-Venlo 2021-12-05 12:00 OTR=0
40.v1:2021-12-05 12:00 OTR=0 Venlo-FF 2021-12-06 12:00 OTR=1


TR/8350/00AB/30/2021/2021-12-05
30.v1:2021-12-05 12:00 OTR=-1 AC-Venlo 2021-12-06 12:00 OTR=0
40.v1:2021-12-06 12:00 OTR=0 Venlo-FF 2021-12-07 12:00 OTR=1


TR/8350/00AB/30/2021/2021-12-10
30.v1:2021-12-10 12:00 OTR=-1 AC-Venlo 2021-12-11 12:00 OTR=0
40.v1:2021-12-11 12:00 OTR=0 Venlo-FF 2021-12-12 12:00 OTR=1


TR/8350/00AB/30/2021/2021-12-11
30.v1:2021-12-11 12:00 OTR=-1 AC-Venlo 2021-12-12 12:00 OTR=0
40.v1:2021-12-12 12:00 OTR=0 Venlo-FF 2021-12-13 12:00 OTR=1


TR/8350/00AB/30/2021/2021-12-12
30.v1:2021-12-12 12:00 OTR=-1 AC-Venlo 2021-12-13 12:00 OTR=0
40.v1:2021-12-13 12:00 OTR=0 Venlo-FF 2021-12-14 12:00 OTR=1


TR/8350/00AB/30/2021/2021-12-17
30.v1:2021-12-17 12:00 OTR=-1 AC-Venlo 2021-12-18 12:00 OTR=0
40.v1:2021-12-18 12:00 OTR=0 Venlo-FF 2021-12-19 12:00 OTR=1


TR/8350/00AB/30/2021/2021-12-18
30.v1:2021-12-18 12:00 OTR=-1 AC-Venlo 2021-12-19 12:00 OTR=0
40.v1:2021-12-19 12:00 OTR=0 Venlo-FF 2021-12-20 12:00 OTR=1


TR/8350/00AB/30/2021/2021-12-19
30.v1:2021-12-19 12:00 OTR=-1 AC-Venlo 2021-12-20 12:00 OTR=0
40.v1:2021-12-20 12:00 OTR=0 Venlo-FF 2021-12-21 12:00 OTR=1


TR/8350/00AB/30/2021/2021-12-24
30.v1:2021-12-24 12:00 OTR=-1 AC-Venlo 2021-12-25 12:00 OTR=0
40.v1:2021-12-25 12:00 OTR=0 Venlo-FF 2021-12-26 12:00 OTR=1


TR/8350/00AB/30/2021/2021-12-25
30.v1:2021-12-25 12:00 OTR=-1 AC-Venlo 2021-12-26 12:00 OTR=0
40.v1:2021-12-26 12:00 OTR=0 Venlo-FF 2021-12-27 12:00 OTR=1


TR/8350/00AB/30/2021/2021-12-26
30.v1:2021-12-26 12:00 OTR=-1 AC-Venlo 2021-12-27 12:00 OTR=0
40.v1:2021-12-27 12:00 OTR=0 Venlo-FF 2021-12-28 12:00 OTR=1


TR/8350/00AB/30/2021/2021-12-31
30.v1:2021-12-31 12:00 OTR=-30 AC-Venlo 2022-01-01 12:00 OTR=0
40.v1:2022-01-01 12:00 OTR=0 Venlo-FF 2022-01-02 12:00 OTR=1

RoutingInformation as TrainInformation

An XML Dump of the routing information of this example according a new version of the TSI XSD.

print(dump_routing_info_as_xml(t))

Out:

<TrainInformation xmlns="http://taf-jsg.info/schemes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://taf-jsg.info/schemes file:///../tests/data/xml/taf_cat_complete_sector.xsd" RouteInfoVersion="1">
  <RouteSection SectionVersion="1">
    <SectionID>
      <ObjectType>RS</ObjectType>
    <Company>8350</Company>
    <Core>--------00AB</Core>
    <Variant>10</Variant>
    <TimetableYear>2021</TimetableYear>
    </SectionID>
  <PlannedJourneyLocation>
      <CountryCodeISO>DE</CountryCodeISO>
    <LocationPrimaryCode>10007</LocationPrimaryCode>
    <PrimaryLocationName>AC</PrimaryLocationName>
    <TimingAtLocation>
        <Timing>
          <Time>12:00:00</Time>
        <Offset>0</Offset>
        </Timing>
      </TimingAtLocation>
    </PlannedJourneyLocation>
  <PlannedJourneyLocation>
      <CountryCodeISO>DE</CountryCodeISO>
    <LocationPrimaryCode>10008</LocationPrimaryCode>
    <PrimaryLocationName>EMM</PrimaryLocationName>
    <TimingAtLocation>
        <Timing>
          <Time>12:00:00</Time>
        <Offset>1</Offset>
        </Timing>
      </TimingAtLocation>
    </PlannedJourneyLocation>
  <PlannedCalendar>
      <BitmapDays>110001111000111100011110001111</BitmapDays>
    <ValidityPeriod>
        <StartDateTime>2021-12-01T00:00:00</StartDateTime>
      <EndDateTime>2021-12-30T00:00:00</EndDateTime>
      </ValidityPeriod>
    </PlannedCalendar>
  <Successors>
      <SectionID>
        <ObjectType>RS</ObjectType>
      <Company>8350</Company>
      <Core>--------00AB</Core>
      <Variant>20</Variant>
      <TimetableYear>2021</TimetableYear>
      </SectionID>
    </Successors>
  </RouteSection>
<RouteSection SectionVersion="1" HasReferenceCalender="true">
    <SectionID>
      <ObjectType>RS</ObjectType>
    <Company>8350</Company>
    <Core>--------00AB</Core>
    <Variant>20</Variant>
    <TimetableYear>2021</TimetableYear>
    </SectionID>
  <PlannedJourneyLocation>
      <CountryCodeISO>DE</CountryCodeISO>
    <LocationPrimaryCode>10008</LocationPrimaryCode>
    <PrimaryLocationName>EMM</PrimaryLocationName>
    <TimingAtLocation>
        <Timing>
          <Time>12:00:00</Time>
        <Offset>0</Offset>
        </Timing>
      </TimingAtLocation>
    </PlannedJourneyLocation>
  <PlannedJourneyLocation>
      <CountryCodeISO>DE</CountryCodeISO>
    <LocationPrimaryCode>10009</LocationPrimaryCode>
    <PrimaryLocationName>FF</PrimaryLocationName>
    <TimingAtLocation>
        <Timing>
          <Time>12:00:00</Time>
        <Offset>1</Offset>
        </Timing>
      </TimingAtLocation>
    </PlannedJourneyLocation>
  <PlannedCalendar>
      <BitmapDays>110001111000111100011110001111</BitmapDays>
    <ValidityPeriod>
        <StartDateTime>2021-12-02T00:00:00</StartDateTime>
      <EndDateTime>2021-12-31T00:00:00</EndDateTime>
      </ValidityPeriod>
    </PlannedCalendar>
  </RouteSection>
<RouteSection SectionVersion="1">
    <SectionID>
      <ObjectType>RS</ObjectType>
    <Company>8350</Company>
    <Core>--------00AB</Core>
    <Variant>30</Variant>
    <TimetableYear>2021</TimetableYear>
    </SectionID>
  <PlannedJourneyLocation>
      <CountryCodeISO>DE</CountryCodeISO>
    <LocationPrimaryCode>10007</LocationPrimaryCode>
    <PrimaryLocationName>AC</PrimaryLocationName>
    <TimingAtLocation>
        <Timing>
          <Time>12:00:00</Time>
        <Offset>0</Offset>
        </Timing>
      </TimingAtLocation>
    </PlannedJourneyLocation>
  <PlannedJourneyLocation>
      <CountryCodeISO>DE</CountryCodeISO>
    <LocationPrimaryCode>10010</LocationPrimaryCode>
    <PrimaryLocationName>Venlo</PrimaryLocationName>
    <TimingAtLocation>
        <Timing>
          <Time>12:00:00</Time>
        <Offset>1</Offset>
        </Timing>
      </TimingAtLocation>
    </PlannedJourneyLocation>
  <PlannedCalendar>
      <BitmapDays>11100001110000111000011100001</BitmapDays>
    <ValidityPeriod>
        <StartDateTime>2021-12-03T00:00:00</StartDateTime>
      <EndDateTime>2021-12-31T00:00:00</EndDateTime>
      </ValidityPeriod>
    </PlannedCalendar>
  <Successors>
      <SectionID>
        <ObjectType>RS</ObjectType>
      <Company>8350</Company>
      <Core>--------00AB</Core>
      <Variant>40</Variant>
      <TimetableYear>2021</TimetableYear>
      </SectionID>
    </Successors>
  </RouteSection>
<RouteSection SectionVersion="1" HasReferenceCalender="true">
    <SectionID>
      <ObjectType>RS</ObjectType>
    <Company>8350</Company>
    <Core>--------00AB</Core>
    <Variant>40</Variant>
    <TimetableYear>2021</TimetableYear>
    </SectionID>
  <PlannedJourneyLocation>
      <CountryCodeISO>DE</CountryCodeISO>
    <LocationPrimaryCode>10010</LocationPrimaryCode>
    <PrimaryLocationName>Venlo</PrimaryLocationName>
    <TimingAtLocation>
        <Timing>
          <Time>12:00:00</Time>
        <Offset>0</Offset>
        </Timing>
      </TimingAtLocation>
    </PlannedJourneyLocation>
  <PlannedJourneyLocation>
      <CountryCodeISO>DE</CountryCodeISO>
    <LocationPrimaryCode>10009</LocationPrimaryCode>
    <PrimaryLocationName>FF</PrimaryLocationName>
    <TimingAtLocation>
        <Timing>
          <Time>12:00:00</Time>
        <Offset>1</Offset>
        </Timing>
      </TimingAtLocation>
    </PlannedJourneyLocation>
  <PlannedCalendar>
      <BitmapDays>11100001110000111000011100001</BitmapDays>
    <ValidityPeriod>
        <StartDateTime>2021-12-04T00:00:00</StartDateTime>
      <EndDateTime>2022-01-01T00:00:00</EndDateTime>
      </ValidityPeriod>
    </PlannedCalendar>
  </RouteSection>
<Route key="10-20">
    <PlannedCalendar>
      <BitmapDays>110001111000111100011110001111</BitmapDays>
    <ValidityPeriod>
        <StartDateTime>2021-12-01T00:00:00</StartDateTime>
      <EndDateTime>2021-12-30T00:00:00</EndDateTime>
      </ValidityPeriod>
    </PlannedCalendar>
  <PlannedJourneyLocation JourneyLocationTypeCode="01">
      <CountryCodeISO>DE</CountryCodeISO>
    <LocationPrimaryCode>10007</LocationPrimaryCode>
    <PrimaryLocationName>AC</PrimaryLocationName>
    <TimingAtLocation>
        <Timing>
          <Time>12:00:00</Time>
        <Offset>0</Offset>
        </Timing>
      </TimingAtLocation>
    </PlannedJourneyLocation>
  <PlannedJourneyLocation JourneyLocationTypeCode="04">
      <CountryCodeISO>DE</CountryCodeISO>
    <LocationPrimaryCode>10008</LocationPrimaryCode>
    <PrimaryLocationName>EMM</PrimaryLocationName>
    <TimingAtLocation>
        <Timing>
          <Time>12:00:00</Time>
        <Offset>1</Offset>
        </Timing>
      </TimingAtLocation>
    </PlannedJourneyLocation>
  <PlannedJourneyLocation JourneyLocationTypeCode="03">
      <CountryCodeISO>DE</CountryCodeISO>
    <LocationPrimaryCode>10009</LocationPrimaryCode>
    <PrimaryLocationName>FF</PrimaryLocationName>
    <TimingAtLocation>
        <Timing>
          <Time>12:00:00</Time>
        <Offset>1</Offset>
        </Timing>
      </TimingAtLocation>
    </PlannedJourneyLocation>
  </Route>
<Route key="30-40">
    <PlannedCalendar>
      <BitmapDays>11100001110000111000011100001</BitmapDays>
    <ValidityPeriod>
        <StartDateTime>2021-12-03T00:00:00</StartDateTime>
      <EndDateTime>2021-12-31T00:00:00</EndDateTime>
      </ValidityPeriod>
    </PlannedCalendar>
  <PlannedJourneyLocation JourneyLocationTypeCode="01">
      <CountryCodeISO>DE</CountryCodeISO>
    <LocationPrimaryCode>10007</LocationPrimaryCode>
    <PrimaryLocationName>AC</PrimaryLocationName>
    <TimingAtLocation>
        <Timing>
          <Time>12:00:00</Time>
        <Offset>0</Offset>
        </Timing>
      </TimingAtLocation>
    </PlannedJourneyLocation>
  <PlannedJourneyLocation JourneyLocationTypeCode="04">
      <CountryCodeISO>DE</CountryCodeISO>
    <LocationPrimaryCode>10010</LocationPrimaryCode>
    <PrimaryLocationName>Venlo</PrimaryLocationName>
    <TimingAtLocation>
        <Timing>
          <Time>12:00:00</Time>
        <Offset>1</Offset>
        </Timing>
      </TimingAtLocation>
    </PlannedJourneyLocation>
  <PlannedJourneyLocation JourneyLocationTypeCode="03">
      <CountryCodeISO>DE</CountryCodeISO>
    <LocationPrimaryCode>10009</LocationPrimaryCode>
    <PrimaryLocationName>FF</PrimaryLocationName>
    <TimingAtLocation>
        <Timing>
          <Time>12:00:00</Time>
        <Offset>1</Offset>
        </Timing>
      </TimingAtLocation>
    </PlannedJourneyLocation>
  </Route>
</TrainInformation>

Total running time of the script: ( 0 minutes 1.339 seconds)

Gallery generated by Sphinx-Gallery