Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The data is delivered in a zip file that consists of the following required files:

  • _shared_data.xml - A prefix is allowed in the file name as long as it matches “.*_shared _data.xml”.

  • _stops.xml - A prefix is allowed in the file name as long as it matches “.*_stops.xml”.

  • line_{Line.Number}_{Line.Id}.xml - One file per line. Files must contain “line” (case-insensitive) and end with “.xml”, but otherwise they may be named anything.

The files are described below.

Changelog of this documentation

2024-02-12 - Added the two fields JourneyPart.StartTimeDayOffset and JourneyPart.EndTimeDayOffset with explanations.

NeTEx version requirements

...

In case the version requirements would change in a way that your Netex files no longer validate against the new version, Samtrafiken will contact you before the change happens.

Codespace, ids and versioning

  • The id attribute must follow the pattern: [codespace]:[type]:[id] or [countrycode]:[codespace]:[type]:[id] . Examples: 253:Authority:9010005000000000 or SE:253:Authority:9010005000000000.
    Be consistent with your choice throughout all of the files.

  • All ids must be unique across all files in a single NeTEx delivery for a given version.

  • The version must be a positive whole number (integer) or “any”.

  • The version number must be increased in such a way that the latest version of the object always has the highest number.

  • We recommend using the pattern YYYYMMDDHHmmSS as version if your non-netex objects are already version controlled with "exists from"-dates.

  • The Xmlns value of the Codespace-element is provided by Samtrafiken.

ServiceCalendar and DayTypeAssignment

You must use the <Date> or the <OperatingPeriodRef> element in the DayTypeAssignment when specifying operating days.
We do not support the use of the OperatingDayRef element.
Example:

Code Block
languagexml
<DayTypeAssignment order="1" version="any" id="SE:253:DayTypeAssignment:1-20191125">
    <!-- Choice OperatingDayRef is not allowed -->
    <Date>2019-11-25</Date>
    <DayTypeRef ref="SE:253:DayType:1" version="any"/>
</DayTypeAssignment>
<DayTypeAssignment order="1" version="any" id="SE:253:DayTypeAssignment:2-20191101">
    <!-- Choice OperatingDayRef is not allowed -->
    <OperatingPeriodRef ref="SE:253:OperatingPeriod:Cal20192786-MoWeThFr" version="any"/>
    <DayTypeRef ref="SE:253:DayType:1" version="any"/>
</DayTypeAssignment>

_shared_data.xml

...

breakoutModefull-width
languagexml

...

Note: An OperatingPeriod is valid up to the datetime specified in the ToDate, but NOT including that time, see the example below:

Code Block
<OperatingPeriod version="1.0any" encodingid="UTF-8" standalone="yes"?>
<PublicationDelivery xmlns="http://www.netex.org.uk/netex" xmlns:ns2="http://www.opengis.net/gml/3.2">
    <PublicationTimestamp>2019-11-27T12:50:21</PublicationTimestamp> <!-- Required Timestamp of export. -->
    <ParticipantRef>SAM</ParticipantRef> <!-- Required Codespace for data submitter, participant identifier. We currently don't use this value for anything, so it's not important for our import. -->
    <dataObjects>
        <CompositeFrame created="2019-11-27T12:50:21" version="20191127125021" id="SE:253:CompositeFrame:1">
  SE:253:OperatingPeriod:221108221209">
  <FromDate>2022-11-08T00:00:00</FromDate>
  <ToDate>2022-12-10T00:00:00</ToDate>
  <!-- N.B: The ToDate is actually the time when the OperatingPeriod stops being valid.
       This means that the period is valid up to this time, but NOT including this time. 
       So the last possible trip would depart on 2022-12-09 23:59:59 -->
</OperatingPeriod>

JourneyParts and Timingpoints

ServiceFacilities or TrainNumbers can be specified for parts of a journey using JourneyParts, and are defined by two StopPoints and their passing times. See the XML file below for an example.

TimingPoints (where a vehicle does not stop, but is merely passing by at a specified time) are ignored by Samtrafiken. If a JourneyPart begins or ends at a PointInJourneyPattern which is a reference to a TimingPoint, then that JourneyPart will be ignored completely by Samtrafiken.

ServiceJourney.PublicCode

This element will be used as the announced journey code for the ServiceJourney. This element is optional but if not present there must be either a train number for trains or Line.PublicCode for other public transports available.

Notable requirements on some input values

A few fields have strict requirements on what values that are allowed in them. These requirements are necessary in order for Samtrafiken to be able to use the delivered data.

The most important fields are listed here for clarity. The examples for each file also have comments on fields that have special requirements.

To see requirements for ServiceFacilities, click here.

Mandatory fields with special requirements

Element

Requirement

Used for

Comment

StopPlace.Name

Required

Max 50 characters

Used as StopArea.name/StopPoint.name in Samtrafiken's systems.

StopPlace.PrivateCode

Must be either

  • a number between 1 and 999998

  • a 9-digit rikshållplatsnumber, such as 740000001

Used as StopArea.Number in Samtrafiken's systems.

If PrivateCode is not supplied, then the last part of the StopPlace.id will be tried instead. For example if the StopPlace.PrivateCode is empty and the StopPlace.id is: SE:253:StopPlace:174711, then 174711 will be used as StopArea.Number.

The requirement (between 1-999998) remains the same.

When delivering stops using rikshållplatsnumbers, all numbers should already exist as a rikshållplats.

Line.PrivateCode

Must be a number between 1 and 9998

Used as Line.Number in Samtrafiken's systems.

This should be unique in combination with the lines TransportOrganisation in the entire dataset.

ServiceJourney.trainNumbers

Required if the ServiceJourney.TransportMode is of type rail.

Max 5 characters

Used as DatedVehicleJourney.AnnouncedTrainNumber in Samtrafiken's systems.

The train number must be specified if the ServiceJourney.TransportMode is of type rail.

Optional fields with special requirements

Element

Requirement

Used for

Comment

Quay.Name

Optional

Max 50 characters

Used as StopPoint.name in Samtrafikens systems

StopPlace.ShortName

Quay.ShortName

Optional

Max 16 characters

Used as StopArea.ShortName/StopPoint.ShortName in Samtrafikens systems

StopPlace.AlternativeName.Abbreviation

Optional

Max 8 characters

Quay.PublicCode

Optional

Max 4 characters

Public facing stop point designation. When not present, the local number (auto-increment per StopPlace) is used instead.

Automatically shortened to 4 characters if too long.

For train operators: If the quay is not known (yet), use * as designation.

DestinationDisplay.PublicCode

Optional

Max 8 characters

Usually the same as Line.PublicCode

DestinationDisplay.FrontText

Optional

Max 50 characters

ServiceJourney.PublicCode

Optional

Max 5 characters

Public facing journey code. When not present, the first announced train number (for trains) or Line.PublicCode is used.

Import will fail if ServiceJourney.PublicCode is present but empty

_shared_data.xml

This is an example of the _shared_data.xml file with instructions on how the different fields and elements are expected to be used.

