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/Gid}.xml (one - 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

Samtrafiken requires submitted NeTEx datasets to comply with the Norwegian NeTEx 1.0.11 standard.

...

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.

_shared_data.xml

...

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
<?xml<DayTypeAssignment versionorder="1.0" encodingversion="UTF-8any" standaloneid="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>SE:253:DayTypeAssignment:1-20191125">
    <!-- RequiredChoice OperatingDayRef Timestampis ofnot export.allowed -->
    <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.<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 -->
    <dataObjects>
        <CompositeFrame created="2019-11-27T12:50:21<OperatingPeriodRef ref="SE:253:OperatingPeriod:Cal20192786-MoWeThFr" version="20191127125021" idany"/>
    <DayTypeRef ref="SE:253:CompositeFrameDayType:1" version="any"/>
            <ValidBetween>
                <FromDate>2002-01-01T00:00:00</FromDate></DayTypeAssignment>

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="any" id="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 <!-- ToDate is omitted since if there are elements within the frame that have indefinite validity, the frame must also have that. -->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>
                    <serviceLinks> <!-- Optional, omit if empty -->
                        <!-- A ServiceLink describes the actual path a vehicle travels between two stop points. In GTFS this is called Shapes. -->
                        <ServiceLink version="20190213" id="SE:253:ServiceLink:BUS_9025005000136402_9025005000005702">
                            <ValidBetween>
</ValidBetween>             <codespaces>                 <Codespace id="253"> <!-- id is the same as Xmlns below --> <FromDate>2019-02-13T00:00:00</FromDate>
                            </ValidBetween>
                            <Xmlns>253<<Distance>338</Xmlns>Distance> <!-- Optional Fromdistance Samtrafiken'sin registrymeters of(decimals producerare numbers,ignored) provideddefaults byto Samtrafiken0 -->
   
                <XmlnsUrl>http://www.samtrafiken.se/ns/Östgötatrafiken</XmlnsUrl> <!-- "Östgötatrafiken" is based on data source and ensures that the url<projections>
is unique, but is otherwise ignored during import -->                 </Codespace>       <LinkSequenceProjection version="20190213" id="SE:253:LinkSequenceProjection:BUS_9025005000136402_9025005000005702">
   </codespaces>             <!-- Recommended defaults used to define common values. -->            <!-- <FrameDefaults>Geometric representation of Link. The LineString is a sequential list of coordinate pairs. -->
   <DefaultLocale>                     <TimeZone>Europe/Stockholm</TimeZone>            <ns2:LineString   srsName="4326" ns2:id="LS_BUS_9025005000136402_9025005000005702">
     <DefaultLanguage>se</DefaultLanguage>                 </DefaultLocale>                 <DefaultLocationSystem>4326</DefaultLocationSystem> <!-- AllCoordinate coordinates are EPSG:4326 WGS84 pairs -->
            </FrameDefaults>             <frames>                 <ResourceFrame version<ns2:posList count="2019112712502130" idsrsDimension="SE:253:ResourceFrame:1">
         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>
          <organisations>                         <Authority version="20131206" id="SE:253:Authority:9010005000000000"> </ns2:LineString>
                            <CompanyNumber>5560388950</CompanyNumber> <!-- Required --> </LinkSequenceProjection>
                           <Name>Östgötatrafiken</Name> <!--/projections>
Required -->                           <FromPointRef  <LegalName>Östgötatrafiken</LegalName>ref="SE:253:ScheduledStopPoint:9022005001364002" version="20190426"/> <!-- Required -->
                            <OrganisationType>authority</OrganisationType><ToPointRef ref="SE:253:ScheduledStopPoint:9022005000057002" version="20190426"/> <!-- Always "authority"Required -->
                        </Authority>                         <!-- More Authority elements -->
        VehicleMode is ignored during import, it is extracted from ServiceJourneys that travel this ServceLink instead -->
                <Operator version="20131211" id="SE:253:Operator:9013005918200000">      </ServiceLink>
                      <Name>eBuss Motala</Name> <!-- RequiredMore ServiceLink elements -->
                    </serviceLinks>
         <LegalName>eBuss i Sverige AB</LegalName> <!-- Required -->     <stopAssignments>
                       <OrganisationType>operator</OrganisationType> <!-- Always "operator"Mapping between ScheduledStopPoint and Quay -->
                        </Operator>
                        <!-- More Operator elements --><PassengerStopAssignment order="1" version="20190426" id="SE:253:PassengerStopAssignment:9022005000001001">
                        </organisations>    <ScheduledStopPointRef ref="SE:253:ScheduledStopPoint:9022005000001001" version="20190426"/>
          </ResourceFrame>                 <ServiceFrame version="20191127125021" id<QuayRef ref="SE:253:ServiceFrameQuay:19022005000001001"/>
                    <!-- Network elements are refered to from Line elements (in the line-files) and provide common information of the Lines, like  their Authority. --> </PassengerStopAssignment>
                                   <Network <PassengerStopAssignment order="2" version="2013120620190426" id="SE:253:NetworkPassengerStopAssignment:90100050000000009022005000001002">
                       
<Name>Östgötatrafiken</Name> <!-- Required -->                         <AuthorityRef<ScheduledStopPointRef ref="SE:253:AuthorityScheduledStopPoint:90100050000000009022005001364002" version="2013120620190426"/>
                    </Network>                  <QuayRef ref="SE:253:Quay:9022005000100216"/>
  <additionalNetworks>                         <!-- More Network elements --></PassengerStopAssignment>
                        </additionalNetworks>

 <PassengerStopAssignment order="3" version="20190426" id="SE:253:PassengerStopAssignment:9022005000001003">
                  <routePoints>          <ScheduledStopPointRef ref="SE:253:ScheduledStopPoint:9022005000057002" version="20190426"/>
            <!-- A point that is a stop place in a route. -->          <QuayRef ref="SE:253:Quay:9022005000102017"/>
              <RoutePoint version="20190426" id="SE:253:RoutePoint:9022005000001001">        </PassengerStopAssignment>
                    <projections>    <!-- More PassengerStopAssignment elements -->
                    </stopAssignments>
   <PointProjection version="20190426" id="SE:253:PointProjection:9022005000001001">               <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 elements -->
  <ProjectedPointRef ref="SE:253:ScheduledStopPoint:9022005000001001" version="20190426"/>                </notices>
                </PointProjection>ServiceFrame>
                <ServiceCalendarFrame version="20191127125021" id="SE:253:ServiceCalendarFrame:1">
                   </projections>
        <!-- Each unique combination of operating days will create one DayType. -->
                </RoutePoint>    <!-- The DayType contains each operating date or an OperatingPeriodRef as a DayTypeAssignment. -->
       <!-- More RoutePoint elements -->         <dayTypes>
           </routePoints>             <DayType version="any" id="SE:253:DayType:1"/>
     <destinationDisplays>                   <DayType version="any" id="SE:253:DayType:2"/>
   <!-- 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:3"/>
                         <!-- --<DayType version="any" id="SE:253:DayType:4"/>
                        <DestinationDisplay<DayType version="any" id="SE:253:DestinationDisplayDayType:via_557000000372116915"/>
                        <DayType    <FrontText>Västerlösa</FrontText> <!-- Required --version="any" id="SE:253:DayType:6"/>
                        <DayType    <PublicCode>573</PublicCode> <!-- Optional Line Designation/number --version="any" id="SE:253:DayType:7"/>
                        <DayType version="any" id="SE:253:DayType:8"/>
 <!-- SideText is ignored -->                   <DayType      </DestinationDisplay>version="any" id="SE:253:DayType:9"/>
                        <DestinationDisplay<DayType version="any" id="SE:253:DestinationDisplayDayType:5570000003721169110"/>
                        <DayType    <FrontText>Malmslätt</FrontText>version="any" id="SE:253:DayType:11"/>
                        <DayType    <PublicCode>573</PublicCode>version="any" id="SE:253:DayType:12"/>
                        <DayType version="any" id="SE:253:DayType:13"/>
 <vias>                   </dayTypes>
             <!-- max 1 via -->   <dayTypeAssignments>
                        <!-- Each DayTypeAssignments maps one <Via>operating Date to a DayType -->
                        <DayTypeAssignment order="1"      <DestinationDisplayRef refversion="any" id="SE:253:DestinationDisplay:via_55700000037211691" version="any"/DayTypeAssignment:1-20191125">
                            <Date>2019-11-25</Date>
   </Via>                         <DayTypeRef    </vias>ref="SE:253:DayType:1" version="any"/>
                        </DestinationDisplay>DayTypeAssignment>
                        <!-- More DestinationDisplay elements --<DayTypeAssignment order="2" version="any" id="SE:253:DayTypeAssignment:1-20191126">
                    </destinationDisplays>        <Date>2019-11-26</Date>
            <scheduledStopPoints>                <DayTypeRef         <!-- Point for planned disembarking and/or boarding.
              ref="SE:253:DayType:1" version="any"/>
          All ScheduledStopPoint must be mapped to a corresponding Quay, through PassengerStopAssignment further down the file. --></DayTypeAssignment>
                        <DayTypeAssignment <ScheduledStopPointorder="3" 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 currently don't use this value </ScheduledStopPoint>for anything, so it's not important for our import. -->
    <dataObjects>
        <SiteFrame  <!-- More ScheduledStopPoint elements -->version="20191127125021" id="SE:253:SiteFrame:1">
            <ValidBetween>
           </scheduledStopPoints>     <FromDate>2005-01-01T00:00:00</FromDate>
               <serviceLinks> <!-- Optional,ToDate omitis ifomitted emptysince -->if there are elements within the frame that have indefinite validity, the frame must also have          <!that. -->
A ServiceLink describes the actual path a vehicle travels between two stop points. In GTFS this</ValidBetween>
is called Shapes. -->         <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</codespaces>
(decimals 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 can <PassengerStopAssignment order="1" version="20190426" id="SE:253:PassengerStopAssignment:9022005000001001">
board or disembark a vehicle.
                        For example tactile <ScheduledStopPointRef ref="SE:253:ScheduledStopPoint:9022005000001001" version="20190426"/>
              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:90220050000010029022005000001001">
           
                <ScheduledStopPointRef ref="SE:253:ScheduledStopPoint:9022005001364002" version="20190426"/>                <ValidBetween>
            <QuayRef ref="SE:253:Quay:9022005000100216"/>                   <FromDate>2019-04-26T00:00:00</FromDate>
     </PassengerStopAssignment>                       </ValidBetween>
 <PassengerStopAssignment order="3" version="20190426" id="SE:253:PassengerStopAssignment:9022005000001003">                        <Name>Norr Tull</Name> <!-- Optional, max <ScheduledStopPointRef ref="SE:253:ScheduledStopPoint:9022005000057002" version="20190426"/50 characters -->
                            <QuayRef ref="SE:253:Quay:9022005000102017"/>
    <ShortName>Norr Tull</ShortName> <!-- Optional, max 16 characters -->
                   </PassengerStopAssignment>         <Centroid>
               <!-- More PassengerStopAssignment elements -->             <Location>
       </stopAssignments>                     <notices>        <Longitude>16.177052</Longitude>
                <!-- Text-based notes describing circumstances which cannot be modelled as structured data.         <Latitude>58.595038</Latitude>
               These are mapped to ServiceJourneys in the line-files through NoticeAssignment.         </Location>
               (Note: the example text below should actually be provided as a BookingArrangement (WIP for us))--></Centroid>
                         <Notice version="any" id="SE:253:Notice:55700000050931583">
               <PublicCode>1</PublicCode> <!-- Optional designation meant to be shown for passengers. Max 4 characters long. -->
             <Text>Turen måste förbeställas  0771 - 71 10 20 senast 2 timmar</Quay>
före avresa från turens starthållplats.</Text> <!-- Required-->                  <Quay version="20140218" id="SE:253:Quay:9022005000100216">
    </Notice>                        <ValidBetween>
<!--  More Notice elements -->                     </notices>      <FromDate>2019-04-26T00:00:00</FromDate>
          </ServiceFrame>                 <ServiceCalendarFrame version="20191127125021" id="SE:253:ServiceCalendarFrame:1"> </ValidBetween>
                     <!-- Each unique combination of operating days will<Name>Norr createTull</Name>
one DayType. -->                     <!-- The DayType contains each operating<ShortName>Norr dateTull</ShortName>
as a DayTypeAssignment. -->                     <dayTypes>    <Location>
                    <DayType version="any" id="SE:253:DayType:1"/>          <Longitude>16.176760</Longitude>
              <DayType version="any" id="SE:253:DayType:2"/>                <Latitude>58.595074</Latitude>
        <DayType version="any" id="SE:253:DayType:3"/>                   </Location>
     <DayType version="any" id="SE:253:DayType:4"/>                     <PublicCode>2</PublicCode>
   <DayType version="any" id="SE:253:DayType:5"/>                   </Quay>
     <DayType version="any" id="SE:253:DayType:6"/>                  <!-- More Quay elements -->
  <DayType version="any" id="SE:253:DayType:7"/>                </quays>
        <DayType version="any" id="SE:253:DayType:8"/>      </StopPlace>
                <!-- More <DayType version="any" id="SE:253:DayType:9"/StopPlace elements -->
            </stopPlaces>
           <DayType version="any" id="SE:253:DayType:10"/ <navigationPaths> <!-- Optional, omit if empty -->
                <!-- A detailed description of the path between two places, in <DayType version="any" id="SE:253:DayType:11"/>
      our import and export we only handle Quay-to-Quay NavigationPaths. -->
                 <DayType<NavigationPath version="any20180504" id="SE:253:DayTypeNavigationPath:1255700000046273098"/>
                    <Distance>0</Distance> <!-- Optional. Total length <DayType version="any" id="SE:253:DayType:13"/(in meters). -->
                    </dayTypes><From>
                         <dayTypeAssignments>
   <PlaceRef ref="SE:253:Quay:9022005000100216" version="20140218"/> <!-- Required -->
                    <!-- Each DayTypeAssignments maps one operating Date to a DayType -->
 /From>
                    <To>
                      <DayTypeAssignment order="1" version="any" id <PlaceRef ref="SE:253:DayTypeAssignment:1-20191125">
  Quay:9022005000102017" version="20181204"/> <!-- Required -->
                    </To>
    <!-- Choices OperatingPeriodRef and OperatingDayRef are ignored -->         <TransferDuration>
                   <Date>2019-11-25</Date>     <DefaultDuration>PT6M</DefaultDuration> <!-- Required. Specifies the duration of the transfer. -->
              <DayTypeRef ref="SE:253:DayType:1" version="any"/>    </TransferDuration>
                    </DayTypeAssignment>!-- NavigationType is ignored -->
                    <DayTypeAssignment order="2" version="any" id="SE:253:DayTypeAssignment:1-20191126"<!-- AccessibilityAssessment is ignored -->
                </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 this </DayTypeAssignment>value for anything, so it's not important for our import. -->
    <dataObjects>
        <CompositeFrame <DayTypeAssignment ordercreated="32019-11-27T12:50:21" version="any20191127125021" id="SE:253:DayTypeAssignmentCompositeFrame:1-201911279011005005300000">
            <ValidBetween>
                <Date>2019<FromDate>2005-11-27</Date>01-01T00:00:00</FromDate>
                <!-- ToDate is omitted since if there are elements within the frame <DayTypeRef ref="SE:253:DayType:1" version="any"/>
        that have indefinite validity, the frame must also have that. -->
               </DayTypeAssignment>
    ValidBetween>
            <codespaces>
      <!-- More DayTypeAssignment elements -->      <Codespace id="253"> <!-- id is the same as Xmlns below  -->
   </dayTypeAssignments>                 <<Xmlns>253</ServiceCalendarFrame>Xmlns> <!-- From Samtrafiken's registry of producer numbers, provided by Samtrafiken -->
 </frames>
        </CompositeFrame>     </dataObjects> </PublicationDelivery>

_stops.xml

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

               </NavigationPath>                 <!-- More NavigationPath elements References to relevant ServiceLinks that has been defined in the _shared_data.xml-file -->
            </navigationPaths>         </SiteFrame>     </dataObjects>
</PublicationDelivery>

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

...

breakoutModefull-width
languagexml

...

      <ServiceLinkInJourneyPattern order="1" version="any" id="SE:253:ServiceLinkInJourneyPattern:BUS_391">
                                    <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>