nick-knowles / NeTEx-XML

Netex XML Schema
Other
10 stars 6 forks source link

Multiple AuthorityRef per ServiceJourney #15

Open skinkie opened 7 years ago

skinkie commented 7 years ago

A specific journey has two Authority's. Only one AuthorityRef is allowed, I would suggest to set maxOccurs as unbounded.

Aurige commented 7 years ago

What do you mean by 2 Authorities ? To me, that's usually one Authority and one Operator (or group of operators). Or is it a specific case you are facing ? You may have different Authority layers, but at the end, the "leaf" Authority is responsible for the line. If you need different roles (owner, planning, reservation, control, etc.) you have the responsability set and rôle assignment, but that's another story.

skinkie commented 7 years ago

Two authority's paying for the operation of a single line.

Aurige commented 7 years ago

Ok paying is one thing, but isn't one of them responsible for planning and management the operator(s) ? or did they create a special body for it (which then would be a Authority with 2 "parts", which can be described) ? Do they kind of "split" the line (like our RER A&B splited between RATP and SNCF...), in which case you have line sections (having specific branding and TransportOrganisation that can be an Authority). If you send me a description of this line, we will check how to solve this issue (and may be change AuthorityRef cardinality as you require).

skinkie commented 7 years ago

No, there are two separate organisation which are both in lead. A combined organisation exists for a different case where two others legally formed a new public body. For the case were one is responsible for a specific part of the line we assign such information using responsibilitySets.

 <Line version="201609" id="cxx:LN:G141">
              <keyList>
                <KeyValue>
                  <Key>VetagLineNumber</Key>
                  <Value>141</Value>
                </KeyValue>
                <KeyValue>
                  <Key>LinePlanningNumber</Key>
                  <Value>G141</Value>
                </KeyValue>
              </keyList>
              <Name>Kampen - Emmeloord - Urk</Name>
              <TransportMode>bus</TransportMode>
              <PublicCode>141</PublicCode>
              <AuthorityRef ref="cxx:Au:fle"></AuthorityRef>
              <AuthorityRef ref="cxx:Au:osl"></AuthorityRef>
              <Monitored>true</Monitored>
              <AccessibilityAssessment version="201609" id="cxx:AA:G141">
                <MobilityImpairedAccess>true</MobilityImpairedAccess>
              </AccessibilityAssessment>
            </Line>
skinkie commented 7 years ago
diff --git a/xsd/netex_part_1/part1_networkDescription/netex_line_version-v1.0.xsd b/xsd/netex_part_1/part1_networkDescription/netex_line_version-v1.0.xsd
index 0dc2f71..9ae8a5b 100644
--- a/xsd/netex_part_1/part1_networkDescription/netex_line_version-v1.0.xsd
+++ b/xsd/netex_part_1/part1_networkDescription/netex_line_version-v1.0.xsd
@@ -358,7 +358,7 @@ Rail transport, Roads and Road transport
                <xsd:annotation>
                    <xsd:documentation>Primary OPERATOR of LINE.</xsd:documentation>
                </xsd:annotation>
-               <xsd:element ref="AuthorityRef"/>
+               <xsd:element ref="AuthorityRef" maxOccurs="unbounded"/>
                <xsd:element ref="OperatorRef"/>
            </xsd:choice>
            <xsd:element name="additionalOperators" type="transportOrganisationRefs_RelStructure" minOccurs="0">