Code Block
breakoutModefull-width
languagexml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<PublicationDelivery xmlns="http://www.netex.org.uk/netex" xmlns:ns2="http://www.opengis.net/gml/3.2">
    <PublicationTimestamp>2019-11-27T12:50:21</PublicationTimestamp> <!-- Required Timestamp of export. -->
    <ParticipantRef>SAM</ParticipantRef> <!-- Required Codespace for data submitter, participant identifier. We currently don't use this value for anything, so it's not important for our import. -->
    <dataObjects>
        <CompositeFrame created="2019-11-27T12:50:21" version="20191127125021" id="SE:253:CompositeFrame:1">
            <ValidBetween>
                <FromDate>2002-01-01T00:00:00</FromDate>
                <!-- ToDate is omitted since if there are elements within the frame that have indefinite validity, the frame must also have that. -->
            </ValidBetween>
            <codespaces>
                <Codespace id="253"> <!-- id is the same as Xmlns below -->
                    <Xmlns>253</Xmlns> <!-- From Samtrafiken's registry of producer numbers, provided by Samtrafiken -->
                    <XmlnsUrl>http://www.samtrafiken.se/ns/Östgötatrafiken</XmlnsUrl> <!-- "Östgötatrafiken" is based on data source and ensures that the url is unique, but is otherwise ignored during import -->
                </Codespace>
            </codespaces>
            <!-- Recommended defaults used to define common values. -->
            <FrameDefaults>
                <DefaultLocale>
                    <TimeZone>Europe/Stockholm</TimeZone>
                    <DefaultLanguage>se</DefaultLanguage>
                </DefaultLocale>
                <DefaultLocationSystem>4326</DefaultLocationSystem> <!-- All coordinates are EPSG:4326 WGS84 -->
            </FrameDefaults>
            <frames>
                <ResourceFrame version="20191127125021" id="SE:253:ResourceFrame:1">
                    <organisations>
                        <Authority version="20131206" id="SE:253:Authority:9010005000000000">
                            <CompanyNumber>5560388950</CompanyNumber> <!-- Required -->
                            <Name>Östgötatrafiken</Name> <!-- Required -->
                            <LegalName>Östgötatrafiken</LegalName> <!-- Required -->
                            <OrganisationType>authority</OrganisationType> <!-- Always "authority" -->
                        </Authority>
                        <!-- More Authority elements -->
                        <Operator version="20131211" id="SE:253:Operator:9013005918200000">
                            <Name>eBuss Motala</Name> <!-- Required -->
                            <LegalName>eBuss i Sverige AB</LegalName> <!-- Required -->
                            <OrganisationType>operator</OrganisationType> <!-- Always "operator" -->
                        </Operator>
                        <!-- More Operator elements -->
                    </organisations>
                </ResourceFrame>
                <ServiceFrame version="20191127125021" id="SE:253:ServiceFrame:1">
                    <!-- Network elements are refered to from Line elements (in the line-files) and provide common information of the Lines, like  their Authority. -->
                    <Network version="20131206" id="SE:253:Network:9010005000000000">
                        <Name>Östgötatrafiken</Name> <!-- Required -->
                        <AuthorityRef ref="SE:253:Authority:9010005000000000" version="20131206"/>
                    </Network>
                    <additionalNetworks>
                        <!-- More Network elements -->
                    </additionalNetworks>

                    <routePoints>
                        <!-- A point that is a stop place in a route. -->
                        <RoutePoint version="20190426" id="SE:253:RoutePoint:9022005000001001">
                            <projections>
                                <PointProjection version="20190426" id="SE:253:PointProjection:9022005000001001">
                                    <ProjectedPointRef ref="SE:253:ScheduledStopPoint:9022005000001001" version="20190426"/>
                                </PointProjection>
                            </projections>
                        </RoutePoint>
                        <RoutePoint version="20190426" id="SE:253:RoutePoint:9022005000050016">
                            <projections>
                                <PointProjection version="20190426" id="SE:253:PointProjection:9022005000001002">
                                    <ProjectedPointRef ref="SE:253:ScheduledStopPoint:9022005000001001" version="20190426"/>
                                </PointProjection>
                            </projections>
                        </RoutePoint>
                        <!-- More RoutePoint elements -->
                    </routePoints>
                    <destinationDisplays>
                        <!-- The displayed destination for a vehicle, commonly above the front window or onboard information screens, describing the vehicles final (or intermediary) destination. -->
                        <!-- -->
                        <DestinationDisplay version="any" id="SE:253:DestinationDisplay:via_55700000037211691">
                            <FrontText>Västerlösa</FrontText> <!-- Required, max 50 characters -->
                            <PublicCode>573</PublicCode> <!-- Optional Line Designation/number, max 8 characters -->
                            <!-- SideText is ignored -->
                        </DestinationDisplay>
                        <DestinationDisplay version="any" id="SE:253:DestinationDisplay:55700000037211691">
                            <FrontText>Malmslätt</FrontText>
                            <PublicCode>573</PublicCode>
                            <vias>
                                <!-- max 1 via -->
                                <Via>
                                    <DestinationDisplayRef ref="SE:253:DestinationDisplay:via_55700000037211691" version="any"/>
                                </Via>
                            </vias>
                        </DestinationDisplay>
                        <!-- More DestinationDisplay elements -->
                    </destinationDisplays>
                    <scheduledStopPoints>
                        <!-- Point for planned disembarking and/or boarding.
                         All ScheduledStopPoint must be mapped to a corresponding Quay, through PassengerStopAssignment further down the file. -->
                        <ScheduledStopPoint version="20190426" id="SE:253:ScheduledStopPoint:9022005000001001">
                            <Name>Norr Tull</Name> <!-- Name is ignored, but useful for human readability -->
                        </ScheduledStopPoint>
                        <ScheduledStopPoint version="20190426" id="SE:253:ScheduledStopPoint:9022005001364002">
                            <Name>Söder Tull</Name>
                        </ScheduledStopPoint>
                        <ScheduledStopPoint version="20190426" id="SE:253:ScheduledStopPoint:9022005000057002">
                            <Name>Öster Tull</Name>
                        </ScheduledStopPoint>
                        <!-- More ScheduledStopPoint elements -->
                    </scheduledStopPoints>
         <ValidBetween>           <serviceLinks> <!-- Optional, omit if empty <FromDate>2002-01-01T00:00:00</FromDate>->
                        <!-- ToDateA isServiceLink omitteddescribes sincethe ifactual therepath area elementsvehicle withintravels thebetween frametwo thatstop havepoints. indefiniteIn validity,GTFS thethis frameis must also have thatcalled Shapes. -->
                        <ServiceLink version="20190213" id="SE:253:ServiceLink:BUS_9025005000136402_9025005000005702">
       </ValidBetween>             <codespaces>        <ValidBetween>
        <Codespace id="253"> <!-- id is the same as Xmlns below -->              <FromDate>2019-02-13T00:00:00</FromDate>
      <Xmlns>253</Xmlns> <!-- From Samtrafiken's registry of producer numbers, provided by Samtrafiken -->           </ValidBetween>
         <XmlnsUrl>http://www.samtrafiken.se/ns/Östgötatrafiken</XmlnsUrl> <!-- "Östgötatrafiken" is based on data source and ensures that the url is unique, but is otherwise ignored during import <Distance>338</Distance> <!--> Optional distance in meters (decimals are ignored) defaults to 0 -->
     </Codespace>             </codespaces>             <!-- Recommended defaults used<projections>
