siri-xsd 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +10 -0
  3. data/Gemfile +4 -0
  4. data/Gemfile.lock +47 -0
  5. data/README.md +23 -0
  6. data/bitbucket-pipelines.yml +18 -0
  7. data/exe/siri-xsd-validate +42 -0
  8. data/lib/siri/xsd/validator.rb +62 -0
  9. data/lib/siri/xsd/version.rb +5 -0
  10. data/lib/siri/xsd.rb +10 -0
  11. data/siri-xsd.gemspec +35 -0
  12. data/vendor/xsd/acsb/acsb_accessibility.xsd +138 -0
  13. data/vendor/xsd/acsb/acsb_all.xsd +11 -0
  14. data/vendor/xsd/acsb/acsb_limitations.xsd +141 -0
  15. data/vendor/xsd/acsb/acsb_passengerMobility.xsd +212 -0
  16. data/vendor/xsd/datex2/DATEXIISchema.xsd +3713 -0
  17. data/vendor/xsd/datex2/DATEXIISchemaWithDefinitions.xsd +11538 -0
  18. data/vendor/xsd/gml/basicTypes.xsd +267 -0
  19. data/vendor/xsd/gml/geometryBasic0d1d-extract.xsd +271 -0
  20. data/vendor/xsd/gml/gmlBase-extract.xsd +168 -0
  21. data/vendor/xsd/gml/gmlBasic2d-extract.xsd +120 -0
  22. data/vendor/xsd/gml/gml_extract_all_objects.xsd +12 -0
  23. data/vendor/xsd/ifopt/ifopt_administration.xsd +254 -0
  24. data/vendor/xsd/ifopt/ifopt_allStopPlace.xsd +33 -0
  25. data/vendor/xsd/ifopt/ifopt_checkpoint.xsd +222 -0
  26. data/vendor/xsd/ifopt/ifopt_countries.xsd +1320 -0
  27. data/vendor/xsd/ifopt/ifopt_equipment.xsd +207 -0
  28. data/vendor/xsd/ifopt/ifopt_location.xsd +281 -0
  29. data/vendor/xsd/ifopt/ifopt_modes.xsd +84 -0
  30. data/vendor/xsd/ifopt/ifopt_modification.xsd +173 -0
  31. data/vendor/xsd/ifopt/ifopt_path.xsd +164 -0
  32. data/vendor/xsd/ifopt/ifopt_stop.xsd +403 -0
  33. data/vendor/xsd/ifopt/ifopt_time.xsd +131 -0
  34. data/vendor/xsd/ifopt/ifopt_types.xsd +96 -0
  35. data/vendor/xsd/siri/siri_all_framework.xsd +12 -0
  36. data/vendor/xsd/siri/siri_base.xsd +315 -0
  37. data/vendor/xsd/siri/siri_common_services.xsd +900 -0
  38. data/vendor/xsd/siri/siri_request_errorConditions.xsd +590 -0
  39. data/vendor/xsd/siri/siri_request_support.xsd +210 -0
  40. data/vendor/xsd/siri/siri_requests.xsd +1072 -0
  41. data/vendor/xsd/siri.xsd +531 -0
  42. data/vendor/xsd/siriSg.xsd +149 -0
  43. data/vendor/xsd/siri_all_functionalServices.xsd +95 -0
  44. data/vendor/xsd/siri_connectionMonitoring_service.xsd +731 -0
  45. data/vendor/xsd/siri_connectionTimetable_service.xsd +485 -0
  46. data/vendor/xsd/siri_discovery.xsd +898 -0
  47. data/vendor/xsd/siri_estimatedTimetable_service.xsd +490 -0
  48. data/vendor/xsd/siri_facilityMonitoring_service.xsd +493 -0
  49. data/vendor/xsd/siri_generalMessage_service.xsd +483 -0
  50. data/vendor/xsd/siri_model/siri_all.xsd +13 -0
  51. data/vendor/xsd/siri_model/siri_all_journeyModel.xsd +21 -0
  52. data/vendor/xsd/siri_model/siri_all_model.xsd +13 -0
  53. data/vendor/xsd/siri_model/siri_all_situation.xsd +17 -0
  54. data/vendor/xsd/siri_model/siri_datedVehicleJourney.xsd +702 -0
  55. data/vendor/xsd/siri_model/siri_estimatedVehicleJourney.xsd +472 -0
  56. data/vendor/xsd/siri_model/siri_facilities.xsd +517 -0
  57. data/vendor/xsd/siri_model/siri_facility.xsd +760 -0
  58. data/vendor/xsd/siri_model/siri_feature_support.xsd +145 -0
  59. data/vendor/xsd/siri_model/siri_interchangeJourney.xsd +88 -0
  60. data/vendor/xsd/siri_model/siri_journey.xsd +1903 -0
  61. data/vendor/xsd/siri_model/siri_journey_support.xsd +1022 -0
  62. data/vendor/xsd/siri_model/siri_modelPermissions.xsd +338 -0
  63. data/vendor/xsd/siri_model/siri_modes.xsd +686 -0
  64. data/vendor/xsd/siri_model/siri_monitoredVehicleJourney.xsd +638 -0
  65. data/vendor/xsd/siri_model/siri_operator_support.xsd +87 -0
  66. data/vendor/xsd/siri_model/siri_reference.xsd +844 -0
  67. data/vendor/xsd/siri_model/siri_situation.xsd +1545 -0
  68. data/vendor/xsd/siri_model/siri_situationActions.xsd +755 -0
  69. data/vendor/xsd/siri_model/siri_situationAffects.xsd +1533 -0
  70. data/vendor/xsd/siri_model/siri_situationClassifiers.xsd +430 -0
  71. data/vendor/xsd/siri_model/siri_situationIdentity.xsd +247 -0
  72. data/vendor/xsd/siri_model/siri_situationReasons.xsd +1370 -0
  73. data/vendor/xsd/siri_model/siri_situationServiceTypes.xsd +639 -0
  74. data/vendor/xsd/siri_model/siri_targetedVehicleJourney.xsd +136 -0
  75. data/vendor/xsd/siri_model/siri_time.xsd +356 -0
  76. data/vendor/xsd/siri_model_discovery/siri_connectionLink.xsd +115 -0
  77. data/vendor/xsd/siri_model_discovery/siri_feature.xsd +158 -0
  78. data/vendor/xsd/siri_model_discovery/siri_infoChannel.xsd +99 -0
  79. data/vendor/xsd/siri_model_discovery/siri_line.xsd +241 -0
  80. data/vendor/xsd/siri_model_discovery/siri_stopPoint.xsd +158 -0
  81. data/vendor/xsd/siri_productionTimetable_service.xsd +514 -0
  82. data/vendor/xsd/siri_situationExchange_service.xsd +785 -0
  83. data/vendor/xsd/siri_stopMonitoring_service.xsd +1052 -0
  84. data/vendor/xsd/siri_stopTimetable_service.xsd +463 -0
  85. data/vendor/xsd/siri_utility/siri_all_utility.xsd +14 -0
  86. data/vendor/xsd/siri_utility/siri_location.xsd +270 -0
  87. data/vendor/xsd/siri_utility/siri_participant.xsd +79 -0
  88. data/vendor/xsd/siri_utility/siri_permissions.xsd +135 -0
  89. data/vendor/xsd/siri_utility/siri_types.xsd +166 -0
  90. data/vendor/xsd/siri_utility/siri_utility.xsd +301 -0
  91. data/vendor/xsd/siri_vehicleMonitoring_service.xsd +702 -0
  92. data/vendor/xsd/siri_wsConsumer-Document.wsdl +177 -0
  93. data/vendor/xsd/siri_wsConsumer-WSDL2.wsdl +96 -0
  94. data/vendor/xsd/siri_wsConsumer.wsdl +200 -0
  95. data/vendor/xsd/siri_wsProducer-Document.wsdl +558 -0
  96. data/vendor/xsd/siri_wsProducer-WSDL2.wsdl +229 -0
  97. data/vendor/xsd/siri_wsProducer.wsdl +629 -0
  98. data/vendor/xsd/soap.xsd +118 -0
  99. data/vendor/xsd/wsdl_model/siri-wsdl.xsd +8 -0
  100. data/vendor/xsd/wsdl_model/siri_wsConsumer-Framework.xsd +98 -0
  101. data/vendor/xsd/wsdl_model/siri_wsConsumer-Services.xsd +155 -0
  102. data/vendor/xsd/wsdl_model/siri_wsProducer-DiscoveryCapability.xsd +123 -0
  103. data/vendor/xsd/wsdl_model/siri_wsProducer-Framework.xsd +138 -0
  104. data/vendor/xsd/wsdl_model/siri_wsProducer-Services.xsd +263 -0
  105. data/vendor/xsd/xml/2008/09/xsd.xsl +997 -0
  106. data/vendor/xsd/xml/2009/01/XMLSchema.xsd +286 -0
  107. metadata +222 -0
