forked from VDVde/TRIAS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTrias_Trips.xsd
764 lines (764 loc) · 33 KB
/
Trias_Trips.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="http://www.vdv.de/trias" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.vdv.de/trias" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:include schemaLocation="Trias_Common.xsd"/>
<xs:include schemaLocation="Trias_RequestSupport.xsd"/>
<xs:include schemaLocation="Trias_JourneySupport.xsd"/>
<xs:include schemaLocation="Trias_FaresSupport.xsd"/>
<xs:annotation>
<xs:documentation>===== Request Structures ===============================================</xs:documentation>
</xs:annotation>
<xs:element name="TripRequest" type="TripRequestStructure">
<xs:annotation>
<xs:documentation>Trip request element.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="TripRequestStructure">
<xs:annotation>
<xs:documentation>Trip request structure.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Origin" type="LocationContextStructure" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Specifies the origin situation from where the user wants to start.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Destination" type="LocationContextStructure" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Specifies the destination situation where the user is heading to.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Via" type="ViaStructure" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Ordered series of points where the journey must pass through. If more than one via point is given all of them must be obeyed - in the correct order. The server is allowed to replace a via stop by equivalent stops.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="NotVia" type="NotViaStructure" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Set of public transport stops where the journey must not pass through. If more than one not via point is given all of them must be obeyed.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="NoChangeAt" type="NoChangeAtStructure" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Set of public transport stops where the journey is not allowed to interchange.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Params" type="TripParamStructure" minOccurs="0">
<xs:annotation>
<xs:documentation>Options to control the search behaviour and response contents.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="TripParamStructure">
<xs:annotation>
<xs:documentation>Trip request parameter structure.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:group ref="TripDataFilterGroup"/>
<xs:group ref="TripMobilityFilterGroup"/>
<xs:group ref="TripPolicyGroup"/>
<xs:group ref="TripContentFilterGroup"/>
<xs:element name="FaresParam" type="FaresParamStructure" minOccurs="0"/>
<xs:element name="Extension" type="xs:anyType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:group name="TripDataFilterGroup">
<xs:annotation>
<xs:documentation>Data to be included/excluded from search, f.e. modes, operators.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="PtModeFilter" type="PtModeFilterStructure" minOccurs="0">
<xs:annotation>
<xs:documentation>Modes to be considered in trip calculation.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="LineFilter" type="LineDirectionFilterStructure" minOccurs="0">
<xs:annotation>
<xs:documentation>Lines/Directions to include/exclude.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="OperatorFilter" type="OperatorFilterStructure" minOccurs="0">
<xs:annotation>
<xs:documentation>Transport operators to include/exclude.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:group>
<xs:group name="TripPolicyGroup">
<xs:annotation>
<xs:documentation>Policies that control the trip search behaviour.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:group ref="BaseTripPolicyGroup"/>
<xs:element name="InterchangeLimit" type="xs:positiveInteger" minOccurs="0">
<xs:annotation>
<xs:documentation>The maximum number of interchanges the user will accept per trip.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="AlgorithmType" type="AlgorithmTypeEnumeration" minOccurs="0">
<xs:annotation>
<xs:documentation>The type of the target function that should be applied when searching for optimal trip results.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ItModesToCover" type="IndividualModesEnumeration" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>For each mode in this list a separate monomodal trip shall be found - in addition to inter-modal solutions.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="MultiPointType" type="MultiPointTypeEnumeration" minOccurs="0">
<xs:annotation>
<xs:documentation>Whether a solution for any one of multiple origin/destination points is sufficient or a distinct solution for each of the origin/destination points has to be found.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:group>
<xs:group name="TripContentFilterGroup">
<xs:annotation>
<xs:documentation>Parameters that control the level of detail of the trip results.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:group ref="BaseTripContentFilterGroup"/>
<xs:element name="IncludeIntermediateStops" type="xs:boolean" default="false" minOccurs="0">
<xs:annotation>
<xs:documentation>Whether the result should include intermediate stops (between the passenger's board and alight stops).</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="IncludeFares" type="xs:boolean" default="false" minOccurs="0">
<xs:annotation>
<xs:documentation>Whether the result should include fare information.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="IncludeOperatingDays" type="xs:boolean" default="false" minOccurs="0">
<xs:annotation>
<xs:documentation>Whether the result should include operating day information - as encoded bit string and in natural language.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:group>
<xs:simpleType name="AlgorithmTypeEnumeration">
<xs:annotation>
<xs:documentation>The type of optimisation that should be applied by the routing algorithm.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="fastest"/>
<xs:enumeration value="minChanges"/>
<xs:enumeration value="leastWalking"/>
<xs:enumeration value="leastCost"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="MultiPointTypeEnumeration">
<xs:annotation>
<xs:documentation>How the multiple origin/destination points should be considered.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="anyPoint">
<xs:annotation>
<xs:documentation>"anyPoint" means, that the requested number of results should be returned, no matter which or how many of the origin or destination locations they use.</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="eachOrigin">
<xs:annotation>
<xs:documentation>"eachOrigin" means, that for all origin locations the requested number of results should be returned.</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="eachDestination">
<xs:annotation>
<xs:documentation>"eachDestination" means the same as "eachOrigin" for all destination locations.</xs:documentation>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="NotViaStructure">
<xs:annotation>
<xs:documentation>Not-via restrictions for a journey, i.e. stops that the journey is not allowed to pass through.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:choice>
<xs:element ref="StopPointRef"/>
<xs:element ref="StopPlaceRef"/>
</xs:choice>
</xs:sequence>
</xs:complexType>
<xs:complexType name="NoChangeAtStructure">
<xs:annotation>
<xs:documentation>No-change-at restrictions for a journey, i.e. stops where the journey is not allowed to change at.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:choice>
<xs:element ref="StopPointRef"/>
<xs:element ref="StopPlaceRef"/>
</xs:choice>
</xs:sequence>
</xs:complexType>
<xs:annotation>
<xs:documentation>====================================================</xs:documentation>
</xs:annotation>
<xs:complexType name="TripRefineRequestStructure">
<xs:annotation>
<xs:documentation>TripRefine request structure.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="RefineParams" type="TripRefineParamStructure" minOccurs="0">
<xs:annotation>
<xs:documentation>Options to control the refine</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TripResult" type="TripResultStructure">
<xs:annotation>
<xs:documentation>The trip result to be refined by the server.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TripResponseContext" type="TripResponseContextStructure" minOccurs="0">
<xs:annotation>
<xs:documentation>Context to hold objects, which are referenced within the response.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Extension" type="xs:anyType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="TripRefineParamStructure">
<xs:sequence>
<xs:group ref="RefineOptionsGroup"/>
<xs:element name="RefineLegRef" type="xs:NMTOKEN" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Refers to a leg to be refined by the server.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:group ref="TripContentFilterGroup"/>
<xs:element name="Extension" type="xs:anyType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:annotation>
<xs:documentation>===================== Response structures ============================================================</xs:documentation>
</xs:annotation>
<xs:element name="TripResponse" type="TripResponseStructure">
<xs:annotation>
<xs:documentation>Trip response element</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="TripResponseStructure">
<xs:annotation>
<xs:documentation>Trip response structure.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="ErrorMessage" type="ErrorMessageStructure" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Error messages related to the trip request as a whole.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TripResponseContext" type="TripResponseContextStructure" minOccurs="0">
<xs:annotation>
<xs:documentation>Context to hold trip response objects that occur frequently.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TripResult" type="TripResultStructure" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>The trip results found by the server.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="TripResponseContextStructure">
<xs:annotation>
<xs:documentation>Context for a trip response.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="AbstractResponseContextStructure"/>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="TripResultStructure">
<xs:annotation>
<xs:documentation>Structure for a single trip result and its accompanying error messages.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="ResultId" type="xs:NMTOKEN">
<xs:annotation>
<xs:documentation>Id of this trip result for referencing purposes. Unique within trip response.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ErrorMessage" type="ErrorMessageStructure" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Error messages related to this trip result.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Trip" type="TripStructure">
<xs:annotation>
<xs:documentation>Information on the trip.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TripFares" type="TripFaresResultStructure" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="TripStructure">
<xs:annotation>
<xs:documentation>Structure for an inter-modal passenger trip.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="TripId" type="xs:NMTOKEN">
<xs:annotation>
<xs:documentation>Id of this trip for referencing purposes. Unique within trip response.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Duration" type="xs:duration">
<xs:annotation>
<xs:documentation>Overall duration of the trip.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="StartTime" type="xs:dateTime">
<xs:annotation>
<xs:documentation>Departure time at origin.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="EndTime" type="xs:dateTime">
<xs:annotation>
<xs:documentation>Arrival time at destination.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Interchanges" type="xs:nonNegativeInteger">
<xs:annotation>
<xs:documentation>Number of interchanges.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Distance" type="DistanceType" minOccurs="0">
<xs:annotation>
<xs:documentation>Trip distance.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TripLeg" type="TripLegStructure" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Legs of the trip</xs:documentation>
</xs:annotation>
</xs:element>
<xs:group ref="OperatingDaysGroup" minOccurs="0"/>
<xs:element ref="SituationFullRef" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Extension" type="xs:anyType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="TripLegStructure">
<xs:annotation>
<xs:documentation>Structure for a single leg of a passenger trip.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="LegId" type="xs:NMTOKEN">
<xs:annotation>
<xs:documentation>Id of this trip leg. Unique within trip result.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:choice>
<xs:annotation>
<xs:documentation>Choice for the type of the trip leg.</xs:documentation>
</xs:annotation>
<xs:element name="TimedLeg" type="TimedLegStructure"/>
<xs:element name="InterchangeLeg" type="InterchangeLegStructure"/>
<xs:element name="ContinuousLeg" type="ContinuousLegStructure"/>
</xs:choice>
</xs:sequence>
</xs:complexType>
<xs:complexType name="TimedLegStructure">
<xs:annotation>
<xs:documentation>Passenger trip leg with timetabled schedule.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="LegBoard" type="LegBoardStructure">
<xs:annotation>
<xs:documentation>Stop/Station where boarding is done</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="LegIntermediates" type="LegIntermediateStructure" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>information about the intermediate passed stop points.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="LegAlight" type="LegAlightStructure">
<xs:annotation>
<xs:documentation>Stop/Station to alight</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Service" type="DatedJourneyStructure">
<xs:annotation>
<xs:documentation>Service that is used for this trip leg.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:group ref="OperatingDaysGroup" minOccurs="0"/>
<xs:element name="LegTrack" type="LegTrackStructure" minOccurs="0">
<xs:annotation>
<xs:documentation>Geographic embedding of this leg.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ParallelService" type="ParallelServiceStructure" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Services running combined with at least parts of this journey, e.g. wing trains. The contained stop sequence interval refers to the original journey.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Extension" type="xs:anyType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="InterchangeLegStructure">
<xs:annotation>
<xs:documentation>Leg of a journey that describes the interchange between different services.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:choice>
<xs:element name="InterchangeMode" type="InterchangeModesEnumeration">
<xs:annotation>
<xs:documentation>Mode that is used for this interchange between public services.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ContinuousMode" type="ContinuousModesEnumeration">
<xs:annotation>
<xs:documentation>Mode that is used for this interchange between public services.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
<xs:element name="LegStart" type="LocationRefStructure">
<xs:annotation>
<xs:documentation>Stop/Station where boarding is done</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="LegEnd" type="LocationRefStructure">
<xs:annotation>
<xs:documentation>Stop/Station to alight</xs:documentation>
</xs:annotation>
</xs:element>
<xs:group ref="TimeWindowGroup"/>
<xs:group ref="InterchangeDurationGroup"/>
<xs:element name="LegDescription" type="InternationalTextStructure" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Text that describes this interchange.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Length" type="LengthType" minOccurs="0">
<xs:annotation>
<xs:documentation>Length of this interchange path.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Attribute" type="GeneralAttributeStructure" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Note or service attribute.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="NavigationPath" type="NavigationPathStructure" minOccurs="0">
<xs:annotation>
<xs:documentation>Structured model further describing this interchange, its geographic embedding and accessibility.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="SituationFullRef" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Extension" type="xs:anyType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="ContinuousLegStructure">
<xs:annotation>
<xs:documentation>Leg of a journey that is not bound to a timetable.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="LegStart" type="LocationRefStructure">
<xs:annotation>
<xs:documentation>Stop/Station where boarding is done</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="LegEnd" type="LocationRefStructure">
<xs:annotation>
<xs:documentation>Stop/Station to alight</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Service" type="ContinuousServiceStructure">
<xs:annotation>
<xs:documentation>Service of this leg. May be "walk" in most cases, but also cycling or taxi etc.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:group ref="TimeWindowGroup"/>
<xs:element name="Duration" type="xs:duration">
<xs:annotation>
<xs:documentation>Duration of this leg according to user preferences like walk speed.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="LegDescription" type="InternationalTextStructure" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Title or summary of this leg for overview.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Length" type="LengthType" minOccurs="0">
<xs:annotation>
<xs:documentation>Length of the leg.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="LegTrack" type="LegTrackStructure" minOccurs="0">
<xs:annotation>
<xs:documentation>Detailed description of each element of this leg including geometric projection.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="NavigationPath" type="NavigationPathStructure" minOccurs="0">
<xs:annotation>
<xs:documentation>Structured model further describing this interchange, its geographic embedding and accessibility.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="SituationFullRef" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Extension" type="xs:anyType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="LegBoardStructure">
<xs:annotation>
<xs:documentation>Describes the boarding situation for a passenger leg.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:group ref="StopPointGroup"/>
<xs:element name="ServiceArrival" type="ServiceCallStructure" minOccurs="0">
<xs:annotation>
<xs:documentation>describes the arrival situation a this leg board stop point (empty for first leg)</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ServiceDeparture" type="ServiceCallStructure">
<xs:annotation>
<xs:documentation>describes the departure situation at this leg board stop point</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="MeetsViaRequest" type="xs:boolean" default="false" minOccurs="0">
<xs:annotation>
<xs:documentation>This stop fulfils one of the via requirements stated in the request data.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:group ref="StopCallStatusGroup"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="LegAlightStructure">
<xs:annotation>
<xs:documentation>Describes the alight situation for a passenger leg.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:group ref="StopPointGroup"/>
<xs:element name="ServiceArrival" type="ServiceCallStructure">
<xs:annotation>
<xs:documentation>describes the arrival situation at the leg alight stop point</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ServiceDeparture" type="ServiceCallStructure" minOccurs="0">
<xs:annotation>
<xs:documentation>describes the departure situation at this leg alight stop point (empty for last leg)</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="MeetsViaRequest" type="xs:boolean" default="false" minOccurs="0">
<xs:annotation>
<xs:documentation>This stop fulfils one of the via requirements stated in the request data.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:group ref="StopCallStatusGroup"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="LegIntermediateStructure">
<xs:annotation>
<xs:documentation>Describes the intermediate stops of a passenger leg.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:group ref="StopPointGroup"/>
<xs:element name="ServiceArrival" type="ServiceCallStructure">
<xs:annotation>
<xs:documentation>describes the arrival situation a this leg board stop point (empty for first leg)</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ServiceDeparture" type="ServiceCallStructure">
<xs:annotation>
<xs:documentation>describes the departure situation at this leg board stop point</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="MeetsViaRequest" type="xs:boolean" default="false" minOccurs="0">
<xs:annotation>
<xs:documentation>This stop fulfils one of the via requirements stated in the request data.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:group ref="StopCallStatusGroup"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="NavigationPathStructure">
<xs:annotation>
<xs:documentation>Description of a piece of a journey. May include geographic information, turn instructions and accessibility information.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="NavigationSection" type="NavigationSectionStructure" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>One or more navigation sections that build the journey leg.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="NavigationSectionStructure">
<xs:annotation>
<xs:documentation>Building block of a NavigationPath.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="TrackSection" type="TrackSectionStructure" minOccurs="0">
<xs:annotation>
<xs:documentation>Geographic embedding of this navigation section.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TurnDescription" type="InternationalTextStructure" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Textual description of a manoeuvre. This should imply the information from Manoeuvre, TurnAction, and TrackSection.RoadName.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Manoeuvre" type="ManoeuvreEnumeration" minOccurs="0">
<xs:annotation>
<xs:documentation>Code for manoeuvre.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TurnAction" type="TurnActionEnumeration" minOccurs="0">
<xs:annotation>
<xs:documentation>Code for turn action.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="DirectionHint" type="InternationalTextStructure" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Textual direction hint for better understanding, e.g. "follow signs to Hamburg".</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Bearing" type="AbsoluteBearingType" minOccurs="0">
<xs:annotation>
<xs:documentation>Absolute bearing after the described manoeuvre.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="AccessPath" type="AccessPathStructure" minOccurs="0">
<xs:annotation>
<xs:documentation>Description of the type of accessibility on this navigation section.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="SituationFullRef" type="SituationFullRefStructure" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="ManoeuvreEnumeration">
<xs:annotation>
<xs:documentation>Types of manoeuvres.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="origin"/>
<xs:enumeration value="destination"/>
<xs:enumeration value="continue"/>
<xs:enumeration value="keep"/>
<xs:enumeration value="turn"/>
<xs:enumeration value="leave"/>
<xs:enumeration value="enter"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="TurnActionEnumeration">
<xs:annotation>
<xs:documentation>Types of turn actions.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="sharp left"/>
<xs:enumeration value="left"/>
<xs:enumeration value="half left"/>
<xs:enumeration value="straight on"/>
<xs:enumeration value="half right"/>
<xs:enumeration value="right"/>
<xs:enumeration value="sharp right"/>
<xs:enumeration value="uturn"/>
</xs:restriction>
</xs:simpleType>
<xs:group name="InterchangeDurationGroup">
<xs:annotation>
<xs:documentation>Model of interchange durations.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Duration" type="xs:duration">
<xs:annotation>
<xs:documentation>Overall duration of this interchange.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="WalkDuration" type="xs:duration" minOccurs="0">
<xs:annotation>
<xs:documentation>Walk time as part of the overall interchange duration.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="BufferTime" type="xs:duration" minOccurs="0">
<xs:annotation>
<xs:documentation>Buffer time as part of the overall interchange duration. Buffer times, f.e. check in/out times, sometimes are mandatory for using certain services as f.e. airplanes, ferries or highspeed trains.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:group>
<xs:simpleType name="AccessFeatureEnumeration">
<xs:annotation>
<xs:documentation>Allowed values for a AccessFeature.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="lift"/>
<xs:enumeration value="stairs"/>
<xs:enumeration value="seriesOfStairs"/>
<xs:enumeration value="escalator"/>
<xs:enumeration value="ramp"/>
<xs:enumeration value="footpath"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="TransitionEnumeration">
<xs:annotation>
<xs:documentation>Transition types for interchanges.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="up"/>
<xs:enumeration value="down"/>
<xs:enumeration value="level"/>
<xs:enumeration value="upAndDown"/>
<xs:enumeration value="downAndUp"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="AccessPathStructure">
<xs:annotation>
<xs:documentation>Description of a path in terms of accessibility.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Transition" type="TransitionEnumeration" minOccurs="0">
<xs:annotation>
<xs:documentation>Whether path is up down or level .</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="AccessFeatureType" type="AccessFeatureEnumeration" minOccurs="0">
<xs:annotation>
<xs:documentation>Type of physical feature of path link.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Count" type="xs:positiveInteger" minOccurs="0">
<xs:annotation>
<xs:documentation>Number how often the access feature occurs in this AccessPath.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="FacilityRef" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Reference to facility used.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:annotation>
<xs:documentation>====================================================</xs:documentation>
</xs:annotation>
<xs:element name="TripRefineResponse" type="TripRefineResponseStructure">
<xs:annotation>
<xs:documentation>TripRefine response element</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="TripRefineResponseStructure">
<xs:annotation>
<xs:documentation>TripRefine response structure</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="ErrorMessage" type="ErrorMessageStructure" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Error messages related to the trip request as a whole.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TripResponseContext" type="TripResponseContextStructure" minOccurs="0">
<xs:annotation>
<xs:documentation>Context to hold objects, which are referenced within the response.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="UnknownLegRef" type="xs:NMTOKEN" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>refers to a leg that was not found in the data of the server.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TripResult" type="TripResultStructure" minOccurs="0">
<xs:annotation>
<xs:documentation>The trip result refined by the server.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:schema>