to define common values. -->             <FrameDefaults>               <LinkSequenceProjection  <DefaultLocale>version="20190213" id="SE:253:LinkSequenceProjection:BUS_9025005000136402_9025005000005702">
                     <TimeZone>Europe/Stockholm</TimeZone>               <!-- Geometric representation of Link. The <DefaultLanguage>se</DefaultLanguage>LineString is a sequential list of coordinate pairs. -->
        </DefaultLocale>                 <DefaultLocationSystem>4326</DefaultLocationSystem> <!-- All coordinates are EPSG:4326 WGS84 -->    <ns2:LineString srsName="4326" ns2:id="LS_BUS_9025005000136402_9025005000005702">
      </FrameDefaults>             <frames>                 <ResourceFrame version="20191127125021" id="SE:253:ResourceFrame:1">  <!-- Coordinate pairs -->
               <organisations>                         <Authority<ns2:posList versioncount="2013120630" idsrsDimension="SE:253:Authority:9010005000000000">
                            <CompanyNumber>5560388950</CompanyNumber> <!-- Required -->
              2">58.666991 16.180848 58.666982 16.180848 58.66691 16.180899 58.666703 16.181034 58.666325 16.181358 58.666109 16.181545 58.665821 16.1818 58.665749 16.181834 58.665651 16.181833 58.665624 16.181833 58.665328 16.181743 58.664978 16.18155 58.664593 16.181253 58.664494 16.181166 58.664154 16.180869</ns2:posList>
             <Name>Östgötatrafiken</Name> <!-- Required -->                    </ns2:LineString>
        <LegalName>Östgötatrafiken</LegalName> <!-- Required -->                     </LinkSequenceProjection>
       <OrganisationType>authority</OrganisationType> <!-- Always "authority" -->                 </projections>
       </Authority>                     <FromPointRef   ref="SE:253:ScheduledStopPoint:9022005001364002" version="20190426"/> <!-- MoreRequired Authority elements -->
                        <Operator version="20131211" id    <ToPointRef ref="SE:253:Operator:9013005918200000">
 ScheduledStopPoint:9022005000057002" version="20190426"/> <!-- Required -->
                          <Name>eBuss Motala</Name> <!-- RequiredVehicleMode -->is ignored during import, it is extracted from ServiceJourneys that travel this ServceLink instead  -->
             <LegalName>eBuss i Sverige AB</LegalName> <!-- Required -->     </ServiceLink>
                       <OrganisationType>operator</OrganisationType> <!-- More AlwaysServiceLink "operator"elements -->
   
                    </Operator>serviceLinks>
                    <stopAssignments>
   <!-- More Operator elements -->                     </organisations>
     <!-- Mapping between ScheduledStopPoint and Quay -->
          </ResourceFrame>                 <ServiceFrame<PassengerStopAssignment order="1" version="2019112712502120190426" id="SE:253:ServiceFramePassengerStopAssignment:19022005000001001">
                    <!-- Network elements are refered to from Line elements (in the line-files) and provide common information of the Lines, like  their Authority. --><ScheduledStopPointRef ref="SE:253:ScheduledStopPoint:9022005000001001" version="20190426"/>
                                 <Network version="20131206" id<QuayRef ref="SE:253:NetworkQuay:90100050000000009022005000001001"/>
                        <Name>Östgötatrafiken<</Name> <!-- Required -->PassengerStopAssignment>
                        <PassengerStopAssignment  <AuthorityRef reforder="2" version="20190426" id="SE:253:AuthorityPassengerStopAssignment:9010005000000000" version="20131206"/9022005000001002">
                    </Network>        <ScheduledStopPointRef ref="SE:253:ScheduledStopPoint:9022005001364002" version="20190426"/>
          <additionalNetworks>                  <QuayRef ref="SE:253:Quay:9022005000100216"/>
     <!-- More Network elements -->               </PassengerStopAssignment>
     </additionalNetworks>                   <PassengerStopAssignment order="3"  <routePoints>version="20190426" id="SE:253:PassengerStopAssignment:9022005000001003">
                        <!-- A point that is a stop place in a route. --><ScheduledStopPointRef ref="SE:253:ScheduledStopPoint:9022005000057002" version="20190426"/>
                           <RoutePoint version="20190426" id<QuayRef ref="SE:253:RoutePointQuay:90220050000010019022005000102017"/>
                        </PassengerStopAssignment>
   <projections>                     <!-- More PassengerStopAssignment elements -->
             <PointProjection version="20190426" id="SE:253:PointProjection:9022005000001001">       </stopAssignments>
                    <notices>
                   <ProjectedPointRef ref="SE:253:ScheduledStopPoint:9022005000001001" version="20190426"/>   <!-- Text-based notes describing circumstances which cannot be modelled as structured data.
                  </PointProjection>      These are mapped to ServiceJourneys in the line-files through NoticeAssignment.
             </projections>           (Note: the example text below should actually be provided as a BookingArrangement (WIP  </RoutePoint>for us))-->
                        <RoutePoint<Notice version="20190426any" id="SE:253:RoutePointNotice:902200500005001655700000050931583">
                            <projections><Text>Turen måste förbeställas  0771 - 71 10 20 senast 2 timmar före avresa från turens starthållplats.</Text> <!-- Required-->
              <PointProjection version="20190426" id="SE:253:PointProjection:9022005000001002">        </Notice>
                        <!-- More Notice  <ProjectedPointRef ref="SE:253:ScheduledStopPoint:9022005000001001" version="20190426"/elements -->
                    </notices>
           </PointProjection>     </ServiceFrame>
                <ServiceCalendarFrame   version="20191127125021" id="SE:253:ServiceCalendarFrame:1">
   </projections>                 <!-- Each unique combination of operating days will </RoutePoint>create one DayType.  -->
                    <!-- MoreThe RoutePointDayType elementscontains -->each operating date or an OperatingPeriodRef as a DayTypeAssignment. -->
           </routePoints>         <dayTypes>
           <destinationDisplays>             <DayType version="any" id="SE:253:DayType:1"/>
         <!-- The displayed destination for a vehicle, commonly above the front window or onboard information screens, describing the vehicles final (or intermediary) destination. --><DayType version="any" id="SE:253:DayType:2"/>
                        <DayType      <!-- --version="any" id="SE:253:DayType:3"/>
                        <DestinationDisplay<DayType version="any" id="SE:253:DestinationDisplayDayType:via_557000000372116914"/>
                        <DayType    <FrontText>Västerlösa</FrontText> <!-- Required --version="any" id="SE:253:DayType:5"/>
                        <DayType    <PublicCode>573</PublicCode> <!-- Optional Line Designation/number --version="any" id="SE:253:DayType:6"/>
                        <DayType version="any" id="SE:253:DayType:7"/>
 <!-- SideText is ignored -->                   <DayType      </DestinationDisplay>version="any" id="SE:253:DayType:8"/>
                        <DestinationDisplay<DayType version="any" id="SE:253:DestinationDisplayDayType:557000000372116919"/>
                        <DayType    <FrontText>Malmslätt</FrontText>version="any" id="SE:253:DayType:10"/>
                        <DayType    <PublicCode>573</PublicCode>version="any" id="SE:253:DayType:11"/>
                        <DayType version="any" id="SE:253:DayType:12"/>
 <vias>                       <DayType version="any" id="SE:253:DayType:13"/>
       <!-- max 1 via -->         </dayTypes>
                    <dayTypeAssignments>
  <Via>                      <!-- Each DayTypeAssignments maps one operating Date to        <DestinationDisplayRef ref="SE:253:DestinationDisplay:via_55700000037211691" version="any"/>a DayType -->
                        <DayTypeAssignment order="1" version="any" id="SE:253:DayTypeAssignment:1-20191125">
     </Via>                       <Date>2019-11-25</Date>
     </vias>                       <DayTypeRef  </DestinationDisplay>ref="SE:253:DayType:1" version="any"/>
                        <!--/DayTypeAssignment>
