Skip to content

Commit

Permalink
added VehicleFilterStructure and VehicleFilter (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
ue71603 authored Oct 11, 2022
1 parent df70e37 commit 31830cc
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 8 deletions.
22 changes: 22 additions & 0 deletions OJP/OJP_Common.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,28 @@
</xs:element>
</xs:sequence>
</xs:group>
<xs:complexType name="VehicleFilterStructure">
<xs:annotation>
<xs:documentation>Filter for Vehicles</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Exclude" type="xs:boolean" default="true" minOccurs="0">
<xs:annotation>
<xs:documentation>Whether to include or exclude given VehicleRefs and TRAIN NUMBERS in the list from the search. Default is exclude.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="VehicleRef" type="siri:VehicleRefStructure" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Reference to VEHICLE</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TrainNumber" type="xs:normalizedString" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>TRAIN NUMBERs</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:annotation>
<xs:documentation>========================================== Sharing Services ==========================================</xs:documentation>
</xs:annotation>
Expand Down
5 changes: 5 additions & 0 deletions OJP/OJP_Trips.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@
<xs:documentation>Private mobility options to include/exclude.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="VehicleFilter" type="VehicleFilterStructure" minOccurs="0">
<xs:annotation>
<xs:documentation>Filter for VEHICLE and TRAIN NUMBERs.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:group>
<xs:group name="TripPolicyGroup">
Expand Down
Loading

0 comments on commit 31830cc

Please sign in to comment.