Skip to content

Commit

Permalink
Avoid confusion about TripSummary (#109)
Browse files Browse the repository at this point in the history
Removed AcceptDeferredDelivery from TripPolicyFilterGroup. Instead added TripSummaryOnly into TripContentFilterGroup as the parameter to control whether complete trips or only trip summaries shall be delivered. There is no relation to a deferred delivery anymore.
Removed IncludeLegs from MultiPointTripContentFilterGroup, as legs are mandatory within trip results. Removed MultiPointTripContentFilterGroup, as there is no need have different content filters for MultiPointTrip or Trip respectively.
Adapted annotation for TripSummary in TripResultStructure.
  • Loading branch information
pvgrumbkow authored Nov 11, 2020
1 parent f537461 commit 23c2d68
Showing 1 changed file with 7 additions and 20 deletions.
27 changes: 7 additions & 20 deletions OJP_Trips.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,6 @@
<xs:documentation>For each mode in this list a separate monomodal trip shall be found - in addition to inter-modal solutions.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="AcceptDeferredDelivery" type="xs:boolean" default="false" minOccurs="0">
<xs:annotation>
<xs:documentation>If yes, then with the first response a summary of the trip solution(s) is enough. Full trip information is sent actively by the server to the Address stated in RequestorEndpointGroup. Default is false.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:group>
<xs:group name="TripMobilityFilterGroup">
Expand Down Expand Up @@ -164,6 +159,11 @@
<xs:documentation>Whether the result should include operating day information - as encoded bit string and in natural language.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TripSummaryOnly" type="xs:boolean" default="false" minOccurs="0">
<xs:annotation>
<xs:documentation>If true, then the response will contain only summaries of the found trips. Default is false.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:group>
<xs:simpleType name="OptimisationMethodEnumeration">
Expand Down Expand Up @@ -245,7 +245,7 @@
</xs:element>
<xs:element name="TripSummary" type="TripSummaryStructure">
<xs:annotation>
<xs:documentation>Summary on trip. Only if requestor accepts deferrred delivery of trip details.</xs:documentation>
<xs:documentation>Summary on trip. Only if requestor set TripSummaryOnly in request.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
Expand Down Expand Up @@ -827,7 +827,7 @@
<xs:group ref="TripDataFilterGroup"/>
<xs:group ref="TripMobilityFilterGroup"/>
<xs:group ref="MultiPointTripPolicyGroup"/>
<xs:group ref="MultiPointTripContentFilterGroup"/>
<xs:group ref="TripContentFilterGroup"/>
<xs:element name="FareParam" type="FareParamStructure" minOccurs="0"/>
<xs:element name="Extension" type="xs:anyType" minOccurs="0"/>
</xs:sequence>
Expand Down Expand Up @@ -865,19 +865,6 @@
<xs:enumeration value="eachDestination"/>
</xs:restriction>
</xs:simpleType>
<xs:group name="MultiPointTripContentFilterGroup">
<xs:annotation>
<xs:documentation>Parameters that control the level of detail of the trip results.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:group ref="TripContentFilterGroup"/>
<xs:element name="IncludeLegs" type="xs:boolean" default="false" minOccurs="0">
<xs:annotation>
<xs:documentation>Whether the result should include leg information. Default is false.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:group>
<xs:group name="MultiPointTripResponseGroup">
<xs:annotation>
<xs:documentation>Multi-point trip response structure.</xs:documentation>
Expand Down

0 comments on commit 23c2d68

Please sign in to comment.