More DestinationDisplay elements -->                     </destinationDisplays>
  <DayTypeAssignment order="2" version="any" id="SE:253:DayTypeAssignment:1-20191126">
                 <scheduledStopPoints>           <Date>2019-11-26</Date>
             <!-- Point for planned disembarking and/or boarding.              <DayTypeRef ref="SE:253:DayType:1" version="any"/>
           All ScheduledStopPoint must be mapped to a corresponding Quay, through PassengerStopAssignment further down the</DayTypeAssignment>
file. -->                       <DayTypeAssignment order="3" <ScheduledStopPoint version="20190426any" id="SE:253:ScheduledStopPointDayTypeAssignment:90220050000010011-20191127">
                            <Name>Norr Tull</Name> <!-- Name is ignored, but useful for human readability --><Date>2019-11-27</Date>
                            <DayTypeRef     </ScheduledStopPoint>ref="SE:253:DayType:1" version="any"/>
                        <ScheduledStopPoint version="20190426" id="SE:253:ScheduledStopPoint:9022005001364002"></DayTypeAssignment>
                        <!-- More DayTypeAssignment elements <Name>Söder Tull</Name>-->
                         </ScheduledStopPoint>
 dayTypeAssignments>
                </ServiceCalendarFrame>
     <ScheduledStopPoint version="20190426" id="SE:253:ScheduledStopPoint:9022005000057002">     </frames>
        </CompositeFrame>
    </dataObjects>
</PublicationDelivery>

_stops.xml

This is an example of the _stops.xml file with instructions on how the different fields and elements are expected to be used.

Code Block
breakoutModefull-width
languagexml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<PublicationDelivery xmlns="http://www.netex.org.uk/netex">
   <Name>Öster Tull</Name>
        <PublicationTimestamp>2019-11-27T12:50:21</PublicationTimestamp> <!-- Required Timestamp of export. -->
    <ParticipantRef>SAM</ParticipantRef>  <!-- Required Codespace for data submitter, participant identifier. We  </ScheduledStopPoint>
            currently don't use this value for anything, so it's not important for our import. -->
    <dataObjects>
      <!-- More ScheduledStopPoint elements --<SiteFrame version="20191127125021" id="SE:253:SiteFrame:1">
            <ValidBetween>
       </scheduledStopPoints>         <FromDate>2005-01-01T00:00:00</FromDate>
           <serviceLinks> <!-- Optional, omit if empty <!--> ToDate is omitted since if there are elements within the frame that have indefinite validity, the frame must also      <!-- A ServiceLink describes the actual path a vehicle travels between two stop points. In GTFS this is called Shapes. -->have that. -->
            </ValidBetween>
            <codespaces>
               <ServiceLink version="20190213"<Codespace id="SE:253:ServiceLink:BUS_9025005000136402_9025005000005702"> <!-- id is the same as Xmlns below -->
                   <ValidBetween> <Xmlns>253</Xmlns> <!-- From Samtrafiken's registry of producer numbers, provided by Samtrafiken -->
                    <FromDate>2019-02-13T00:00:00</FromDate>
                            </ValidBetween>
    <XmlnsUrl>http://www.samtrafiken.se/ns/Östgötatrafiken</XmlnsUrl> <!-- "Östgötatrafiken" is based on data source and ensures that the url is unique, but is otherwise ignored during import -->
                </Codespace>
      <Distance>338</Distance> <!-- Optional distance in meters (decimals</codespaces>
are ignored) defaults to 0 -->       <FrameDefaults>
                <DefaultLocale>
    <projections>                <TimeZone>Europe/Stockholm</TimeZone>
                <LinkSequenceProjection version="20190213" id="SE:253:LinkSequenceProjection:BUS_9025005000136402_9025005000005702">  <DefaultLanguage>se</DefaultLanguage>
                </DefaultLocale>
                <DefaultLocationSystem>4326</DefaultLocationSystem> <!-- GeometricAll representationcoordinates of Link. The LineString is a sequential list of coordinate pairs. -->are EPSG:4326 WGS84 -->
            </FrameDefaults>
            <stopPlaces>
                  <ns2:LineString srsName<StopPlace version="432620161213" ns2:id="LS_BUS_9025005000136402_9025005000005702">
       SE:253:StopPlace:9021005000001000">
                    <ValidBetween>
           <!-- Coordinate pairs -->          <FromDate>2016-12-13T00:00:00</FromDate>
                    </ValidBetween>
         <ns2:posList count="30" srsDimension="2">58.666991 16.180848 58.666982 16.180848 58.66691 16.180899 58.666703 16.181034 58.666325 16.181358 58.666109 16.181545 58.665821 16.1818 58.665749 16.181834 58.665651 16.181833 58.665624 16.181833 58.665328 16.181743 58.664978 16.18155 58.664593 16.181253 58.664494 16.181166 58.664154 16.180869</ns2:posList> <Name>Norr Tull</Name> <!-- Required, max 50 characters -->
                    <ShortName>Norr Tull</ShortName> <!-- Optional, max 16 characters -->
                </ns2:LineString>    <PrivateCode>1</PrivateCode> <!-- Required. Internal/technical and unique number, not meant to be shown to passengers. Kind of like an Id for the StopPlace. -->
      </LinkSequenceProjection>              <Centroid>
              </projections>          <Location>
                  <FromPointRef ref="SE:253:ScheduledStopPoint:9022005001364002" version="20190426"/> <!-- Required -->     <Longitude>16.176723</Longitude>
                       <ToPointRef ref="SE:253:ScheduledStopPoint:9022005000057002" version="20190426"/> <!-- Required --> <Latitude>58.594850</Latitude>
                            <!-- VehicleModeAltitude is ignored during import, it is extracted from ServiceJourneys that travel this ServceLink instead -->
                            <!-- Precision is ignored -->
                        </ServiceLink>Location>
                    </Centroid>
   <!-- More ServiceLink elements -->             <TransportMode>bus</TransportMode> <!-- TransportMode is ignored during import -->
</serviceLinks>                     <stopAssignments>
 <StopPlaceType>busStation</StopPlaceType> <!-- Required -->
                    <quays>
 <!-- Mapping between ScheduledStopPoint and Quay -->                  <!-- A part of StopPlace where passengers <PassengerStopAssignment order="1" version="20190426" id="SE:253:PassengerStopAssignment:9022005000001001">
 can board or disembark a vehicle.
                        For example <ScheduledStopPointRef ref="SE:253:ScheduledStopPoint:9022005000001001" version="20190426"/>
               tactile paving position at a bus stop, the midpoint of a railway platform, a gate at an airport. -->
            <QuayRef ref="SE:253:Quay:9022005000001001"/>           <!-- Quays do not have their own names. This information is inherited from the parent </PassengerStopAssignment>
