forked from VDVde/TRIAS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTrias_IndividualTrips.xsd
206 lines (206 loc) · 9.29 KB
/
Trias_IndividualTrips.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
<?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_Trips.xsd"/>
<xs:annotation>
<xs:documentation>================= Individual Route Service =====================</xs:documentation>
</xs:annotation>
<xs:element name="IndividualRouteRequest" type="IndividualRouteRequestStructure"/>
<xs:complexType name="IndividualRouteRequestStructure">
<xs:sequence>
<xs:element name="Origin" type="IndividualRouteLocationContextStructure"/>
<xs:element name="Destination" type="IndividualRouteLocationContextStructure"/>
<xs:element name="Via" type="ViaStructure" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Mode" type="IndividualTransportOptionsStructure" maxOccurs="unbounded"/>
<xs:element name="Params" type="IndividualTripParamStructure" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:annotation>
<xs:documentation>====================================================</xs:documentation>
</xs:annotation>
<xs:complexType name="IndividualRouteRefineRequestStructure">
<xs:annotation>
<xs:documentation>IndividualRouteRefine request structure.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="RefineParams" type="IndividualTripRefineParamStructure" minOccurs="0"/>
<xs:element name="IndividualRouteResult" type="RouteResultStructure"/>
<xs:element name="IndividualRouteResponseContext" 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:annotation>
<xs:documentation>====================================================</xs:documentation>
</xs:annotation>
<xs:element name="IndividualRouteResponse" type="IndividualRouteResponseStructure"/>
<xs:complexType name="IndividualRouteResponseStructure">
<xs:sequence>
<xs:element name="ErrorMessage" type="ErrorMessageStructure" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="IndividualRouteResponseContext" type="TripResponseContextStructure" minOccurs="0"/>
<xs:element name="RouteResult" type="RouteResultStructure" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:annotation>
<xs:documentation>====================================================</xs:documentation>
</xs:annotation>
<xs:element name="IndividualRouteRefineResponse" type="IndividualRouteRefineResponseStructure">
<xs:annotation>
<xs:documentation>IndividualRouteRefine response element</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="IndividualRouteRefineResponseStructure">
<xs:annotation>
<xs:documentation>Context to hold objects, which are referenced within the response.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="ErrorMessage" type="ErrorMessageStructure" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="IndividualRouteResponseContext" 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="IndividualRouteResult" type="RouteResultStructure" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:annotation>
<xs:documentation>====================== Request sub structures ===========================</xs:documentation>
</xs:annotation>
<xs:complexType name="IndividualTripParamStructure">
<xs:annotation>
<xs:documentation>Individual trip request parameter structure</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:group ref="IndividualTripMobilityFilterGroup"/>
<xs:group ref="IndividualTripPolicyGroup"/>
<xs:group ref="IndividualTripContentFilterGroup"/>
<xs:element name="Extension" type="xs:anyType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="IndividualTripRefineParamStructure">
<xs:annotation>
<xs:documentation>Individual trip refine request parameter structure</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:group ref="RefineOptionsGroup"/>
<xs:group ref="IndividualTripContentFilterGroup"/>
<xs:element name="Extension" type="xs:anyType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:group name="IndividualTripPolicyGroup">
<xs:sequence>
<xs:group ref="BaseTripPolicyGroup"/>
<xs:element name="AlgorithmType" type="IndividualTripsAlgorithmTypeEnumeration" minOccurs="0">
<xs:annotation>
<xs:documentation>Type of algorithm to be used. If not given, "optimal" is the default, which means, that the router uses it's own measures for the optimal route.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="BanMotorways" type="xs:boolean" default="false" minOccurs="0">
<xs:annotation>
<xs:documentation>Disallow motorways.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="BanTollRoads" type="xs:boolean" default="false" minOccurs="0">
<xs:annotation>
<xs:documentation>Disallow toll roads.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="BanFerries" type="xs:boolean" default="false" minOccurs="0">
<xs:annotation>
<xs:documentation>Disallow ferries.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="BanTunnels" type="xs:boolean" default="false" minOccurs="0">
<xs:annotation>
<xs:documentation>Disallow tunnels (not underpasses).</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="BanBridges" type="xs:boolean" default="false" minOccurs="0">
<xs:annotation>
<xs:documentation>Disallow larger bridges (not overpasses).</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="AllowUnpavedRoads" type="xs:boolean" default="false" minOccurs="0">
<xs:annotation>
<xs:documentation>Allow unpaved roads.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:group>
<xs:simpleType name="IndividualTripsAlgorithmTypeEnumeration">
<xs:restriction base="xs:string">
<xs:enumeration value="fastest"/>
<xs:enumeration value="shortest"/>
<xs:enumeration value="beautiful"/>
<xs:enumeration value="optimal"/>
<xs:enumeration value="economic"/>
</xs:restriction>
</xs:simpleType>
<xs:group name="IndividualTripMobilityFilterGroup">
<xs:sequence>
<xs:group ref="BaseTripMobilityFilterGroup"/>
</xs:sequence>
</xs:group>
<xs:group name="IndividualTripContentFilterGroup">
<xs:sequence>
<xs:group ref="BaseTripContentFilterGroup"/>
</xs:sequence>
</xs:group>
<xs:complexType name="IndividualRouteLocationContextStructure">
<xs:sequence>
<xs:element name="LocationRef" type="LocationRefStructure"/>
<xs:element name="DepArrTime" type="xs:dateTime" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:annotation>
<xs:documentation>====================== Response sub structures ==========================</xs:documentation>
</xs:annotation>
<xs:complexType name="RouteStructure">
<xs:sequence>
<xs:element name="RouteId" type="xs:NMTOKEN">
<xs:annotation>
<xs:documentation>Id of this individual route for referencing purposes. Unique within individual route response.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Duration" type="xs:duration">
<xs:annotation>
<xs:documentation>Overall duration of the route.</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="Distance" type="DistanceType" minOccurs="0">
<xs:annotation>
<xs:documentation>Route distance.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="RouteLeg" type="ContinuousLegStructure" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>There must be exactly one route leg more than via locations were given in the request.</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="RouteResultStructure">
<xs:sequence>
<xs:element name="ResultId" type="xs:NMTOKEN"/>
<xs:element name="ErrorMessage" type="ErrorMessageStructure" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Route" type="RouteStructure"/>
</xs:sequence>
</xs:complexType>
</xs:schema>