Skip to content

Commit

Permalink
enhance LIne and example
Browse files Browse the repository at this point in the history
  • Loading branch information
ue71603 committed Dec 13, 2023
1 parent 5069f6b commit fad91af
Show file tree
Hide file tree
Showing 2 changed files with 137 additions and 3 deletions.
109 changes: 109 additions & 0 deletions examples/functions/line/NeTEx_01_simple_line.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
<?xml version="1.0" encoding="UTF-8"?>
<PublicationDelivery xmlns="http://www.netex.org.uk/netex" xmlns:siri="http://www.siri.org.uk/siri" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0" xsi:schemaLocation="http://www.netex.org.uk/netex ../../../xsd/NeTEx_publication.xsd">
<PublicationTimestamp>2010-12-17T09:30:47.0Z</PublicationTimestamp>
<ParticipantRef>SYS001</ParticipantRef>
<!--- ======WHAT WAS REQUESTED ========== -->
<PublicationRequest version="1.0">
<RequestTimestamp>2010-12-17T09:30:47.0Z</RequestTimestamp>
<ParticipantRef>SYS002</ParticipantRef>
<topics>
<NetworkFrameTopic>
<selectionValidityConditions>
<AvailabilityCondition version="any" id="acs:CAL_02">
<FromDate>2010-11-01T00:00:00Z</FromDate>
</AvailabilityCondition>
</selectionValidityConditions>
<TimetableFrameRef ref="acs:TimetableFrameTIM_23_O">REQUEST</TimetableFrameRef>
</NetworkFrameTopic>
</topics>
</PublicationRequest>
<PublicationRefreshInterval>P1M</PublicationRefreshInterval>
<Description>Example of simple timetable frame with two journeys and service calendar</Description>
<!--- =============== RESULTS =========== -->
<dataObjects>
<CompositeFrame version="1.0" id="acs:ACS@Line_24">
<!--- ======= CODESPACEs======== -->
<!--- =======FRAME DEFAULTS======== -->
<FrameDefaults>
<DefaultCodespaceRef ref="mybus"/>
</FrameDefaults>
<frames>
<ServiceFrame version="1.0" id="mybus:ACS@Line_24@Network">
<Name>Stops for Winter timetable for route 24 </Name>
<codespaces>
<Codespace id="mybus">
<Xmlns>mybus</Xmlns>
<XmlnsUrl>http://www.mybuses.eu/stuff</XmlnsUrl>
<Description>My buses</Description>
</Codespace>
</codespaces>
<prerequisites>
<ResourceFrameRef version="1.0" ref="acs:ACS@Common_Resources"/>
</prerequisites>
<!--- =========LINEs=========== -->
<lines>
<Line version="any" id="mybus:LN_24">
<Name>Line 24 Alpha to Charley</Name>
<ShortName>Line 24</ShortName>
<TransportMode>bus</TransportMode>
<PublicCode>24</PublicCode>
<OperatorRef version="1.0" ref="acs:ACS"/>
<ExternalProductCategoryRef ref="elderlyTaxi"/>
<userProfiles>
<UserProfileRef ref="senior"/>
<UserProfileRef ref="prm"/>
</userProfiles>
<accessModes>
<AccessMode>foot</AccessMode>
<AccessMode>wheelchair</AccessMode>
</accessModes>
<PrivateLine>true</PrivateLine>
</Line>
<Line version="any" id="myski:LN_1">
<Name>Ski la Haute</Name>
<ShortName>Line 1</ShortName>
<TransportMode>cableway</TransportMode>
<TransportSubmode>
<TelecabinSubmode>dragLift</TelecabinSubmode>
</TransportSubmode>
<PublicCode>1</PublicCode>
<OperatorRef version="1.0" ref="acs:ACS"/>
<ExternalProductCategoryRef ref="ski"/>
<accessModes>
<AccessMode>ski</AccessMode>
<AccessMode>bicycle</AccessMode>
</accessModes>
<PrivateLine>true</PrivateLine>
</Line>
</lines>
</ServiceFrame>
<ResourceFrame version="1.0" id="acs:ACS@Common_Resources">
<!--- ======= CODESPACEs======== -->
<codespaces>
<Codespace id="acs">
<Xmlns>acs</Xmlns>
<XmlnsUrl>http://autocarssuperbe.fr</XmlnsUrl>
<Description>Service data </Description>
</Codespace>
</codespaces>
<!--- =======FRAME DEFAULTS======== -->
<FrameDefaults>
<DefaultCodespaceRef ref="acs"/>
</FrameDefaults>
<organisations>
<Operator version="1.0" id="acs:ACS">
<Name>Autocars superbe</Name>
<Locale>
<DefaultLanguage>fr</DefaultLanguage>
</Locale>
<ContactDetails>
<Phone>+33-1-675-9876</Phone>
<Url>http://autocarssuperbe.fr</Url>
</ContactDetails>
</Operator>
</organisations>
</ResourceFrame>
</frames>
</CompositeFrame>
</dataObjects>
</PublicationDelivery>
31 changes: 28 additions & 3 deletions xsd/netex_part_1/part1_networkDescription/netex_line_version.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<xsd:include schemaLocation="../../netex_framework/netex_genericFramework/netex_accessibility/netex_acsb_accessibility.xsd"/>
<xsd:include schemaLocation="../../netex_framework/netex_reusableComponents/netex_noticeAssignment_version.xsd"/>
<xsd:include schemaLocation="../../netex_framework/netex_reusableComponents/netex_serviceRestrictions_version.xsd"/>
<xsd:include schemaLocation="../../netex_part_3/part3_fares/netex_usageParameterEligibility_support.xsd"/>
<xsd:include schemaLocation="netex_line_support.xsd"/>
<xsd:include schemaLocation="netex_route_support.xsd"/>
<xsd:annotation>
Expand Down Expand Up @@ -69,8 +70,7 @@
<Requires>http://www.netex.org.uk/schemas/1.0/PATH/netex_prereqfile.xsd</Requires>
</Relation>
<Rights>Unclassified
<Copyright>CEN, Crown Copyright 2009-2020</Copyright>
</Rights>
<Copyright>CEN, Crown Copyright 2009-2020</Copyright></Rights>
<Source>
<ul>
<li>Derived from the Transmodel, VDV, TransXChange, NEPTUNE, BISON and Trident standards.</li>
Expand Down Expand Up @@ -498,6 +498,31 @@ Rail transport, Roads and Road transport
</xsd:element>
<xsd:element ref="TypeOfProductCategoryRef" minOccurs="0"/>
<xsd:element ref="TypeOfServiceRef" minOccurs="0"/>
<xsd:element name="userProfiles" minOccurs="0">
<xsd:annotation>
<xsd:documentation>USER PROFILEs that are allowed on this line. Omitted means all.</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="UserProfileRef" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="accessModes" minOccurs="0">
<xsd:annotation>
<xsd:documentation>ACCESS MODEs that are allowed on this line. Omitted means the "usual" ones on classic public transport.</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="AccessMode" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="PrivateLine" type="xsd:boolean" minOccurs="0" default="false">
<xsd:annotation>
<xsd:documentation>If true, then the Line is "private" and not open to the general public, but only selected groups.</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:group>
<xsd:group name="LinePresentationGroup">
Expand Down Expand Up @@ -1146,4 +1171,4 @@ Rail transport, Roads and Road transport
</xsd:complexContent>
</xsd:complexType>
<!-- ======================================================================= -->
</xsd:schema>
</xsd:schema>

0 comments on commit fad91af

Please sign in to comment.