StopPlace. -->
                       <PassengerStopAssignment order="2"<Quay version="2019042620180419" id="SE:253:PassengerStopAssignmentQuay:9022005000001002">9022005000001001">
                            <ValidBetween>
                               <ScheduledStopPointRef ref="SE:253:ScheduledStopPoint:9022005001364002" version="20190426"/> <FromDate>2019-04-26T00:00:00</FromDate>
                            </ValidBetween>
    <QuayRef ref="SE:253:Quay:9022005000100216"/>                       <Name>Norr  </PassengerStopAssignment>Tull</Name> <!-- Optional, max 50 characters -->
                           <PassengerStopAssignment order="3" version="20190426" id="SE:253:PassengerStopAssignment:9022005000001003">
    <ShortName>Norr Tull</ShortName> <!-- Optional, max 16 characters -->
                       <ScheduledStopPointRef ref="SE:253:ScheduledStopPoint:9022005000057002" version="20190426"/>   <Centroid>
                         <QuayRef ref="SE:253:Quay:9022005000102017"/>
       <Location>
                       </PassengerStopAssignment>             <Longitude>16.177052</Longitude>
           <!-- More PassengerStopAssignment elements -->                     <<Latitude>58.595038</stopAssignments>Latitude>
                    <notices>            </Location>
            <!-- Text-based notes describing circumstances which cannot be modelled as structured data.     </Centroid>
                   These are mapped to ServiceJourneys in the line-files through NoticeAssignment.
             <PublicCode>1</PublicCode> <!-- Optional designation meant to be shown for passengers. Max 4 characters long. -->
          (Note: the example text below should actually be provided as a BookingArrangement (WIP for us))--> </Quay>
                        <Notice<Quay version="any20140218" id="SE:253:Notice:55700000050931583">
       Quay:9022005000100216">
                    <Text>Turen måste förbeställas  0771 - 71 10 20<ValidBetween>
senast 2 timmar före avresa från turens starthållplats.</Text> <!-- Required-->                         </Notice><FromDate>2019-04-26T00:00:00</FromDate>
                        <!-- More Notice elements --> </ValidBetween>
                    </notices>                 </ServiceFrame><Name>Norr Tull</Name>
                <ServiceCalendarFrame version="20191127125021" id="SE:253:ServiceCalendarFrame:1">                     <!-- Each unique combination of operating days will create one DayType. --><ShortName>Norr Tull</ShortName>
                            <Location>
    <!-- The DayType contains each operating date or an OperatingPeriodRef as a DayTypeAssignment. -->               <Longitude>16.176760</Longitude>
     <dayTypes>                         <DayType version="any" id="SE:253:DayType:1"/> <Latitude>58.595074</Latitude>
                          <DayType version="any" id="SE:253:DayType:2"/> </Location>
                          <DayType version="any" id="SE:253:DayType:3"/> <PublicCode>2</PublicCode>
                        <DayType version="any" id="SE:253:DayType:4"/></Quay>
                        <!-- More <DayType version="any" id="SE:253:DayType:5"/Quay elements -->
                    </quays>
   <DayType  version="any" id="SE:253:DayType:6"/>           </StopPlace>
                <!-- More <DayType version="any" id="SE:253:DayType:7"/StopPlace elements -->
            </stopPlaces>
            <navigationPaths>  <DayType version="any" id="SE:253:DayType:8"/<!-- Optional, omit if empty -->
                <!-- A detailed description of the path  <DayType version="any" id="SE:253:DayType:9"/>
       between two places, in our import and export we only handle Quay-to-Quay NavigationPaths. -->
                <DayType<NavigationPath version="any20180504" id="SE:253:DayTypeNavigationPath:1055700000046273098"/>
                        <DayType version="any" id="SE:253:DayType:11"/>
      <Distance>0</Distance> <!-- Optional. Total length (in meters). -->
                 <DayType version="any" id="SE:253:DayType:12"/>
 <From>
                       <DayType version="any" id<PlaceRef ref="SE:253:DayType:13Quay:9022005000100216" version="20140218"/> <!-- Required -->
                    </dayTypes>From>
                    <To>
  <dayTypeAssignments>                      <PlaceRef ref="SE:253:Quay:9022005000102017" version="20181204"/> <!-- Each DayTypeAssignments maps one operating Date to a DayType -->Required -->
                    </To>
               <DayTypeAssignment order="1" version="any" id="SE:253:DayTypeAssignment:1-20191125">   <TransferDuration>
                        <DefaultDuration>PT6M</DefaultDuration> <Date>2019<!-11-25</Date> Required. Specifies the duration of the transfer. -->
                    <DayTypeRef ref="SE:253:DayType:1" version="any"/></TransferDuration>
                    <!-- NavigationType is ignored -->
 </DayTypeAssignment>                   <!-- AccessibilityAssessment is ignored -->
 <DayTypeAssignment order="2" version="any" id="SE:253:DayTypeAssignment:1-20191126">            </NavigationPath>
                <Date>2019<!-11-26</Date>
- More NavigationPath elements -->
            </navigationPaths>
        </SiteFrame>
     <DayTypeRef ref="SE:253:DayType:1" version="any"/</dataObjects>
</PublicationDelivery>

line_{Line.Number}_{Line.Id}.xml

This is an example of a line file with instructions on how the different fields and elements are expected to be used.

Code Block
breakoutModefull-width
languagexml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<PublicationDelivery xmlns="http://www.netex.org.uk/netex">
    <PublicationTimestamp>2019-11-27T12:50:21</PublicationTimestamp> <!-- Timestamp of export -->
    <ParticipantRef>SAM</ParticipantRef> <!-- Required Codespace for data submitter, participant identifier. We currently don't use </DayTypeAssignment>this value for anything, so it's not important for our import. -->
    <dataObjects>
        <DayTypeAssignment<CompositeFrame ordercreated="32019-11-27T12:50:21" version="any20191127125021" id="SE:253:DayTypeAssignmentCompositeFrame:1-201911279011005005300000">
            <ValidBetween>
               <Date>2019 <FromDate>2005-11-27</Date>
                            <DayTypeRef ref="SE:253:DayType:1" version="any"/>01-01T00:00:00</FromDate>
                        </DayTypeAssignment>
                        <!-- More DayTypeAssignment elements<!-- ToDate is omitted since if there are elements within the frame that have indefinite validity, the frame must also have that. -->
            </ValidBetween>
       </dayTypeAssignments>     <codespaces>
           </ServiceCalendarFrame>     <Codespace id="253"> <!-- id is the same as </frames>Xmlns below -->
      </CompositeFrame>     </dataObjects> </PublicationDelivery>

_stops.xml

