-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathTrias_Connections.xsd
179 lines (179 loc) · 8.64 KB
/
Trias_Connections.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
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="http://www.vdv.de/trias" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:siri="http://www.siri.org.uk/siri" targetNamespace="http://www.vdv.de/trias" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:import namespace="http://www.siri.org.uk/siri" schemaLocation="siri-1.4/siri.xsd"/>
<xs:include schemaLocation="Trias_Common.xsd"/>
<xs:include schemaLocation="Trias_JourneySupport.xsd"/>
<xs:annotation>
<xs:documentation>== Connection Demand =======================================</xs:documentation>
</xs:annotation>
<xs:element name="ConnectionDemandRequest" type="ConnectionDemandRequestStructure"/>
<xs:complexType name="ConnectionDemandRequestStructure">
<xs:sequence>
<xs:element name="RequestId" type="xs:NMTOKEN"/>
<xs:element name="Connection" type="GeneralizedConnectionStructure"/>
<xs:element name="NumberOfPersons" type="xs:positiveInteger" minOccurs="0"/>
<xs:element name="TravelProbability" type="PercentType" minOccurs="0"/>
<xs:element name="RequiredInterchangeDuration" type="xs:duration" minOccurs="0">
<xs:annotation>
<xs:documentation>The amount of time the traveller will approximately need to cover the distance between feeder and distributor.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="PassengerAccessibilityNeeds" type="PassengerAccessibilityStructure" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>For each person that has special accessibility needs one element PassengerAccessibilityNeeds should be inserted here.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Extension" type="xs:anyType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<!--== Connection Demand - RESPONSE =======================================-->
<xs:element name="ConnectionDemandResponse" type="ConnectionDemandResponseStructure"/>
<xs:complexType name="ConnectionDemandResponseStructure">
<xs:sequence>
<xs:element name="ErrorMessage" type="ErrorMessageStructure" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="GeneralizedConnectionStructure">
<xs:choice>
<xs:element name="DatedConnection" type="DatedConnectionStructure"/>
<xs:element name="PickUpLocation" type="DatedCallAtLocationStructure"/>
<xs:element name="SetDownLocation" type="DatedCallAtLocationStructure"/>
</xs:choice>
</xs:complexType>
<xs:complexType name="DatedConnectionStructure">
<xs:sequence>
<xs:element name="ConnectionId" type="xs:NMTOKEN" minOccurs="0"/>
<xs:element name="Feeder" type="FeederDistributorStructure"/>
<xs:element name="Distributor" type="FeederDistributorStructure"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="FeederDistributorStructure">
<xs:sequence>
<xs:group ref="DatedJourneyRefGroup"/>
<xs:group ref="LineDirectionGroup"/>
<xs:element ref="OperatorRef" minOccurs="0"/>
<xs:element name="ConnectionLocation" type="CallAtStopStructure"/>
</xs:sequence>
</xs:complexType>
<xs:annotation>
<xs:documentation>== Connection Protection =======================================</xs:documentation>
</xs:annotation>
<xs:element name="ConnectionProtectionSubscriptionRequest" type="ConnectionProtectionSubscriptionRequestStructure"/>
<xs:complexType name="ConnectionProtectionSubscriptionRequestStructure">
<xs:complexContent>
<xs:extension base="siri:AbstractSubscriptionStructure">
<xs:sequence>
<xs:element name="ConnectionDemand" type="ConnectionDemandRequestStructure"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<!--== Delete Connection Demand - REQUEST ========================================-->
<xs:element name="ConnectionDemandDeleteRequest" type="ConnectionDemandDeleteRequestStructure">
<xs:annotation>
<xs:documentation>Delete a ConnectionDemand</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="ConnectionDemandDeleteRequestStructure">
<xs:sequence>
<xs:element name="RequestId" type="xs:NMTOKEN"/>
</xs:sequence>
</xs:complexType>
<xs:annotation>
<xs:documentation>== Delete Connection Demand Response =======================================</xs:documentation>
</xs:annotation>
<xs:element name="ConnectionDemandDeleteResponse" type="ConnectionDemandDeleteResponseStructure">
<xs:annotation>
<xs:documentation>Response for a request to delete a ConnectionDemand</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="ConnectionDemandDeleteResponseStructure">
<xs:sequence>
<xs:element name="ErrorMessage" type="ErrorMessageStructure" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:annotation>
<xs:documentation>== Connection Report =======================================</xs:documentation>
</xs:annotation>
<xs:element name="ConnectionReportRequest" type="ConnectionReportRequestStructure"/>
<xs:complexType name="ConnectionReportRequestStructure">
<xs:sequence>
<xs:element name="RequestId" type="xs:NMTOKEN"/>
<xs:element name="Connection" type="GeneralizedConnectionStructure"/>
<xs:element name="Succeeded" type="xs:boolean"/>
<xs:element name="Reason" type="InternationalTextStructure" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Extension" type="xs:anyType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:element name="ConnectionReportResponse" type="ConnectionReportResponseStructure"/>
<xs:complexType name="ConnectionReportResponseStructure">
<xs:sequence>
<xs:element name="ErrorMessage" type="ErrorMessageStructure" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:annotation>
<xs:documentation>== Connection Status Request Response =======================================</xs:documentation>
</xs:annotation>
<xs:element name="ConnectionStatusRequest" type="ConnectionStatusRequestStructure"/>
<xs:complexType name="ConnectionStatusRequestStructure">
<xs:sequence>
<xs:element name="RequestId" type="xs:NMTOKEN"/>
<xs:element name="Connection" type="GeneralizedConnectionStructure"/>
<xs:element name="Extension" type="xs:anyType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:element name="ConnectionStatusResponse" type="ConnectionStatusResponseStructure"/>
<xs:complexType name="ConnectionStatusResponseStructure">
<xs:sequence>
<xs:element name="ErrorMessage" type="ErrorMessageStructure" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="ConnectionStatus" type="ConnectionStatusStructure" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:annotation>
<xs:documentation>== Connection Status Subscription =======================================</xs:documentation>
</xs:annotation>
<xs:element name="ConnectionStatusNotification" type="ConnectionStatusNotificationStructure"/>
<xs:complexType name="ConnectionStatusNotificationStructure">
<xs:sequence>
<xs:element name="ConnectionStatus" type="ConnectionStatusStructure"/>
</xs:sequence>
</xs:complexType>
<xs:annotation>
<xs:documentation>== Connection Status ================================================</xs:documentation>
</xs:annotation>
<xs:simpleType name="ConnectionStatusEnumeration">
<xs:restriction base="xs:string">
<xs:enumeration value="unknown"/>
<xs:enumeration value="planned"/>
<xs:enumeration value="confirmed"/>
<xs:enumeration value="broken"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="ConnectionStatusStructure">
<xs:sequence>
<xs:element name="Connection" type="GeneralizedConnectionStructure"/>
<xs:element name="Status" type="ConnectionStatusEnumeration"/>
<xs:element name="Alternative" type="RecommendationStructure" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="RecommendationStructure">
<xs:sequence>
<xs:element name="RecommendationId" type="xs:NMTOKEN"/>
<xs:element name="Text" type="InternationalTextStructure" maxOccurs="unbounded"/>
<xs:element name="Type" type="RecommendationTypeEnumeration"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="RecommendationTypeEnumeration">
<xs:restriction base="xs:string">
<xs:enumeration value="NextService"/>
<xs:enumeration value="DifferentRoute"/>
<xs:enumeration value="Hotel"/>
<xs:enumeration value="Taxi"/>
<xs:enumeration value="Bus"/>
<xs:enumeration value="Helpdesk"/>
<xs:enumeration value="Hotline"/>
<xs:enumeration value="Driver"/>
<xs:enumeration value="Other"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>