-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathTrias_LocationSupport.xsd
456 lines (456 loc) · 19.4 KB
/
Trias_LocationSupport.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
<?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:annotation>
<xs:documentation>========================================= Stop Points =============================================</xs:documentation>
</xs:annotation>
<xs:simpleType name="StopPointCodeType">
<xs:annotation>
<xs:documentation>Identifier of a Stop Point</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:normalizedString"/>
</xs:simpleType>
<xs:complexType name="StopPointRefStructure">
<xs:annotation>
<xs:documentation>Reference to a Stop Point</xs:documentation>
</xs:annotation>
<xs:simpleContent>
<xs:extension base="StopPointCodeType"/>
</xs:simpleContent>
</xs:complexType>
<xs:element name="StopPointRef" type="StopPointRefStructure">
<xs:annotation>
<xs:documentation>Reference to a Stop Point</xs:documentation>
</xs:annotation>
</xs:element>
<xs:group name="StopPointGroup">
<xs:annotation>
<xs:documentation>A stop point with id and name</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element ref="StopPointRef"/>
<xs:element name="StopPointName" type="InternationalTextStructure" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Name or description of stop point for use in passenger information.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="NameSuffix" type="InternationalTextStructure" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Additional description of the stop point that may be appended to the name if enough space is available. F.e. "opposite main entrance".</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="PlannedBay" type="InternationalTextStructure" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Name of the bay where to board/alight from the vehicle. According to planned timetable.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="EstimatedBay" type="InternationalTextStructure" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Name of the bay where to board/alight from the vehicle. As to the latest realtime status.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:group>
<xs:complexType name="StopPointStructure">
<xs:annotation>
<xs:documentation>Complete model of a stop point.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:group ref="StopPointGroup"/>
<xs:element name="PrivateCode" type="PrivateCodeStructure" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Code of this stop point in private/foreign/proprietary coding schemes.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ParentRef" type="StopPlaceRefStructure" minOccurs="0">
<xs:annotation>
<xs:documentation>Reference to the stop place to which this stop point belongs.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="LocalityRef" minOccurs="0"/>
<xs:group ref="StopAttributesGroup"/>
</xs:sequence>
</xs:complexType>
<xs:annotation>
<xs:documentation>========================================= Stop Places =============================================</xs:documentation>
</xs:annotation>
<xs:simpleType name="StopPlaceCodeType">
<xs:annotation>
<xs:documentation>Identifier of a Stop Place</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:normalizedString"/>
</xs:simpleType>
<xs:complexType name="StopPlaceRefStructure">
<xs:annotation>
<xs:documentation>Reference to a Stop Place</xs:documentation>
</xs:annotation>
<xs:simpleContent>
<xs:extension base="StopPlaceCodeType"/>
</xs:simpleContent>
</xs:complexType>
<xs:element name="StopPlaceRef" type="StopPlaceRefStructure">
<xs:annotation>
<xs:documentation>Reference to a Stop Place</xs:documentation>
</xs:annotation>
</xs:element>
<xs:group name="StopPlaceGroup">
<xs:annotation>
<xs:documentation>A stop place with id and name</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element ref="StopPlaceRef"/>
<xs:element name="StopPlaceName" type="InternationalTextStructure" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Name of this stop place for use in passenger information.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="NameSuffix" type="InternationalTextStructure" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Additional description of the stop place that may be appended to the name if enough space is available. F.e. "Exhibition Center".</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:group>
<xs:complexType name="StopPlaceStructure">
<xs:annotation>
<xs:documentation>Complete Model of a stop place.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:group ref="StopPlaceGroup"/>
<xs:element name="PrivateCode" type="PrivateCodeStructure" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Code of this stop place in private/foreign/proprietary coding schemes.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="LocalityRef" minOccurs="0"/>
<xs:group ref="StopAttributesGroup"/>
</xs:sequence>
</xs:complexType>
<xs:annotation>
<xs:documentation>========================================= Attributes ==============================================</xs:documentation>
</xs:annotation>
<xs:group name="StopAttributesGroup">
<xs:annotation>
<xs:documentation>Properties of a stop.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="WheelchairAccessible" type="xs:boolean" default="false" minOccurs="0">
<xs:annotation>
<xs:documentation>Whether this stop is accessible for wheelchair users.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Lighting" type="xs:boolean" default="false" minOccurs="0">
<xs:annotation>
<xs:documentation>Whether this stop is lit.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Covered" type="xs:boolean" default="false" minOccurs="0">
<xs:annotation>
<xs:documentation>Whether this stop offers protection from weather conditions like rain, snow, storm etc.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:group>
<xs:annotation>
<xs:documentation>========================================= Locality =============================================</xs:documentation>
</xs:annotation>
<xs:simpleType name="LocalityCodeType">
<xs:annotation>
<xs:documentation>Identifier of a Locality</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:normalizedString"/>
</xs:simpleType>
<xs:complexType name="LocalityRefStructure">
<xs:annotation>
<xs:documentation>Reference to a Locality</xs:documentation>
</xs:annotation>
<xs:simpleContent>
<xs:extension base="LocalityCodeType"/>
</xs:simpleContent>
</xs:complexType>
<xs:element name="LocalityRef" type="LocalityRefStructure">
<xs:annotation>
<xs:documentation>Reference to a Locality</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="LocalityStructure">
<xs:annotation>
<xs:documentation>Complete model of a locality</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="LocalityCode" type="LocalityCodeType">
<xs:annotation>
<xs:documentation>Locality ID.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="LocalityName" type="InternationalTextStructure" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Name or description of locality for use in passenger information.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="PrivateCode" type="PrivateCodeStructure" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Code of this locality in private/foreign/proprietary coding schemes.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ParentRef" type="LocalityRefStructure" minOccurs="0">
<xs:annotation>
<xs:documentation>Reference to a parent locality.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Area" minOccurs="0">
<xs:annotation>
<xs:documentation>Area covered by the locality described as a polygon.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Points" type="GeoPositionStructure" minOccurs="3" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:annotation>
<xs:documentation>========================================= Point of Interest =============================================</xs:documentation>
</xs:annotation>
<xs:simpleType name="PointOfInterestCodeType">
<xs:annotation>
<xs:documentation>Identifier of a Point of Interest</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:normalizedString"/>
</xs:simpleType>
<xs:complexType name="PointOfInterestRefStructure">
<xs:annotation>
<xs:documentation>Reference to a Point of Interest</xs:documentation>
</xs:annotation>
<xs:simpleContent>
<xs:extension base="PointOfInterestCodeType"/>
</xs:simpleContent>
</xs:complexType>
<xs:element name="PointOfInterestRef" type="PointOfInterestRefStructure">
<xs:annotation>
<xs:documentation>Reference to a Point of Interest</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="PointOfInterestStructure">
<xs:annotation>
<xs:documentation>Complete model of a Point of Interest</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="PointOfInterestCode" type="PointOfInterestCodeType">
<xs:annotation>
<xs:documentation>ID of this Point of Interest.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="PointOfInterestName" type="InternationalTextStructure" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Name or description of point of interest for use in passenger information.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="NameSuffix" type="InternationalTextStructure" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Additional description of the point of interest that may be appended to the name if enough space is available. F.e. "Exhibition Center".</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="PointOfInterestCategory" type="PointOfInterestCategoryStructure" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Categories this POI is associated with. Order indicates descending relevance.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="PrivateCode" type="PrivateCodeStructure" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Code of this point of interest in private/foreign/proprietary coding schemes.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="LocalityRef" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="PointOfInterestCategoryStructure">
<xs:annotation>
<xs:documentation>List of categories defined by key-value-pairs.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="OsmTag" type="OsmTagStructure" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Open Street Map tag structure (key-value)</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="OsmTagStructure">
<xs:annotation>
<xs:documentation>Structure of an Open Street Map tag.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Tag" type="xs:NMTOKEN">
<xs:annotation>
<xs:documentation>Name of Open Street Map tag (amenity, leisure, tourism, bike, ...)</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Value" type="xs:NMTOKEN">
<xs:annotation>
<xs:documentation>Value for Open Street Map tag (charging_station, hostel, yes, ...)</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="PointOfInterestFilterStructure">
<xs:sequence>
<xs:element name="Exclude" type="xs:boolean" default="false" minOccurs="0">
<xs:annotation>
<xs:documentation>Whether categories in list are to include or exclude from search. Default is FALSE.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="PointOfInterestCategory" type="PointOfInterestCategoryStructure" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>These can be used to filter POI types of locations even more by additional category filters. If more than one is given the filtering is by logical "OR" (when Exclude=FALSE) and logical "AND" (when Exclude=TRUE).</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:annotation>
<xs:documentation>========================================= Addresses =============================================</xs:documentation>
</xs:annotation>
<xs:simpleType name="AddressCodeType">
<xs:annotation>
<xs:documentation>Identifier of an Address</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:normalizedString"/>
</xs:simpleType>
<xs:complexType name="AddressRefStructure">
<xs:annotation>
<xs:documentation>Reference to an Address</xs:documentation>
</xs:annotation>
<xs:simpleContent>
<xs:extension base="AddressCodeType"/>
</xs:simpleContent>
</xs:complexType>
<xs:element name="AddressRef" type="AddressRefStructure">
<xs:annotation>
<xs:documentation>Reference to an Address</xs:documentation>
</xs:annotation>
</xs:element>
<xs:group name="AddressDetailGroup">
<xs:annotation>
<xs:documentation>An address with its name entities</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="CountryName" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation>Country of the address.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="PostalCode" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation>Postal code of the address.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="LocalityName" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation>Locality name of the address. If set it should at least contain the city name.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="LocalityRef" minOccurs="0"/>
<xs:element name="StreetName" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation>Street name of the address.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="HouseNumber" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation>House number of the address. If none is given, either a crossing street can be given, or the whole street is meant.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="CrossingStreet" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation>Crossing. This can be used to be more specific without using house numbers.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:group>
<xs:complexType name="AddressStructure">
<xs:annotation>
<xs:documentation>Complete model of an Address</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="AddressCode" type="AddressCodeType">
<xs:annotation>
<xs:documentation>ID of this address.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="PrivateCode" type="PrivateCodeStructure" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Code of this address in private/foreign/proprietary coding schemes.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="AddressName" type="InternationalTextStructure" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Name or description of address for use in passenger information.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="NameSuffix" type="InternationalTextStructure" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Additional description of the address that may be appended to the name if enough space is available. F.e. "Crossing with Peterstraße".</xs:documentation>
</xs:annotation>
</xs:element>
<xs:group ref="AddressDetailGroup"/>
</xs:sequence>
</xs:complexType>
<xs:annotation>
<xs:documentation>========================================= Locations ==============================================</xs:documentation>
</xs:annotation>
<xs:complexType name="LocationStructure">
<xs:annotation>
<xs:documentation>Base for all types of locations</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:choice minOccurs="0">
<xs:element name="StopPoint" type="StopPointStructure"/>
<xs:element name="StopPlace" type="StopPlaceStructure"/>
<xs:element name="Locality" type="LocalityStructure">
<xs:annotation>
<xs:documentation>Locality, village or city.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="PointOfInterest" type="PointOfInterestStructure"/>
<xs:element name="Address" type="AddressStructure"/>
</xs:choice>
<xs:element name="LocationName" type="InternationalTextStructure" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Public name of the location.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="GeoPosition" type="GeoPositionStructure"/>
<xs:element name="Attribute" type="GeneralAttributeStructure" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Attribute associated with this location.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Extension" type="xs:anyType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="LocationRefStructure">
<xs:annotation>
<xs:documentation>Reference to a stop, address, POI, locality</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:choice>
<xs:element ref="StopPointRef"/>
<xs:element ref="StopPlaceRef"/>
<xs:element name="GeoPosition" type="GeoPositionStructure">
<xs:annotation>
<xs:documentation>WGS84 coordinates position.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="LocalityRef"/>
<xs:element ref="PointOfInterestRef"/>
<xs:element ref="AddressRef"/>
</xs:choice>
<xs:element name="LocationName" type="InternationalTextStructure" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Public name of the location.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:schema>