Code Block
breakoutModefull-width
languagexml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <PublicationDelivery xmlns="http://www.netex.org.uk/netex">     <PublicationTimestamp>2019-11-27T12:50:21</PublicationTimestamp> <Xmlns>253</Xmlns> <!-- From RequiredSamtrafiken's Timestampregistry of export. producer numbers, provided by Samtrafiken -->
      <ParticipantRef>SAM</ParticipantRef>     <!-- Required Codespace for data submitter, participant identifier. We currently don't use this value for anything, so it's not important for our import. -->
    <dataObjects>
  <XmlnsUrl>http://www.samtrafiken.se/ns/Östgötatrafiken</XmlnsUrl> <!-- "Östgötatrafiken" is based on data source and ensures that the url is unique, but is otherwise ignored during import -->
      <SiteFrame version="20191127125021" id="SE:253:SiteFrame:1">        </Codespace>
    <ValidBetween>        </codespaces>
        <FromDate>2005-01-01T00:00:00</FromDate>    <FrameDefaults>
            <!-- ToDate is omitted since<DefaultLocale>
if there are elements within the frame that have indefinite validity, the frame must also have that. -->   <TimeZone>Europe/Stockholm</TimeZone>
         </ValidBetween>           <DefaultLanguage>se</DefaultLanguage>
 <codespaces>               </DefaultLocale>
 <Codespace id="253"> <!-- id is the same as Xmlns below -->     <DefaultLocationSystem>4326</DefaultLocationSystem>
            </FrameDefaults>
  <Xmlns>253</Xmlns> <!-- From Samtrafiken's registry of producer numbers, provided by Samtrafiken<frames>
-->                <ServiceFrame version="20191127125021" id="SE:253:ServiceFrame:9011005005300000">
  <XmlnsUrl>http://www.samtrafiken.se/ns/Östgötatrafiken</XmlnsUrl> <!-- "Östgötatrafiken" is based on data source and ensures that the url is unique, but is otherwise ignored<routes>
during import -->                 </Codespace>     <!-- Description of a route, specified as a </codespaces>sorted list of RoutePoints. -->
        <FrameDefaults>                <Route <DefaultLocale>
version="any" id="SE:253:Route:55700000035050824">
                   <TimeZone>Europe/Stockholm</TimeZone>         <Name>Motala</Name> <!-- Required -->
        <DefaultLanguage>se</DefaultLanguage>                 </DefaultLocale>   <LineRef ref="SE:253:Line:9011005005300000" version="20131215"/> <!-- Required -->
        <DefaultLocationSystem>4326</DefaultLocationSystem> <!-- All coordinates are EPSG:4326 WGS84 -->             <DirectionType>outbound</DirectionType> <!-- inbound/FrameDefaults>outbound -->
           <stopPlaces>             </Route>
   <StopPlace version="20161213" id="SE:253:StopPlace:9021005000001000">                   <!-- More <ValidBetween>Route elements -->
                    </routes>
 <FromDate>2016-12-13T00:00:00</FromDate>                   <lines>
 </ValidBetween>                     <Name>Norr Tull</Name> <!-- Required -- <Line version="20131215" id="SE:253:Line:9011005005300000">
                    <ShortName>Norr Tull</ShortName>        <Name>53</Name> <!-- OptionalRequired -->
                    <PrivateCode>1</PrivateCode> <!-- Required. Internal/technical and unique number, not meant to be shown to passengers. Kind of like an Id for the StopPlace. --><TransportMode>rail</TransportMode> <!-- Required -->
                           <Centroid> <!-- TransportSubmode is currently ignored-->
                   <Location>         <PublicCode>53</PublicCode> <!-- Optional. The publicly advertised line number -->
           <Longitude>16.176723</Longitude>                 <PrivateCode>53</PrivateCode> <!-- Required. Internal (non-public) identifier for the line. Together with  <Latitude>58.594850</Latitude>
                   TransportOrganisation, this value should be unique in the entire dataset. This needs to fit in a numeric(4), can't be a String. -->
        <!-- Altitude is ignored -->                <RepresentedByGroupRef ref="SE:253:Network:9010005000000000"/> <!-- Required Reference to the Line's Network, defined in   <!-- Precision is ignoredthe _shared_data.xml-file -->
                        </Location>Line>
                    </Centroid>lines>
                    <TransportMode>bus</TransportMode> <!-- TransportMode is ignored during import --><journeyPatterns>
                        <JourneyPattern version="any"  <StopPlaceType>busStation</StopPlaceType> <!-- Required -->id="SE:253:JourneyPattern:55700000035050824">
                        <quays>    <RouteRef ref="SE:253:Route:55700000035050824" version="any"/> <!-- Required -->
               <!-- A part of StopPlace where passengers can board or disembark a vehicle. <pointsInSequence>
                       For example tactile paving position at a bus stop, the midpoint of a railway platform, a gate at an airport. --> <!-- Only StopPointInJourneyPattern is allowed -->
                              <!-- Quays do not have their own names. This information is inherited from the parent StopPlace. --><StopPointInJourneyPattern order="1" version="any" id="SE:253:StopPointInJourneyPattern:55700000035050829">
                                   <Quay version="20180419" id<ScheduledStopPointRef ref="SE:253:QuayScheduledStopPoint:9022005000001001"/> <!-- Required -->
                                    <ForAlighting>false</ForAlighting> <!-- default true -->
    <ValidBetween>                                <ForBoarding>true</ForBoarding> <FromDate>2019<!-04-26T00:00:00</FromDate> default true   -->
                       </ValidBetween>             <DestinationDisplayRef ref="SE:253:DestinationDisplay:55700000037211691"/> <!-- Should be present on at least the first StopPointInJourneyPattern -->
   <Name>Norr Tull</Name> <!-- Optional -->                             <ShortName>Norr Tull<<RequestStop>true</ShortName>RequestStop> <!-- default Optionalfalse -->
                            <Centroid>    </StopPointInJourneyPattern>
                            <Location>    <StopPointInJourneyPattern order="2" version="any" id="SE:253:StopPointInJourneyPattern:55700000035050830">
                             <Longitude>16.177052</Longitude>            <ScheduledStopPointRef ref="SE:253:ScheduledStopPoint:9022005001364002"/>
                        <Latitude>58.595038</Latitude>            <ForAlighting>true</ForAlighting>
                    </Location>                <ForBoarding>true</ForBoarding>
            </Centroid>                        <RequestStop>true</RequestStop>
    <PublicCode>1</PublicCode> <!-- Optional designation meant to be shown for passengers. Max 4 characters long. -->                </StopPointInJourneyPattern>
        </Quay>                        <StopPointInJourneyPattern <Quayorder="3" version="20140218any" id="SE:253:QuayStopPointInJourneyPattern:902200500010021655700000035050831">
                            <ValidBetween>        <ScheduledStopPointRef ref="SE:253:ScheduledStopPoint:9022005000057002"/>
                       <FromDate>2019-04-26T00:00:00</FromDate>             <ForAlighting>true</ForAlighting>
               </ValidBetween>                     <ForBoarding>true</ForBoarding>
       <Name>Norr Tull</Name>                        </StopPointInJourneyPattern>
    <ShortName>Norr Tull</ShortName>                           <StopPointInJourneyPattern  <Location>
