-
Notifications
You must be signed in to change notification settings - Fork 52
Adding different types of restrictions between Services especially for DRT #959
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: v2.1-wip
Are you sure you want to change the base?
Changes from 12 commits
18b4e82
5180f7e
7677f91
b364c97
90f8baf
eb7a5e6
fa5e43b
aec6523
c10d8b1
022dea8
3bea5da
99e44ae
954b5a8
8608317
d0ffcb6
57d5c85
97be1c0
9948dd1
fa51d12
ee282b2
6ddac1a
2aa543b
27ecb7a
26bc251
f1a34ae
7be3898
10817c1
b0b6bd4
a80bd90
b078e28
4df3586
50a1fb0
9a0e0ab
6cbb0f2
05532d8
53ce0db
7ead8ec
7436690
afa91e4
893b956
f946aea
68e17b8
b91630b
dcb8e1f
e839d46
303ee61
7ad7965
e2c2c42
a9619e0
73e3cd2
f20b709
fff6118
d78400a
601ea05
0c4c0e9
cd97cce
77bbeaa
b5789b1
3e6acd5
070f573
9374976
c0818a2
753fe9b
ab42e68
beee3a7
5aec304
a0d018d
9128905
fb5f285
bf900aa
3245b76
a146208
23f7e1a
aded5f0
6d7463d
4ae6594
932d469
62a3e4e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
ue71603 marked this conversation as resolved.
|
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Adding "RoutingConstraintInFrameGroup" is like shooting sparrows with cannons. It adds huge complexity to the model where we originally only wanted to state "do not compete with regular PT operating within +-15 minutes".
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. but it works with cannons... Ok. I had this first but the restriction group works. You propose we do a simple element with a xs:duration then. I can live with that.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't know if I want to switch to something simple, if we can facilitate all variants with a "more difficult" proposal.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is now possible to do the simple way again as RoutingConstraintInFrameGroup is optional
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. reduce to max, we can do in the profile |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,206 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <xsd:schema xmlns="http://www.netex.org.uk/netex" xmlns:netex="http://www.netex.org.uk/netex" xmlns:siri="http://www.siri.org.uk/siri" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.netex.org.uk/netex" elementFormDefault="qualified" attributeFormDefault="unqualified" version="2.0" id="netex_serviceRestrictions_version"> | ||
| <xsd:include schemaLocation="../../netex_framework/netex_responsibility/netex_typeOfValue_version.xsd"/> | ||
| <xsd:include schemaLocation="../../netex_framework/netex_genericFramework/netex_organisation_support.xsd"/> | ||
| <xsd:include schemaLocation="../../netex_framework/netex_reusableComponents/netex_serviceRestrictions_support.xsd"/> | ||
| <xsd:include schemaLocation="../../netex_framework/netex_reusableComponents/netex_serviceRestrictions_version.xsd"/> | ||
| <xsd:include schemaLocation="../../netex_part_1/part1_networkDescription/netex_line_support.xsd"/> | ||
| <xsd:include schemaLocation="../../netex_part_1/part1_tacticalPlanning/netex_routingConstraint_version.xsd"/> | ||
| <xsd:include schemaLocation="netex_usageParameterEligibility_version.xsd"/> | ||
| <!-- ======================================================================= --> | ||
| <xsd:annotation> | ||
| <xsd:appinfo> | ||
| <Metadata xmlns="http://www.govtalk.gov.uk/CM/gms-xs"> | ||
| <Aggregation>main schema</Aggregation> | ||
| <Audience>e-service developers</Audience> | ||
| <Contributor>V1.0 Matthias Günter</Contributor> | ||
| <Contributor>Nicholas Knowles</Contributor> | ||
| <Coverage>Europe</Coverage> | ||
| <Creator>First drafted for NeTEx version 1.0 CEN TC278 WG3 SG9 Editor Nicholas Knowles.</Creator> | ||
| <Date> | ||
| <Created>2010-09-04</Created> | ||
| </Date> | ||
| <Date><Modified>2025-09-24</Modified> Created and put in the things needed from part 1 and part 3 | ||
| </Date> | ||
| <Description> | ||
| <p>NeTEx is a European CEN standard for the exchange of Public Transport data including timetables.</p> | ||
| <p>This sub-schema describes the Common Service Restriction Types.</p> | ||
| </Description> | ||
| <Format> | ||
| <MediaType>text/xml</MediaType> | ||
| <Syntax>http://www.w3.org/2001/XMLSchema</Syntax> | ||
| <Description>XML schema, W3C Recommendation 2001</Description> | ||
| </Format> | ||
| <Identifier>{http://www.netex.org.uk/schemas/1.0/xsd/netex_framework/netex_reusableComponents}netex_serviceRestrictions_version.xsd</Identifier> | ||
| <Language>[ISO 639-2/B] ENG</Language> | ||
| <Publisher>Kizoom Software Ltd, 16 High Holborn, London WC1V 6BX </Publisher> | ||
| <Relation> | ||
| <Requires>http://www.netex.org.uk/schemas/1.0/PATH/netex_prereqfile.xsd</Requires> | ||
| </Relation> | ||
| <Rights>Unclassified | ||
| <Copyright>CEN, Crown Copyright 2009-2023</Copyright> | ||
| </Rights> | ||
| <Source> | ||
| <ul> | ||
| <li>Derived from the Transmodel, VDV, TransXChange, NEPTUNE, BISON and Trident standards.</li> | ||
| </ul> | ||
| </Source> | ||
| <Status>Version 1.0</Status> | ||
| <Subject> | ||
| <Category>Arts, recreation and travel, Tourism, Travel (tourism), Transport, | ||
| Air transport, Airports, | ||
| Ports and maritime transport, Ferries (marine), | ||
| Public transport, Bus services, Coach services, Bus stops and stations, | ||
| Rail transport, Railway stations and track, Train services, Underground trains, | ||
| Business and industry, Transport, Air transport , Ports and maritime transport, Public transport, | ||
| Rail transport, Roads and Road transport | ||
| </Category> | ||
| <Project>CEN TC278 WG3 SG9.</Project> | ||
| </Subject> | ||
| <Title>NeTEx Travel Right Value Types.</Title> | ||
| <Type>Standard</Type> | ||
| </Metadata> | ||
| </xsd:appinfo> | ||
| <xsd:documentation>NeTEx Service Restrictions.</xsd:documentation> | ||
| </xsd:annotation> | ||
| <!-- ===== SERVICE COMPETITIVE CONDITION ===================================== --> | ||
| <xsd:element name="ServiceCompetitiveCondition" substitutionGroup="BookingArrangement_Dummy"> | ||
| <xsd:annotation> | ||
| <xsd:documentation>Type for a SERVICE COMPETITIVE CONDITION.</xsd:documentation> | ||
| </xsd:annotation> | ||
| <xsd:complexType> | ||
| <xsd:complexContent> | ||
| <xsd:restriction base="ServiceCompetitiveCondition_VersionStructure"> | ||
| <xsd:sequence> | ||
| <xsd:sequence> | ||
| <xsd:group ref="EntityInVersionGroup" minOccurs="0"/> | ||
| </xsd:sequence> | ||
| <xsd:sequence> | ||
| <xsd:group ref="DataManagedObjectGroup"/> | ||
| </xsd:sequence> | ||
| <xsd:sequence> | ||
| <xsd:group ref="ServiceCompetitiveConditionGroup"> | ||
| <xsd:annotation> | ||
| <xsd:documentation>Details for ServiceCompetitiveCondition.</xsd:documentation> | ||
| </xsd:annotation> | ||
| </xsd:group> | ||
| </xsd:sequence> | ||
| </xsd:sequence> | ||
| <xsd:attribute name="id" type="BookingArrangementIdType" use="required"/> | ||
| </xsd:restriction> | ||
| </xsd:complexContent> | ||
| </xsd:complexType> | ||
| </xsd:element> | ||
| <xsd:complexType name="ServiceCompetitiveCondition_VersionStructure"> | ||
| <xsd:annotation> | ||
| <xsd:documentation>Version of a SERVICE COMPETITIVE CONDITION.</xsd:documentation> | ||
| </xsd:annotation> | ||
| <xsd:complexContent> | ||
| <xsd:extension base="BookingArrangement_VersionStructure"> | ||
| <xsd:sequence> | ||
| <xsd:group ref="ServiceCompetitiveConditionGroup"> | ||
| <xsd:annotation> | ||
| <xsd:documentation>Details for ServiceCompetitiveCondition.</xsd:documentation> | ||
| </xsd:annotation> | ||
| </xsd:group> | ||
| </xsd:sequence> | ||
| </xsd:extension> | ||
| </xsd:complexContent> | ||
| </xsd:complexType> | ||
| <xsd:group name="ServiceCompetitiveConditionGroup"> | ||
| <xsd:annotation> | ||
| <xsd:documentation>Elements for SERVICE COMPETITIVE CONDITION.</xsd:documentation> | ||
| </xsd:annotation> | ||
| <xsd:sequence> | ||
| <xsd:choice> | ||
| <xsd:sequence> | ||
| <xsd:group ref="RoutingConstraintInFrameGroup"> | ||
| <xsd:annotation> | ||
| <xsd:documentation>Restrictions in what the SERVICE is allowed to do in conncetion with other SERVICES.</xsd:documentation> | ||
| </xsd:annotation> | ||
| </xsd:group> | ||
| <xsd:element name="TemporalDistance" type="xsd:duration" minOccurs="0"> | ||
| <xsd:annotation> | ||
| <xsd:documentation>Temporal distance to the SERVICE / transfer in the RoutingConstraint.</xsd:documentation> | ||
| </xsd:annotation> | ||
| </xsd:element> | ||
| <xsd:element name="Distance" type="xsd:integer" minOccurs="0"> | ||
| <xsd:annotation> | ||
| <xsd:documentation>Distance in metres to the line/service.</xsd:documentation> | ||
| </xsd:annotation> | ||
| </xsd:element> | ||
| </xsd:sequence> | ||
| <xsd:sequence> | ||
| <xsd:element name="InterchangeBetweenFlexibleServicesAllowed" type="xsd:boolean" default="false" minOccurs="0"> | ||
| <xsd:annotation> | ||
| <xsd:documentation>Interchange between different flexible services is allowed.</xsd:documentation> | ||
| </xsd:annotation> | ||
| </xsd:element> | ||
| <xsd:element name="InterchangeWithConventionalServicesAllowed" type="xsd:boolean" default="false" minOccurs="0"> | ||
| <xsd:annotation> | ||
| <xsd:documentation>Interchange between the flexible service and conventional services is allowed.</xsd:documentation> | ||
| </xsd:annotation> | ||
| </xsd:element> | ||
| </xsd:sequence> | ||
| </xsd:choice> | ||
| </xsd:sequence> | ||
| </xsd:group> | ||
| <!-- ===== SERVICE COMPETITIVE CONDITION ===================================== --> | ||
| <xsd:element name="ServiceEligibilityCondition" substitutionGroup="BookingArrangement_Dummy"> | ||
| <xsd:annotation> | ||
| <xsd:documentation>Type for a SERVICE ELIGIBLITY CONDITION.</xsd:documentation> | ||
| </xsd:annotation> | ||
| <xsd:complexType> | ||
| <xsd:complexContent> | ||
| <xsd:restriction base="ServiceEligiblityCondition_VersionStructure"> | ||
| <xsd:sequence> | ||
| <xsd:sequence> | ||
| <xsd:group ref="EntityInVersionGroup" minOccurs="0"/> | ||
| </xsd:sequence> | ||
| <xsd:sequence> | ||
| <xsd:group ref="DataManagedObjectGroup"/> | ||
| </xsd:sequence> | ||
| <xsd:sequence> | ||
| <xsd:group ref="ServiceEligibilityConditionGroup"> | ||
| <xsd:annotation> | ||
| <xsd:documentation>Details for ServiceEligbilityCondition</xsd:documentation> | ||
|
ue71603 marked this conversation as resolved.
Outdated
|
||
| </xsd:annotation> | ||
| </xsd:group> | ||
| </xsd:sequence> | ||
| </xsd:sequence> | ||
| <xsd:attribute name="id" type="BookingArrangementIdType" use="required"/> | ||
| </xsd:restriction> | ||
| </xsd:complexContent> | ||
| </xsd:complexType> | ||
| </xsd:element> | ||
| <xsd:complexType name="ServiceEligiblityCondition_VersionStructure"> | ||
| <xsd:annotation> | ||
| <xsd:documentation>Version of a SERVICE ELIGIBILITY CONDITION.</xsd:documentation> | ||
| </xsd:annotation> | ||
| <xsd:complexContent> | ||
| <xsd:extension base="BookingArrangement_VersionStructure"> | ||
| <xsd:sequence> | ||
| <xsd:group ref="ServiceEligibilityConditionGroup"> | ||
| <xsd:annotation> | ||
| <xsd:documentation>Details for ServiceEligibilityCondition.</xsd:documentation> | ||
| </xsd:annotation> | ||
| </xsd:group> | ||
| </xsd:sequence> | ||
| </xsd:extension> | ||
| </xsd:complexContent> | ||
| </xsd:complexType> | ||
| <xsd:group name="ServiceEligibilityConditionGroup"> | ||
| <xsd:annotation> | ||
| <xsd:documentation>Elements for SERVICE ELIGIBILITY CONDITION.</xsd:documentation> | ||
| </xsd:annotation> | ||
| <xsd:sequence> | ||
| <xsd:choice> | ||
| <xsd:element ref="UserProfile"/> | ||
| <xsd:element ref="CommercialProfile"/> | ||
| <xsd:element ref="ResidentialQualification"/> | ||
| <xsd:element ref="CompanionProfile"/> | ||
| </xsd:choice> | ||
| </xsd:sequence> | ||
| </xsd:group> | ||
| <!-- ======================================================================= --> | ||
| </xsd:schema> | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not think it is a good idea that as a data producer you have to enumerate all regular services ("LINE") to state the competition rules. The data producer will not have these in their system, unless they are a data integration system. Even if they do have all LINEs, the process for determining the competing LINEs is not straight forward. Taxi-like DRT will usually be determined by a geographical area and by operating days and times. So the system would need to determine the stops in the area, then determine the LINEs serving the stops, and then find out if there are any journeys during the operating time of the DRT. I suggest that it is not necessary to state the competing regular LINEs, the journey planner can work that out at run time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@duexw counter-proposal? how would you state them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is now optional. Also I added some more points.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that is what I had in mind - If you do not state any LINEs, it means that the competitive rule applies to all LINEs.