Skip to content

Commit 954b5a8

Browse files
committed
allowing no lines in exclusion and adding more factors
1 parent 99e44ae commit 954b5a8

File tree

2 files changed

+28
-10
lines changed

2 files changed

+28
-10
lines changed

examples/functions/newModes/NewModes-ChauffeuredServiceExample.xml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -514,13 +514,16 @@
514514
<BookingChargeType>none</BookingChargeType>
515515
</ServiceBookingArrangement>
516516
<ServiceCompetitiveCondition id="sba2" version="1">
517-
<serviceExclusions>
517+
<!--<serviceExclusions>
518518
<ServiceExclusion id="se1" version="1">
519519
<LineRef ref="classic_line" version="1"/>
520520
</ServiceExclusion>
521-
</serviceExclusions>
522-
<TemporalDistance>PT15M</TemporalDistance>
523-
<Distance>200</Distance>
521+
</serviceExclusions>-->
522+
<DistanceFromClassical>200</DistanceFromClassical>
523+
<TemporalDistanceFromClassical>PT15M</TemporalDistanceFromClassical>
524+
<PenaltyDrivingTimeFactor>1.5</PenaltyDrivingTimeFactor>
525+
<PenaltyTransferTimeFactor>1.2</PenaltyTransferTimeFactor>
526+
<WalkTimeFactor>1.1</WalkTimeFactor>
524527
</ServiceCompetitiveCondition>
525528
<ServiceEligibilityCondition id="sba3" version="1">
526529
<ResidentialQualification id="rq1" version="1">

xsd/netex_part_3/part3_fares/netex_extendedBookingArrangements_version.xsd

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,21 +114,36 @@ Rail transport, Roads and Road transport
114114
<xsd:sequence>
115115
<xsd:choice>
116116
<xsd:sequence>
117-
<xsd:group ref="RoutingConstraintInFrameGroup">
117+
<xsd:group ref="RoutingConstraintInFrameGroup" minOccurs="0">
118118
<xsd:annotation>
119-
<xsd:documentation>Restrictions in what the SERVICE is allowed to do in conncetion with other SERVICES.</xsd:documentation>
119+
<xsd:documentation>Restrictions in what the SERVICE is allowed to do in conncetion with other SERVICES. If not set, then the rules apply in general </xsd:documentation>
120120
</xsd:annotation>
121121
</xsd:group>
122-
<xsd:element name="TemporalDistance" type="xsd:duration" minOccurs="0">
122+
<xsd:element name="DistanceFromClassical" type="xsd:integer" minOccurs="0">
123123
<xsd:annotation>
124-
<xsd:documentation>Temporal distance to the SERVICE / transfer in the RoutingConstraint.</xsd:documentation>
124+
<xsd:documentation>Distance in metres to the line/service or classical public transport in general. Builds geometric exclusion zones.</xsd:documentation>
125125
</xsd:annotation>
126126
</xsd:element>
127-
<xsd:element name="Distance" type="xsd:integer" minOccurs="0">
127+
<xsd:element name="TemporalDistanceFromClassical" type="xsd:duration" minOccurs="0">
128128
<xsd:annotation>
129-
<xsd:documentation>Distance in metres to the line/service.</xsd:documentation>
129+
<xsd:documentation>Temporal distance to the SERVICE / transfer in the RoutingConstraint or classical publical transport in general.</xsd:documentation>
130130
</xsd:annotation>
131131
</xsd:element>
132+
<xsd:element name="PenaltyDrivingTimeFactor" type="xsd:decimal" default="1.0" minOccurs="0">
133+
<xsd:annotation>
134+
<xsd:documentation>Factor to multiply the classical public drive time with for the calculation of the dominance of the demand responsive traffic.</xsd:documentation>
135+
</xsd:annotation>
136+
</xsd:element>
137+
<xsd:element name="PenaltyTransferTimeFactor" type="xsd:decimal" default="1.0" minOccurs="0">
138+
<xsd:annotation>
139+
<xsd:documentation>Factor to multiply the classical public transfer times with for the calculation of the dominance of the demand responsive traffic.</xsd:documentation>
140+
</xsd:annotation>
141+
</xsd:element>
142+
<xsd:element name="WalkTimeFactor" type="xsd:decimal" default="1.0" minOccurs="0">
143+
<xsd:annotation>
144+
<xsd:documentation>Factor to multiply walk time for the classical public transport to calculate if the classical public transport still should dominate the demand responsive traffic.</xsd:documentation>
145+
</xsd:annotation>
146+
</xsd:element>
132147
</xsd:sequence>
133148
<xsd:sequence>
134149
<xsd:element name="InterchangeBetweenFlexibleServicesAllowed" type="xsd:boolean" default="false" minOccurs="0">

0 commit comments

Comments
 (0)