order="4" version="any" id="SE:253:StopPointInJourneyPattern:55700000035050832">
                               <Longitude>16.176760</Longitude>     <ScheduledStopPointRef ref="SE:253:ScheduledStopPoint:9022005000057003"/> <!-- (Reference is missing from this example    page) -->
               <Latitude>58.595074</Latitude>                     <ForAlighting>true</ForAlighting>
       </Location>                             <PublicCode>2<<ForBoarding>true</PublicCode>ForBoarding>
                        </Quay>        </StopPointInJourneyPattern>
                <!-- More Quay elements -->            <StopPointInJourneyPattern order="5" version="any" id="SE:253:StopPointInJourneyPattern:55700000035050833">
     </quays>                 </StopPlace>              <ScheduledStopPointRef   ref="SE:253:ScheduledStopPoint:9022005000057004"/> <!-- More StopPlace elements(Reference is missing from this example page) -->
            </stopPlaces>             <navigationPaths> <!-- Optional, omit if empty -->     <ForAlighting>true</ForAlighting>
           <!-- A detailed description of the path between two places, in our import and export we only handle Quay-to-Quay NavigationPaths. -->      <ForBoarding>false</ForBoarding>
          <NavigationPath version="20180504" id="SE:253:NavigationPath:55700000046273098">                     <Distance>0<</Distance> <!-- Optional. Total length (in meters). -->StopPointInJourneyPattern>
                            <From>    <!-- Timing points are not supported (ignored) by Samtrafiken, but may be present in the file using this syntax -->
 <PlaceRef ref="SE:253:Quay:9022005000100216" version="20140218"/> <!-- Required -->                     </From>     <TimingPointInJourneyPattern order="4" version="0" id="SE:253:TimingPointInJourneyPattern:1234"> 
           <To>                         <PlaceRef<TimingPointRef ref="SE:253:QuayTimingPoint:90220050001020171234" version="20181204"/> <!-- Required -->/>
                      </To>          </TimingPointInJourneyPattern>
          <TransferDuration>                      <!-- More StopPointInJourneyPattern <DefaultDuration>PT6M</DefaultDuration>elements <!-->
Required. Specifies the duration of the transfer. -->                     </TransferDuration>pointsInSequence>
                            <linksInSequence>  <!-- NavigationType is ignoredOptional, omit if empty -->
                                <!-- AccessibilityAssessment is ignoredReferences to relevant ServiceLinks that has been defined in the _shared_data.xml-file -->
                   </NavigationPath>             <ServiceLinkInJourneyPattern order="1" version="any"  <!-- More NavigationPath elements -->id="SE:253:ServiceLinkInJourneyPattern:BUS_391">
                 </navigationPaths>         </SiteFrame>     </dataObjects> </PublicationDelivery>

line_{Line.Number}_{Line.Id}.xml

...

breakoutModefull-width
languagexml

...

 

...

 

...

 

...

 <ServiceLinkRef ref="

...

SE:253:ServiceLink:BUS_9025005000136402_9025005000005702"/>
    

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

    </ServiceLinkInJourneyPattern>

...

         

...

 

...

 

...

 

...

             

...

       <!-- More ServiceLinkInJourneyPattern elements -->
     

...

                 

...

 

...

 

...

 

...

 

...

 

...

 

...

</linksInSequence>

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

             <

...

!-- PrivateCode is ignored -->
         

...

                 

...

 

...

 <!-- 

...

runTimes is

...

 ignored -->
                           

...

 <!-- waitTimes 

...

is 

...

ignored -->
                           

...

 <!-- 

...

headways is 

...

ignored 

...

-->

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

         </JourneyPattern>
       

...

             </

...

journeyPatterns>
            

...

    </ServiceFrame>
            

...

    <TimetableFrame version="20191127125021" id="SE:253:TimetableFrame:9011005005300000">
                 

...

   <!-- A planned journey from starting point to a destination, according to a JourneyPattern. -->
   

...

                 

...

<vehicleJourneys>
                

...

        <!-- Only ServiceJourney and DeadRun 

...

are allowed, but DeadRun is ignored -->
      

...

                 

...

 <!-- Multiple versions are not supported on ServiceJourney, and should always be "any" -->
        

...

                <ServiceJourney version="any" id="SE:253:ServiceJourney:55700000049527547">
      

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

          <PrivateCode>123<PrivateCode> <!-- Optional, numeric(6). Represents an internal journey number that is not supposed to be 

...

shown to passengers. -->
                            

...

<TransportMode>rail</

...

TransportMode> <!-- Required -->
                         

...

 

...

 

...

 <!-- 

...

TransportSubmode is currently ignored -->
                            

...

<dayTypes> <!-- 

...

Required -->
                         

...

       <DayTypeRef ref="SE:253:DayType:1"/> <!-- at least 1 -->
                            <

...

/dayTypes>
                            <JourneyPatternRef ref="SE:253:JourneyPattern:55700000035050824" version="any"/> <

...

!-- Required -->
                   

...

         <PublicCode>1234X</PublicCode><!-- Optional, max 5 characters. Represents the trip number that is to be shown to the 

...

public. -->
                            

...

<OperatorRef ref="SE:253:Operator:9013005918200000"/>
                            

...

<trainNumbers> <!-- 

...

TrainNumbers 

...

exists only for ServiceJourneys that are trains. -->
                     

...

 

...

 

...

 

...

 

...

       <!-- Normally there will only be one TrainNumberRef here. For 

...

Trains that change their announced train number during their journey (also called vagnskurs/kursvagnar) there will be multiple TrainNumberRefs (as restricted by JourneyPart-elements). -->
             

...

                   <TrainNumberRef ref="SE:253:TrainNumber:9011074007000000_74" versionRef="any"/>
                                

...

<TrainNumberRef ref="SE:253:

...

TrainNumber:9011074007000000_70" versionRef="any"/>

...

 

...

 

...

 

...

                         </

...

trainNumbers>
                    

...

        <passingTimes> <!-- Required -->
         

...

                       

...

<TimetabledPassingTime 

...

version="any" id="SE:253:

...

TimetabledPassingTime:

...

55700000049527529"> <!-- Required -->
                             

...

       <StopPointInJourneyPatternRef ref="SE:253:

...

StopPointInJourneyPattern:

...

55700000035050829" version="any"/>

...

 

...

 

...

                             

...

     <!-- Optional DepartureDayOffset, default value = 0 -->
                    

...

 

...

 

...

 

...

 

...

 

...

           <!-- Optional ArrivalDayOffset, 

...

default value = 0 -->
                                    

...

<DepartureTime>06:40:00</DepartureTime>
                                    

...

<!-- 

...

WaitingTime is 

...

ignored -->
                                </TimetabledPassingTime>
      

...

                          <TimetabledPassingTime version="any" id="SE:253:TimetabledPassingTime:55700000049527530">
                                    

...

<StopPointInJourneyPatternRef ref="SE:253:

...

StopPointInJourneyPattern:55700000035050830" version="any"/>

...


                                    <ArrivalTime>06:41:28</ArrivalTime>
                                

...

 

...

 

...

 

...

 <DepartureTime>06:41:28</DepartureTime>
                                </

...

TimetabledPassingTime>
                                

...

<TimetabledPassingTime version="any" id="SE:253:

...

TimetabledPassingTime:

...

55700000049527544">
                                    

...

<StopPointInJourneyPatternRef ref="SE:253:

...

StopPointInJourneyPattern:55700000035050831" version="any"/>
                                    

...

<ArrivalTime>07:50:00</ArrivalTime>
                                    