@@ -0,0 +1,638 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xsd:schema xmlns="http://www.siri.org.uk/siri" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.siri.org.uk/siri" elementFormDefault="qualified" attributeFormDefault="unqualified" version="2.1" id="siri_journey">
3
+ <xsd:annotation>
4
+ <xsd:appinfo>
5
+ <Metadata xmlns="http://www.govtalk.gov.uk/CM/gms-xs">
6
+ <Aggregation>main schema</Aggregation>
7
+ <Audience>e-service developers</Audience>
8
+ <Contributor>Cen TC278 WG3 SG7 Team</Contributor>
9
+ <Coverage>Europe</Coverage>
10
+ <Creator>Drafted for version 1.0 CEN TC278 WG3 SG7 Editor Nicholas Knowles, Kizoom. mailto:schemer@siri.org.uk</Creator>
11
+ <Date>
12
+ <Created>2004-03-05</Created>
13
+ </Date>
14
+ <Date>
15
+ <Modified>2004-10-06</Modified>
16
+ </Date>
17
+ <Date>
18
+ <Modified>2005-05-11</Modified>
19
+ </Date>
20
+ <Date>
21
+ <Modified>2005-11-15</Modified>
22
+ </Date>
23
+ <Date>
24
+ <Modified>2007-03-29</Modified>
25
+ </Date>
26
+ <Date><Modified>2008-11-13</Modified>
27
+ <!--Correct Cardinalities on SIRI DESTINATION REF Structure-->
28
+ </Date>
29
+ <Date><Modified>2011-04-18</Modified>
30
+ <!--siri_journey.xsd (l.1015). FramedVehicleJourneyRef isn't mandatory in MonitoredCall SIRI-SM answer accourding to CEN TS (prCEN/TS 15531-3:2006 (E) p.56). Make optional. RV ixxx.com-->
31
+ </Date>
32
+ <Date><Modified>2012-03-22</Modified>
33
+ <!--SIRI 2.0
34
+ [VDV] Add EarliestExpectedArrivalTimeForVehicle to Arrival Times Group
35
+ [VDV] Add ProvisionalExpectedDepartureTime to Departure Times Group
36
+ [VDV] Add LatestExpectedArrivalTimeForVehicle to Departure Times Group
37
+
38
+ [Fr] Add FirstOrLastJourney to JourneyTimesGroup : SIRI-SM and SIRI-VM
39
+ Add JOURNEY PARTs to Vehicle INFO TODO
40
+ [VDV] Add Public and Contact Details to JourneyInfo : SIRI-PT, SIRI-ET, SIRI-SM. SIRI-VM
41
+ [VDV] at DirectionAtOrigin name to JourneyInfo SIRI-PT, SIRI-ET, SIRI-SM. SIRI-VM
42
+
43
+ [MTA] Add ArrivalProximityText to Arrival Times on MonitoredCall and OnwardsCall : SIRI-SM and SIRI-VM
44
+ [MTA] Add ArrivalProximityText to Departure Times on MonitoredCall and OnwardsCall : SIRI-SM and SIRI-VM
45
+
46
+ [FR] Add AimedLatestPassengerAccessTime to TargetedCall : SIRI-ST
47
+ [FR] Add AimedLatestPassengerAccessTime to MonitoredCall and OnwardsCall : SIRI-SM and SIRI-VM
48
+ [FR] Add ExpectedLatestPassengerAccessTime to MonitoredCall and OnwardsCall : SIRI-SM and SIRI-VM
49
+
50
+ [VDV] Add ViaPriority to ViaNames using a new ViaNameStructure SIRI-PT, SIRI-ET, SIRI-SM. SIRI-VM
51
+ [VDV] Add Velocity to MonitoredVehicleJourney SIRI-SM and SIRI-VM
52
+ [UK] add engineOn to vehicle progress group-->
53
+ </Date>
54
+ <Date><Modified>2012-04-27</Modified>
55
+ <!--SIRI 2.0
56
+ [MTA] Add DIstanceFromSTop and NumberOfStops away to MonitoredCall and OnwardsCall : SIRI-SM and SIRI-ET-->
57
+ </Date>
58
+ <Date><Modified>2012-04-27</Modified>
59
+ <!--SIRI 2.0
60
+ [SE] Add Vehicle Status-->
61
+ </Date>
62
+ <Description>
63
+ <p>SIRI is a European CEN technical standard for the exchange of real-time information .</p>
64
+ <p>This subschema defines common journey elements.</p>
65
+ </Description>
66
+ <Format>
67
+ <MediaType>text/xml</MediaType>
68
+ <Syntax>http://www.w3.org/2001/XMLSchema</Syntax>
69
+ <Description>XML schema, W3C Recommendation 2001</Description>
70
+ </Format>
71
+ <Identifier>{http://www.siri.org.uk/schema/2.0/xsd/siri_model/}siri_monitoredVehicleJourney.xsd</Identifier>
72
+ <Language>[ISO 639-2/B] ENG</Language>
73
+ <Publisher>Kizoom, 109-123 Clifton Street, London EC4A 4LD </Publisher>
74
+ <Relation>
75
+ <Requires>http://www.siri.org.uk/schema/2.0/xsd/siri_utility/siri_types.xsd</Requires>
76
+ </Relation>
77
+ <Rights><!--Unclassified-->
78
+
79
+ <Copyright>CEN, VDV, RTIG 2004-2021</Copyright>
80
+ </Rights>
81
+ <Source>
82
+ <ul>
83
+ <li>Derived from the VDV, RTIG CML and Trident standards.</li>
84
+ </ul>
85
+ </Source>
86
+ <Status>Version 2.1</Status>
87
+ <Subject>
88
+ <Category>Arts, recreation and travel, Tourism, Travel (tourism), Transport,
89
+ Air transport, Airports,
90
+ Ports and maritime transport, Ferries (marine),
91
+ Public transport, Bus services, Coach services, Bus stops and stations,
92
+ Rail transport, Railway stations and track, Train services, Underground trains,
93
+ Business and industry, Transport, Air transport, Ports and maritime transport, Public transport,
94
+ Rail transport, Roads and road transport
95
+ </Category>
96
+ <Project>CEN TC278 WG3 SG7</Project>
97
+ </Subject>
98
+ <Title>SIRI XML schema. Service Interface for Real-time Information relating to Public Transport Operations. Subschema of common Journey elements</Title>
99
+ <Type>Standard</Type>
100
+ </Metadata>
101
+ </xsd:appinfo>
102
+ <xsd:documentation>SIRI MONITORED VEHICLE JOURNEY Model.</xsd:documentation>
103
+ </xsd:annotation>
104
+ <!-- ======================================================================= -->
105
+ <xsd:include schemaLocation="siri_journey.xsd"/>
106
+ <!-- ==== MONITORED VEHICLEJOURNEY ================================================================== -->
107
+ <xsd:complexType name="MonitoredVehicleJourneyStructure">
108
+ <xsd:annotation>
109
+ <xsd:documentation>Type for Monitored VEHICLE JOURNEY.</xsd:documentation>
110
+ </xsd:annotation>
111
+ <xsd:sequence>
112
+ <xsd:group ref="MonitoredJourneyIdentityGroup"/>
113
+ <xsd:group ref="JourneyPatternInfoGroup"/>
114
+ <xsd:group ref="VehicleJourneyInfoGroup"/>
115
+ <xsd:group ref="DisruptionGroup"/>
116
+ <xsd:group ref="JourneyProgressGroup"/>
117
+ <xsd:group ref="TrainOperationalInfoGroup"/>
118
+ <xsd:group ref="MonitoredCallingPatternGroup"/>
119
+ </xsd:sequence>
120
+ </xsd:complexType>
121
+ <xsd:group name="JourneyProgressGroup">
122
+ <xsd:annotation>
123
+ <xsd:documentation>Elements describing the real-time progress of a monitored VEHICLE JOURNEY.</xsd:documentation>
124
+ </xsd:annotation>
125
+ <xsd:sequence>
126
+ <xsd:element name="Monitored" type="xsd:boolean" default="true" minOccurs="0">
127
+ <xsd:annotation>
128
+ <xsd:documentation>Whether there is real-time information available for journey. Default is 'true'.
129
+ It is recommended to specify a MonitoringError if Monitored is set to 'false'.</xsd:documentation>
130
+ </xsd:annotation>
131
+ </xsd:element>
132
+ <xsd:element name="MonitoringError" type="xsd:NMTOKENS" minOccurs="0">
133
+ <xsd:annotation>
134
+ <xsd:documentation>If Monitored is 'false', a (list of) reason(s) for non-availability of real-time data. Examples are "GPS", "GPRS", "Radio" etc.
135
+ MonitoringError must not be used if Monitored is omitted or set to 'true'.</xsd:documentation>
136
+ </xsd:annotation>
137
+ </xsd:element>
138
+ <xsd:group ref="ProgressDataQualityGroup"/>
139
+ <xsd:group ref="ProgressDataGroup"/>
140
+ </xsd:sequence>
141
+ </xsd:group>
142
+ <xsd:group name="ProgressDataQualityGroup">
143
+ <xsd:annotation>
144
+ <xsd:documentation>Elements describing the qua;ity of real-time progress data of a journey.</xsd:documentation>
145
+ </xsd:annotation>
146
+ <xsd:sequence>
147
+ <xsd:element name="InCongestion" type="xsd:boolean" minOccurs="0">
148
+ <xsd:annotation>
149
+ <xsd:documentation>Whether the VEHICLE iis in traffic congestion. If not, present, not known.</xsd:documentation>
150
+ </xsd:annotation>
151
+ </xsd:element>
152
+ <xsd:element name="InPanic" type="xsd:boolean" default="false" minOccurs="0">
153
+ <xsd:annotation>
154
+ <xsd:documentation>Whether the panic alarm on the VEHICLE is activated. This may lead to indeterminate predictions. If absent, default is 'false'.</xsd:documentation>
155
+ </xsd:annotation>
156
+ </xsd:element>
157
+ <xsd:element ref="PredictionInaccurate" minOccurs="0"/>
158
+ <xsd:element ref="PredictionInaccurateReason" minOccurs="0"/>
159
+ <xsd:element name="DataSource" type="xsd:string" minOccurs="0">
160
+ <xsd:annotation>
161
+ <xsd:documentation>System originating real-time data. Can be used to make judgements of relative quality and accuracy compared to other feeds.</xsd:documentation>
162
+ </xsd:annotation>
163
+ </xsd:element>
164
+ <xsd:element name="ConfidenceLevel" type="QualityIndexEnumeration" default="reliable" minOccurs="0">
165
+ <xsd:annotation>
166
+ <xsd:documentation>Confidence QUALITY LEVEL of data. Default is 'reliable'.</xsd:documentation>
167
+ </xsd:annotation>
168
+ </xsd:element>
169
+ </xsd:sequence>
170
+ </xsd:group>
171
+ <xsd:group name="ProgressDataGroup">
172
+ <xsd:annotation>
173
+ <xsd:documentation>Elements describing the real-time progress of a journey.</xsd:documentation>
174
+ </xsd:annotation>
175
+ <xsd:sequence>
176
+ <xsd:element name="VehicleLocation" type="LocationStructure" minOccurs="0">
177
+ <xsd:annotation>
178
+ <xsd:documentation>Current geospatial location of VEHICLE. Measured to front of vehicle.</xsd:documentation>
179
+ </xsd:annotation>
180
+ </xsd:element>
181
+ <xsd:element name="LocationRecordedAtTime" type="xsd:dateTime" minOccurs="0">
182
+ <xsd:annotation>
183
+ <xsd:documentation>Time at which location was recorded. If not present assume that the recorded at time on the containing delivery.</xsd:documentation>
184
+ </xsd:annotation>
185
+ </xsd:element>
186
+ <xsd:element name="Bearing" type="AbsoluteBearingType" minOccurs="0">
187
+ <xsd:annotation>
188
+ <xsd:documentation>Bearing in compass degrees in which VEHICLE is heading.</xsd:documentation>
189
+ </xsd:annotation>
190
+ </xsd:element>
191
+ <xsd:element name="ProgressRate" type="ProgressRateEnumeration" minOccurs="0">
192
+ <xsd:annotation>
193
+ <xsd:documentation>Rate of progress of VEHICLE. Default is 'normal'</xsd:documentation>
194
+ </xsd:annotation>
195
+ </xsd:element>
196
+ <xsd:element name="Velocity" type="VelocityType" minOccurs="0">
197
+ <xsd:annotation>
198
+ <xsd:documentation>Velocity of VEHICLE. EIther actual speed or average speed may be used. +SIRI v2.0</xsd:documentation>
199
+ </xsd:annotation>
200
+ </xsd:element>
201
+ <xsd:element name="EngineOn" type="xsd:boolean" default="true" minOccurs="0">
202
+ <xsd:annotation>
203
+ <xsd:documentation>Whether the engine of the vehicle is on. Default is 'true' (+SIRI 2.0)</xsd:documentation>
204
+ </xsd:annotation>
205
+ </xsd:element>
206
+ <xsd:element ref="Occupancy" minOccurs="0"/>
207
+ <xsd:element name="Delay" type="DurationType" minOccurs="0">
208
+ <xsd:annotation>
209
+ <xsd:documentation>Delay of VEHICLE against schedule, to a precision in seconds. Early times are shown as negative values.</xsd:documentation>
210
+ </xsd:annotation>
211
+ </xsd:element>
212
+ <xsd:element name="ProgressStatus" type="NaturalLanguageStringStructure" minOccurs="0" maxOccurs="unbounded">
213
+ <xsd:annotation>
214
+ <xsd:documentation>An arbitrary textual status description of the running of this VEHICLE JOURNEY. (Unbounded 0:* since SIRI 2.0)</xsd:documentation>
215
+ </xsd:annotation>
216
+ </xsd:element>
217
+ <xsd:element name="VehicleStatus" type="VehicleStatusEnumeration" minOccurs="0">
218
+ <xsd:annotation>
219
+ <xsd:documentation>An classification of the progress state of running of this VEHICLE JOURNEY. +SIRI 2.0</xsd:documentation>
220
+ </xsd:annotation>
221
+ </xsd:element>
222
+ </xsd:sequence>
223
+ </xsd:group>
224
+ <xsd:group name="ServicePointsGroup">
225
+ <xsd:annotation>
226
+ <xsd:documentation>Elements describing the main places bewteen which a VEHICLE JOURNEY runs.</xsd:documentation>
227
+ </xsd:annotation>
228
+ <xsd:sequence>
229
+ <xsd:element name="Origin" minOccurs="0">
230
+ <xsd:annotation>
231
+ <xsd:documentation>Origin of the VEHICLE JOURNEY.</xsd:documentation>
232
+ </xsd:annotation>
233
+ <xsd:complexType>
234
+ <xsd:sequence>
235
+ <xsd:element ref="OriginRef" minOccurs="0"/>
236
+ <xsd:element ref="OriginName" minOccurs="0"/>
237
+ </xsd:sequence>
238
+ </xsd:complexType>
239
+ </xsd:element>
240
+ <xsd:element name="Via" minOccurs="0" maxOccurs="unbounded">
241
+ <xsd:annotation>
242
+ <xsd:documentation>VIA points for VEHICLE JOURNEY</xsd:documentation>
243
+ </xsd:annotation>
244
+ <xsd:complexType>
245
+ <xsd:sequence>
246
+ <xsd:element ref="ViaRef" minOccurs="0"/>
247
+ <xsd:element ref="ViaName" minOccurs="0"/>
248
+ <xsd:element name="PresentationPriority" type="xsd:integer" minOccurs="0">
249
+ <xsd:annotation>
250
+ <xsd:documentation>Relative priority for incliding via in displays. 1 Is high 3 is low. +SIRI v2.0</xsd:documentation>
251
+ </xsd:annotation>
252
+ </xsd:element>
253
+ </xsd:sequence>
254
+ </xsd:complexType>
255
+ </xsd:element>
256
+ <xsd:element name="Destination" minOccurs="0">
257
+ <xsd:annotation>
258
+ <xsd:documentation>Destination of VEHICLE JOURNEY.</xsd:documentation>
259
+ </xsd:annotation>
260
+ <xsd:complexType>
261
+ <xsd:sequence>
262
+ <xsd:element ref="DestinationRef" minOccurs="0"/>
263
+ <xsd:element ref="DestinationName" minOccurs="0"/>
264
+ </xsd:sequence>
265
+ </xsd:complexType>
266
+ </xsd:element>
267
+ </xsd:sequence>
268
+ </xsd:group>
269
+ <xsd:group name="MonitoredCallingPatternGroup">
270
+ <xsd:annotation>
271
+ <xsd:documentation>The service pattern of a monitored VEHICLE JOURNEY. CALLs should be assigned to one of three groups according to the vehicle's current position.</xsd:documentation>
272
+ </xsd:annotation>
273
+ <xsd:sequence>
274
+ <xsd:element name="PreviousCalls" type="PreviousCallsStructure" minOccurs="0">
275
+ <xsd:annotation>
276
+ <xsd:documentation>Information on stops called at previously, origin and all intermediate stops up to but not including the current stop, in order or visits. Should only be included if the detail level was requested.</xsd:documentation>
277
+ </xsd:annotation>
278
+ </xsd:element>
279
+ <xsd:element name="MonitoredCall" type="MonitoredCallStructure" minOccurs="0">
280
+ <xsd:annotation>
281
+ <xsd:documentation>Monitored CALL at the current stop.
282
+ For SIRI-SM this is the stop for which data is requested.
283
+ For SIRI-VM this is the most recent stop visited by the VEHICLE.</xsd:documentation>
284
+ </xsd:annotation>
285
+ </xsd:element>
286
+ <xsd:element name="OnwardCalls" type="OnwardCallsStructure" minOccurs="0">
287
+ <xsd:annotation>
288
+ <xsd:documentation>Information on CALLs at the intermediate stops beyond the current stop, up to and including the destination, in order of visits. Should only be included if the detail level was requested.</xsd:documentation>
289
+ </xsd:annotation>
290
+ </xsd:element>
291
+ <xsd:element name="IsCompleteStopSequence" type="xsd:boolean" default="false" minOccurs="0">
292
+ <xsd:annotation>
293
+ <xsd:documentation>Whether the above CALL sequence is complete, i.e. represents every CALL of the ROUTE and so can be used to replace a previous CALL sequence. Default is 'false'.</xsd:documentation>
294
+ </xsd:annotation>
295
+ </xsd:element>
296
+ </xsd:sequence>
297
+ </xsd:group>
298
+ <!-- ==== LINE ROUTE and destination elements======================================================== -->
299
+ <xsd:complexType name="JourneyPartInfoStructure">
300
+ <xsd:annotation>
301
+ <xsd:documentation>Type for a reference to JOURNEY PART. +SIRI v2.0</xsd:documentation>
302
+ </xsd:annotation>
303
+ <xsd:sequence>
304
+ <xsd:element name="JourneyPartRef" type="xsd:normalizedString" minOccurs="0">
305
+ <xsd:annotation>
306
+ <xsd:documentation>Reference to a JOURNEY part. +SIRI v2.0</xsd:documentation>
307
+ </xsd:annotation>
308
+ </xsd:element>
309
+ <xsd:element name="TrainNumberRef" type="TrainNumberRefStructure" minOccurs="0">
310
+ <xsd:annotation>
311
+ <xsd:documentation>Train Number for JOURNEY PART +SIRI v2.0</xsd:documentation>
312
+ </xsd:annotation>
313
+ </xsd:element>
314
+ <xsd:element name="OperatorRef" type="OperatorRefStructure" minOccurs="0">
315
+ <xsd:annotation>
316
+ <xsd:documentation>OPERATOR of JOURNEY PART. +SIRI v2.0</xsd:documentation>
317
+ </xsd:annotation>
318
+ </xsd:element>
319
+ <xsd:element ref="CompoundTrainRef" minOccurs="0">
320
+ <xsd:annotation>
321
+ <xsd:documentation>Reference to COMPOUND TRAIN that represents the train formation/composition as a whole (for this JOURNEY PART). +SIRI v2.1
322
+ A journey does always have one or more JOURNEY PARTs for which the train formation/composition remains unchanged.</xsd:documentation>
323
+ </xsd:annotation>
324
+ </xsd:element>
325
+ <xsd:group ref="JourneyPartViewGroup" minOccurs="0"/>
326
+ </xsd:sequence>
327
+ </xsd:complexType>
328
+ <xsd:complexType name="DatedJourneyPartInfoStructure">
329
+ <xsd:annotation>
330
+ <xsd:documentation>Type for a reference to JOURNEY PART. +SIRI v2.1</xsd:documentation>
331
+ </xsd:annotation>
332
+ <xsd:sequence>
333
+ <xsd:element name="JourneyPartRef" type="xsd:normalizedString" minOccurs="0">
334
+ <xsd:annotation>
335
+ <xsd:documentation>Reference to a JOURNEY part.</xsd:documentation>
336
+ </xsd:annotation>
337
+ </xsd:element>
338
+ <xsd:element name="TrainNumberRef" type="TrainNumberRefStructure" minOccurs="0">
339
+ <xsd:annotation>
340
+ <xsd:documentation>Train Number for JOURNEY PART.</xsd:documentation>
341
+ </xsd:annotation>
342
+ </xsd:element>
343
+ <xsd:element name="OperatorRef" type="OperatorRefStructure" minOccurs="0">
344
+ <xsd:annotation>
345
+ <xsd:documentation>OPERATOR of JOURNEY PART.</xsd:documentation>
346
+ </xsd:annotation>
347
+ </xsd:element>
348
+ <xsd:element ref="CompoundTrainRef" minOccurs="0">
349
+ <xsd:annotation>
350
+ <xsd:documentation>Reference to COMPOUND TRAIN that represents the train formation/composition as a whole (for this JOURNEY PART). +SIRI v2.1
351
+ A journey does always have one or more JOURNEY PARTs for which the train formation/composition remains unchanged.
352
+ </xsd:documentation>
353
+ </xsd:annotation>
354
+ </xsd:element>
355
+ <xsd:group ref="JourneyPartViewGroup" minOccurs="0"/>
356
+ </xsd:sequence>
357
+ </xsd:complexType>
358
+ <xsd:group name="JourneyPartViewGroup">
359
+ <xsd:annotation>
360
+ <xsd:documentation>If no JOURNEY PART reference is available (or in addition to the reference), identify it indirectly by From-/ToStopPointRef and Start-/EndTime (i.e. the scheduled times at these stops). +SIRI v2.1</xsd:documentation>
361
+ </xsd:annotation>
362
+ <xsd:sequence>
363
+ <xsd:element name="FromStopPointRef" type="StopPointRefStructure">
364
+ <xsd:annotation>
365
+ <xsd:documentation>Reference to the SCHEDULED STOP POINT at which the related JOURNEY PART begins.</xsd:documentation>
366
+ </xsd:annotation>
367
+ </xsd:element>
368
+ <xsd:element name="ToStopPointRef" type="StopPointRefStructure">
369
+ <xsd:annotation>
370
+ <xsd:documentation>Reference to the SCHEDULED STOP POINT at which the related JOURNEY PART ends.</xsd:documentation>
371
+ </xsd:annotation>
372
+ </xsd:element>
373
+ <xsd:element name="StartTime" type="xsd:dateTime" minOccurs="0">
374
+ <xsd:annotation>
375
+ <xsd:documentation>Time at which the related JOURNEY PART begins.</xsd:documentation>
376
+ </xsd:annotation>
377
+ </xsd:element>
378
+ <xsd:element name="EndTime" type="xsd:dateTime" minOccurs="0">
379
+ <xsd:annotation>
380
+ <xsd:documentation>Time at which the related JOURNEY PART ends.</xsd:documentation>
381
+ </xsd:annotation>
382
+ </xsd:element>
383
+ </xsd:sequence>
384
+ </xsd:group>
385
+ <!-- ======================================================================= -->
386
+ <xsd:complexType name="TrainBlockPartStructure">
387
+ <xsd:annotation>
388
+ <xsd:documentation>Type for BLOCK part elements of VEHICLE JOURNEY.</xsd:documentation>
389
+ </xsd:annotation>
390
+ <xsd:sequence>
391
+ <xsd:element name="NumberOfBlockParts" type="xsd:positiveInteger">
392
+ <xsd:annotation>
393
+ <xsd:documentation>Total number of BLOCK parts making up the train of which this is part.</xsd:documentation>
394
+ </xsd:annotation>
395
+ </xsd:element>
396
+ <xsd:element name="TrainPartRef" type="TrainPartRefStructure">
397
+ <xsd:annotation>
398
+ <xsd:documentation>Reference to a train BLOCK part.</xsd:documentation>
399
+ </xsd:annotation>
400
+ </xsd:element>
401
+ <xsd:element name="PositionOfTrainBlockPart" type="NaturalLanguageStringStructure" minOccurs="0" maxOccurs="unbounded">
402
+ <xsd:annotation>
403
+ <xsd:documentation>Description of position of train BLOCK part within Train to guide passengers where to find it. E.g. 'Front four coaches'.</xsd:documentation>
404
+ </xsd:annotation>
405
+ </xsd:element>
406
+ </xsd:sequence>
407
+ </xsd:complexType>
408
+ <xsd:group name="TrainOperationalInfoGroup">
409
+ <xsd:annotation>
410
+ <xsd:documentation>Operational information about the monitored VEHICLE JOURNEY.</xsd:documentation>
411
+ </xsd:annotation>
412
+ <xsd:sequence>
413
+ <xsd:element name="TrainBlockPart" type="TrainBlockPartStructure" minOccurs="0" maxOccurs="unbounded">
414
+ <xsd:annotation>
415
+ <xsd:documentation>If a VEHICLE JOURNEY is a coupled journey, i.e. comprises several coupled BLOCKparts, there will be a separate delivery for each BLOCKp art and this element will indicate the vehicles that the journey part uses.</xsd:documentation>
416
+ </xsd:annotation>
417
+ </xsd:element>
418
+ <xsd:group ref="OperationalInfoGroup"/>
419
+ <xsd:element name="TrainNumbers" minOccurs="0">
420
+ <xsd:annotation>
421
+ <xsd:documentation>TRAIN NUMBERs for journey. +SIRI v2.0</xsd:documentation>
422
+ </xsd:annotation>
423
+ <xsd:complexType>
424
+ <xsd:sequence>
425
+ <xsd:element name="TrainNumberRef" type="TrainNumberRefStructure" maxOccurs="unbounded">
426
+ <xsd:annotation>
427
+ <xsd:documentation>TRAIN NUMBER assigned to VEHICLE JOURNEY. +SIRI 2.0</xsd:documentation>
428
+ </xsd:annotation>
429
+ </xsd:element>
430
+ </xsd:sequence>
431
+ </xsd:complexType>
432
+ </xsd:element>
433
+ <xsd:element name="JourneyParts" minOccurs="0">
434
+ <xsd:annotation>
435
+ <xsd:documentation>JOURNEY PARTs making up JOURNEY +SIRIv2.0 e.</xsd:documentation>
436
+ </xsd:annotation>
437
+ <xsd:complexType>
438
+ <xsd:sequence>
439
+ <xsd:element name="JourneyPartInfo" type="JourneyPartInfoStructure" maxOccurs="unbounded">
440
+ <xsd:annotation>
441
+ <xsd:documentation>Information about Parts of JOURNEY +SIRI v2.0</xsd:documentation>
442
+ </xsd:annotation>
443
+ </xsd:element>
444
+ </xsd:sequence>
445
+ </xsd:complexType>
446
+ </xsd:element>
447
+ <xsd:group ref="JourneyFormationGroup"/>
448
+ </xsd:sequence>
449
+ </xsd:group>
450
+ <xsd:group name="DatedTrainOperationalInfoGroup">
451
+ <xsd:annotation>
452
+ <xsd:documentation>Operational information about the monitored VEHICLE JOURNEY.</xsd:documentation>
453
+ </xsd:annotation>
454
+ <xsd:sequence>
455
+ <xsd:element name="TrainBlockPart" type="TrainBlockPartStructure" minOccurs="0" maxOccurs="unbounded">
456
+ <xsd:annotation>
457
+ <xsd:documentation>If a VEHICLE JOURNEY is a coupled journey, i.e. comprises several coupled BLOCKparts, there will be a separate delivery for each BLOCKp art and this element will indicate the vehicles that the journey part uses.</xsd:documentation>
458
+ </xsd:annotation>
459
+ </xsd:element>
460
+ <xsd:group ref="DatedOperationalInfoGroup"/>
461
+ <xsd:element name="TrainNumbers" minOccurs="0">
462
+ <xsd:annotation>
463
+ <xsd:documentation>TRAIN NUMBERs for journey. +SIRI v2.0</xsd:documentation>
464
+ </xsd:annotation>
465
+ <xsd:complexType>
466
+ <xsd:sequence>
467
+ <xsd:element name="TrainNumberRef" type="TrainNumberRefStructure" maxOccurs="unbounded">
468
+ <xsd:annotation>
469
+ <xsd:documentation>TRAIN NUMBER assigned to VEHICLE JOURNEY. +SIRI 2.0</xsd:documentation>
470
+ </xsd:annotation>
471
+ </xsd:element>
472
+ </xsd:sequence>
473
+ </xsd:complexType>
474
+ </xsd:element>
475
+ <xsd:element name="JourneyParts" minOccurs="0">
476
+ <xsd:annotation>
477
+ <xsd:documentation>JOURNEY PARTs making up JOURNEY +SIRIv2.0 e.</xsd:documentation>
478
+ </xsd:annotation>
479
+ <xsd:complexType>
480
+ <xsd:sequence>
481
+ <xsd:element name="JourneyPartInfo" type="DatedJourneyPartInfoStructure" maxOccurs="unbounded">
482
+ <xsd:annotation>
483
+ <xsd:documentation>Information about Parts of JOURNEY +SIRI v2.0</xsd:documentation>
484
+ </xsd:annotation>
485
+ </xsd:element>
486
+ </xsd:sequence>
487
+ </xsd:complexType>
488
+ </xsd:element>
489
+ <xsd:group ref="JourneyFormationGroup"/>
490
+ </xsd:sequence>
491
+ </xsd:group>
492
+ <!-- ======================================================================= -->
493
+ <!-- ===== PREVIOUS CALL============================================= -->
494
+ <xsd:complexType name="PreviousCallsStructure">
495
+ <xsd:annotation>
496
+ <xsd:documentation>Type for Ordered list of CALLs at previous stop.</xsd:documentation>
497
+ </xsd:annotation>
498
+ <xsd:sequence>
499
+ <xsd:element name="PreviousCall" type="PreviousCallStructure" maxOccurs="unbounded"/>
500
+ </xsd:sequence>
501
+ </xsd:complexType>
502
+ <xsd:complexType name="PreviousCallStructure">
503
+ <xsd:annotation>
504
+ <xsd:documentation>Type for CALL at previous stop.</xsd:documentation>
505
+ </xsd:annotation>
506
+ <xsd:complexContent>
507
+ <xsd:extension base="AbstractMonitoredCallStructure">
508
+ <xsd:sequence>
509
+ <xsd:element ref="VehicleAtStop" minOccurs="0"/>
510
+ <xsd:group ref="VehicleArrivalTimesGroup"/>
511
+ <xsd:group ref="VehicleDepartureTimesGroup"/>
512
+ <xsd:element ref="Extensions" minOccurs="0"/>
513
+ </xsd:sequence>
514
+ </xsd:extension>
515
+ </xsd:complexContent>
516
+ </xsd:complexType>
517
+ <!-- ===== CALL =============================================================== -->
518
+ <xsd:complexType name="MonitoredCallStructure">
519
+ <xsd:annotation>
520
+ <xsd:documentation>Type for Current CALL at stop.</xsd:documentation>
521
+ </xsd:annotation>
522
+ <xsd:complexContent>
523
+ <xsd:extension base="AbstractMonitoredCallStructure">
524
+ <xsd:sequence>
525
+ <xsd:group ref="MonitoredCallGroup"/>
526
+ <xsd:element ref="Extensions" minOccurs="0"/>
527
+ </xsd:sequence>
528
+ </xsd:extension>
529
+ </xsd:complexContent>
530
+ </xsd:complexType>
531
+ <xsd:group name="MonitoredCallGroup">
532
+ <xsd:annotation>
533
+ <xsd:documentation>Elements for a monitored CALL.</xsd:documentation>
534
+ </xsd:annotation>
535
+ <xsd:sequence>
536
+ <xsd:group ref="CallRealtimeGroup"/>
537
+ <xsd:group ref="CallRailGroup"/>
538
+ <xsd:group ref="CallPropertyGroup"/>
539
+ <xsd:group ref="CallNoteGroup"/>
540
+ <xsd:group ref="DisruptionGroup"/>
541
+ <xsd:group ref="StopArrivalGroup"/>
542
+ <xsd:group ref="StopDepartureGroup"/>
543
+ <xsd:group ref="HeadwayIntervalGroup"/>
544
+ <xsd:group ref="StopProximityGroup"/>
545
+ </xsd:sequence>
546
+ </xsd:group>
547
+ <xsd:group name="CallRealtimeGroup">
548
+ <xsd:annotation>
549
+ <xsd:documentation>Elements describing the Real-time CALL properties.</xsd:documentation>
550
+ </xsd:annotation>
551
+ <xsd:sequence>
552
+ <xsd:element ref="VehicleAtStop" minOccurs="0"/>
553
+ <xsd:element name="VehicleLocationAtStop" type="LocationStructure" minOccurs="0">
554
+ <xsd:annotation>
555
+ <xsd:documentation>Exact location that VEHICLE will take up / or has taken at STOP POINT.</xsd:documentation>
556
+ </xsd:annotation>
557
+ </xsd:element>
558
+ </xsd:sequence>
559
+ </xsd:group>
560
+ <xsd:group name="CallRailGroup">
561
+ <xsd:annotation>
562
+ <xsd:documentation>Elements describing theProperties specific to a rail CALLs.</xsd:documentation>
563
+ </xsd:annotation>
564
+ <xsd:sequence>
565
+ <xsd:element name="ReversesAtStop" type="xsd:boolean" default="false" minOccurs="0">
566
+ <xsd:annotation>
567
+ <xsd:documentation>Whether VEHICLE will reverse at stop. Default is 'false'.</xsd:documentation>
568
+ </xsd:annotation>
569
+ </xsd:element>
570
+ <xsd:element name="PlatformTraversal" type="xsd:boolean" default="false" minOccurs="0">
571
+ <xsd:annotation>
572
+ <xsd:documentation>For Rail, whether this is a platform traversal at speed, typically triggering an announcement to stand back from platform. If so Boarding Activity of arrival and deparure should be passthrough.</xsd:documentation>
573
+ </xsd:annotation>
574
+ </xsd:element>
575
+ <xsd:element name="SignalStatus" type="xsd:NMTOKEN" minOccurs="0">
576
+ <xsd:annotation>
577
+ <xsd:documentation>Status of signal clearance for TRAIN. This may affect the prioritiisition and emphasis given to arrival or departure on displays - e.g. cleared trains appear first, flashing in green.</xsd:documentation>
578
+ </xsd:annotation>
579
+ </xsd:element>
580
+ </xsd:sequence>
581
+ </xsd:group>
582
+ <xsd:group name="StopArrivalGroup">
583
+ <xsd:annotation>
584
+ <xsd:documentation>Elements describing the the arrival of a VEHICLE at a stop.</xsd:documentation>
585
+ </xsd:annotation>
586
+ <xsd:sequence>
587
+ <xsd:group ref="MonitoredCallArrivalTimesGroup"/>
588
+ <xsd:group ref="MonitoredStopArrivalStatusGroup"/>
589
+ </xsd:sequence>
590
+ </xsd:group>
591
+ <xsd:group name="MonitoredCallArrivalTimesGroup">
592
+ <xsd:annotation>
593
+ <xsd:documentation>Arrival times for CALL.</xsd:documentation>
594
+ </xsd:annotation>
595
+ <xsd:sequence>
596
+ <xsd:group ref="VehicleArrivalTimesGroup"/>
597
+ <xsd:element name="LatestExpectedArrivalTime" type="xsd:dateTime" minOccurs="0">
598
+ <xsd:annotation>
599
+ <xsd:documentation>Latest time at which a VEHICLE will arrive at stop. +SIRI v2.0</xsd:documentation>
600
+ </xsd:annotation>
601
+ </xsd:element>
602
+ </xsd:sequence>
603
+ </xsd:group>
604
+ <xsd:group name="StopDepartureGroup">
605
+ <xsd:annotation>
606
+ <xsd:documentation>Elements describing the the departure of a VEHICLE from a stop.</xsd:documentation>
607
+ </xsd:annotation>
608
+ <xsd:sequence>
609
+ <xsd:group ref="MonitoredCallDepartureTimesGroup"/>
610
+ <xsd:group ref="PassengerDepartureTimesGroup"/>
611
+ <xsd:group ref="MonitoredStopDepartureStatusGroup"/>
612
+ </xsd:sequence>
613
+ </xsd:group>
614
+ <xsd:group name="MonitoredCallDepartureTimesGroup">
615
+ <xsd:annotation>
616
+ <xsd:documentation>Departure times for CALL.</xsd:documentation>
617
+ </xsd:annotation>
618
+ <xsd:sequence>
619
+ <xsd:group ref="VehicleDepartureTimesGroup"/>
620
+ <xsd:element name="ProvisionalExpectedDepartureTime" type="xsd:dateTime" minOccurs="0">
621
+ <xsd:annotation>
622
+ <xsd:documentation>Expected departure time of VEHICLE without waiting time due to operational actions. For people at stop this would normally be shown if different from Expected Departure time. +SIRI v2.0.</xsd:documentation>
623
+ </xsd:annotation>
624
+ </xsd:element>
625
+ <xsd:element name="EarliestExpectedDepartureTime" type="xsd:dateTime" minOccurs="0">
626
+ <xsd:annotation>
627
+ <xsd:documentation>Earliest time at which VEHICLE may leave the stop. Used to secure connections. Passengers must be at boarding point by this time to be sure of catching VEHICLE. +SIRI v2.0</xsd:documentation>
628
+ </xsd:annotation>
629
+ </xsd:element>
630
+ <xsd:element name="ExpectedDeparturePredictionQuality" type="PredictionQualityStructure" minOccurs="0">
631
+ <xsd:annotation>
632
+ <xsd:documentation>Prediction quality, either as approcimate level, or more quantitatyive percentile range of predictions will fall within a given range of times. +SIRI v2.0 </xsd:documentation>
633
+ </xsd:annotation>
634
+ </xsd:element>
635
+ </xsd:sequence>
636
+ </xsd:group>
637
+ <!-- ==== Times at CALL======================================================= -->
638
+ </xsd:schema>