...

<DepartureTime>07:51:00</DepartureTime>
                                </TimetabledPassingTime>
   

...

                             <!-- More TimetabledPassingTime 

...

elements -->
                                

...

<TimetabledPassingTime version="any" id="SE:253:

...

TimetabledPassingTime:

...

55700000049527545">
                                    

...

<StopPointInJourneyPatternRef ref="SE:253:

...

StopPointInJourneyPattern:55700000035050832" version="any"/>
                                    

...

<ArrivalTime>01:00:00</ArrivalTime>
                         

...

           <ArrivalDayOffset>1</ArrivalDayOffset>
                         

...

           <DepartureTime>01:05:00</DepartureTime>
                     

...

               <DepartureDayOffset>1</DepartureDayOffset>
                 

...

 

...

 

...

 

...

 

...

           </TimetabledPassingTime>
                 

...

               <TimetabledPassingTime version="any" id="SE:253:TimetabledPassingTime:55700000049527546">
           

...

  

...

 

...

 

...

 

...

 

...

 

...

                  <StopPointInJourneyPatternRef ref="SE:253:StopPointInJourneyPattern:55700000035050833" version="any"/>
             

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

           <ArrivalTime>03:10:00</ArrivalTime>
                     

...

 

...

 

...

             <ArrivalDayOffset>1</ArrivalDayOffset>
                           

...

 

...

    </TimetabledPassingTime>
                            </

...

passingTimes>
                            <parts>
        

...

 

...

 

...

 

...

 

...

                    <!-- JourneyParts with TrainNumberRefs must only exist for 

...

ServiceJourneys that are trains. -->
                                <!-- 

...

JourneyParts 

...

with 

...

TrainNumberRefs 

...

must only exist for trains that change their announced train number during their journey (also called vagnskurs/kursvagnar). -->
           

...

 

...

 

...

 

...

 

...

                 <JourneyPart 

...

version="any" id="SE:253:JourneyPart:323200000000003266_tn_0">
   

...

 

...

 

...

 

...

 

...

                             <!-- 

...

MainPartRef is 

...

a self-

...

reference that only exists to pass Netex-validation -->
                 

...

                   <MainPartRef 

...

ref="SE:253:JourneyPart:323200000000003266_tn_0" version="any"/>
                  

...

                 

...

 

...

<TrainNumberRef ref="SE:253:

...

TrainNumber:9011074007000000_70" versionRef="any"/>
                    

...

                <FromStopPointRef ref="SE:253:ScheduledStopPoint:9022005000001001"/> <!-- required. If this points to a 

...

TimingPoint, the JourneyPart will be ignored -->
               

...

                     <ToStopPointRef 

...

ref="SE:253:ScheduledStopPoint:9022005000057003"/> <!-- 

...

required. If this points to a TimingPoint, the JourneyPart will be ignored -->
                        

...

            <StartTime>06:40:00</StartTime><!-- required. Must match the departure time when this ServiceJourney has a call at FromStopPointRef. -->
     

...

 

...

 

...

 

...

                            <EndTime>01:00:00</EndTime> <!-- 

...

required. 

...

Must 

...

match 

...

the 

...

arrival time when this ServiceJourney has a call at ToStopPointRef. -->
             

...

 

...

 

...

 

...

                    <EndTimeDayOffset>1</EndTimeDayOffset> <!-- required. If null (or 0) this field is expected to not 

...

be set. -->
                                </

...

JourneyPart>
                                <JourneyPart 

...

version="any" id="SE:253:

...

JourneyPart:323200000000003266_tn_1">
                                    

...

<MainPartRef ref="SE:253:

...

JourneyPart:323200000000003266_tn_1" version="any"/>
                                    

...

<TrainNumberRef 

...

ref="

...

SE:253:

...

TrainNumber:

...

9011074007000000_74"

...

 versionRef="any"/>
                                    

...

<FromStopPointRef ref="SE:253:

...

ScheduledStopPoint:9022005000057003"/> <!-- required. If this points to a TimingPoint, the JourneyPart will be ignored -->
                      

...

              <ToStopPointRef ref="SE:253:ScheduledStopPoint:9022005000057004"/> <!-- required. If this points to a TimingPoint, the JourneyPart will be ignored -->
                   

...

 

...

 

...

 

...

 

...

 

...

 

...

 

...

          <StartTime>01:05:00</StartTime> <!-- required. Must match the departure time when this ServiceJourney has a call at FromStopPointRef. -->
          

...

                          <StartTimeDayOffset>1</StartTimeDayOffset> <!-- required. If null (or 0) this field is expected 

...

to not be set. -->
                                

...

    <EndTime>03:10:00</EndTime> <!-- required. Must match the arrival time when this ServiceJourney has a call at 

...

ToStopPointRef. -->
         

...

                           <EndTimeDayOffset>1</EndTimeDayOffset> <!-- required. If null (or 0) this field is expected to not 

...

be set. -->
                                </JourneyPart>
   

...

                         </parts>
                

...

        </ServiceJourney>
                        <

...

!-- More ServiceJourneys -->
                    </vehicleJourneys>
        

...

 

...

 

...

 

...

 

...

        <trainNumbers>
                        

...

<TrainNumber version="any" id="SE:253:

...

TrainNumber:

...

9011074007000000_70">

...


                       

...

     <!-- ForAdvertisement contains the announced train number which should be displayed for passengers. -->
                    

...

        <ForAdvertisement>70</ForAdvertisement>
                        </

...

TrainNumber>
                        <TrainNumber version="any" 

...

id="SE:253:TrainNumber:9011074007000000_74">
                            

...

<ForAdvertisement>74</

...

ForAdvertisement>
                        <

...

/TrainNumber>

...

 

...

 

...

                  

...

</

...

trainNumbers>
                    <!-- Mappings between Notices defined in the _shared_data.xml-file and ServiceJourneys -->
                    <noticeAssignments>
                        <NoticeAssignment order="1" version="1" id="SE:NoticeAssignment:55700000050931583">
                            <NoticeRef ref="SE:253:Notice:55700000050931583"/>
                            <NoticedObjectRef ref="SE:253:ServiceJourney:55700000049527547" /> <!-- Only refs to ServiceJourney are allowed -->
                        </NoticeAssignment>
                    </noticeAssignments>
                    <journeyInterchanges>
                        <!-- other than ServiceJourneyInterchange is ignored -->
                        <ServiceJourneyInterchange version="any" id="SE:253:ServiceJourneyInterchange:55700000051347301_1">
                            <Priority>0</Priority> <!--0 = Interchange allowed, -1 = Interchange not allowed -->
                            <!-- Guaranteed and Advertised are ignored-->
                            <FromPointRef ref="SE:253:ScheduledStopPoint:9022005000001001"/>
                            <ToPointRef ref="SE:253:ScheduledStopPoint:9022005001364002" version="20190426"/>
                            <FromJourneyRef ref="SE:253:ServiceJourney:55700000049527547"/>
                            <ToJourneyRef ref="SE:253:ServiceJourney:55700000049527548" version="any"/>
                        </ServiceJourneyInterchange>
                    </journeyInterchanges>
                </TimetableFrame>
            </frames>
        </CompositeFrame>
    </dataObjects>
</PublicationDelivery>