Versions Compared

Key

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

...

This page contains documentation of how Noptis (DOI) data is converted to Netex (the Nordic Profile).

_shared_data.xml

...

breakoutModefull-width
languagexml

...

on how Samtrafiken exports data in the NeTEx format according to the Nordic NeTEx Profile. It also shows how this NeTEx export is mapped from Noptis (DOI/DII) data (see https://www.

...

noptis.

...

com/), which is the format that many PTA:s use to deliver their data to Samtrafiken.

If you are using Samtrafiken’s NeTEx sales data (used for sales through Samtrafiken ACCESS) then you should also read the specific documentation for that dataset here: https://samtrafiken.atlassian.net/wiki/x/GYCOzQ.

Changelog of this documentation

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

2024-11-27 - Added TopographicPlaces in _stops.xml. Several european countries, and for Sweden all counties and municipalities are included.

ServiceCalendar, DayType, OperatingPeriod and DayTypeAssignment

The ServiceCalendar information is specified using DayTypes with PropertyOfDay specifying which DaysOfWeek that the service runs (N.B: In some cases this can also be empty).

An OperatingPeriod is connected to the DayType using a DayTypeAssignment, thereby specifying during which period the DayType is valid.

Finally, to handle exceptional days (added or excluded dates) additional DayTypeAssignments are connected to the DayType, specifying additional dates as either added (the default) or excluded (marked by setting <isAvailable>false</isAvailable>).

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

Code Block
languagexml
<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 this time, but NOT including this time. 
       So the last possible trip would depart on 2022-12-09 23:59:59 -->
</OperatingPeriod>

_shared_data.xml

This is an example of the file _shared_data.xml with explanations on how the different fields and elements are mapped to the Noptis format.

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" xmlns:ns3="http://www.siri.org.uk/siri">
    <PublicationTimestamp>2019-11-27T12:50:21</PublicationTimestamp> <!-- Timestamp of export -->
    <ParticipantRef>SAM</ParticipantRef>
    <dataObjects>
        <CompositeFrame created="2019-11-27T12:50:21" version="20191127125021" id="SE:253:CompositeFrame:1"> <!-- Version is timestamp of export, id is always 1 -->
            <ValidBetween>
                <FromDate>2005-01-01T00:00:00</FromDate> <!-- Always set to 2005-01-01 -->
            </ValidBetween>
            <codespaces>
                <Codespace id="253"> <!-- id is same as Xmlns -->
                    <Xmlns>253</Xmlns> <!-- From Samtrafiken's registry of producer numbers, based on data source -->
                    <XmlnsUrl>http://www.samtrafiken.se/ns/Östgötatrafiken</XmlnsUrl> <!-- "Östgötatrafiken" is based on data source -->
                </Codespaced>
            </codespaces>
            <FrameDefaults>
                <DefaultLocale>
                    <TimeZone>Europe/Stockholm</TimeZone>
                    <DefaultLanguage>se</DefaultLanguage>
                </DefaultLocale>
                <DefaultLocationSystem>4326</DefaultLocationSystem> <!-- All coordinates are WGS84 -->
            </FrameDefaults>
            <frames>
                <ResourceFrame version="20191127125021" id="SE:253:ResourceFrame:1"> <!-- Version is timestamp of export (YYYYMMDDHHmmSS), id is always 1 -->
                    <organisations>
                        <!-- Authority is based on Noptis.TransportAuthority -->
                        <Authority version="20131206" id="SE:253:Authority:9010005000000000"> <!-- version=Noptis.TransportAuthority.ExistsFromDate, id=Noptis.TransportAuthority.Gid -->
                            <ValidBetween>
                                <FromDate>2019-02-13T00:00:00</FromDate> <!-- Noptis.TransportAuthority.ExistsFromDate -->
                                <!-- ToDate = Noptis.TransportAuthority.ExistsToDate, in this case "ExistsToDate" is null -->
                            </ValidBetween>
                            <PrivateCode>253</PrivateCode>
                            <Name>Östgötatrafiken</Name> <!-- Noptis.TransportAuthority.Name -->
                            <LegalName>Östgötatrafiken</LegalName> <!-- Noptis.Organisation.FormalName -->
                            <OrganisationType>authority</OrganisationType> <!-- Always "authority" -->
                        </Authority>
                        <!-- More Authority elements -->
                        <!-- Operator is based on Noptis.Contractor -->
                        <Operator version="20131211" id="SE:253:Operator:9013005918200000"> <!-- version=Noptis.Contractor.ExistsFromDate, id=Noptis.Contractor.Gid -->
                            <ValidBetween>
                                <FromDate>2019-02-13T00:00:00</FromDate> <!-- Noptis.Contractor.ExistsFromDate -->
                                <!-- ToDate = Noptis.Contractor.ExistsToDate, in this case "ExistsToDate" is null -->
                            </ValidBetween>
                            <Name>eBuss Motala</Name> <!-- Noptis.Contractor.Name -->
                            <LegalName>eBuss i Sverige AB</LegalName> <!-- Noptis.Organisation.FormalName -->
                            <OrganisationType>operator</OrganisationType> <!-- Always "operator" -->
                        </Operator>
                        <!-- More Operator elements -->
                    </organisations>
                </ResourceFrame>
                <ServiceFrame version="20191127125021" id="SE:253:ServiceFrame:1"> <!-- Version is timestamp of export (YYYYMMDDHHmmSS), id is always 1 -->
                    <!-- Each unique Noptis.Line.IsDefinedByTransportAuthority will create a Network with the AuthorityRef. In this case there is only one, 
                    additional Networks would be placed in an "additionalNetworks" element. -->
                    <Network version="20131206" id="SE:253:Network:9010005000000000"> <!-- version=Noptis.TransportAuthority.ExistsFromDate, id=Noptis.TransportAuthority.Gid -->
                        <Name>Östgötatrafiken</Name> <!-- Noptis.TransportAuthority.Name -->
                        <AuthorityRef ref="SE:253:Authority:9010005000000000" version="20131206"/>
                        <!-- WIP, Netex.GroupOfLines is based on Noptis.GroupOfLines -->
                        <groupsOfLines>
                            <GroupOfLines version="1" id="SE:253:GroupOfLines:1">
                                <ValidBetween>
                                    <FromDate>2019-02-13T00:00:00</FromDate> <!-- Noptis.GroupOfLines.ExistsFromDate -->
                                    <!-- ToDate = Noptis.GroupOfLines.ExistsToDate, in this case "ExistsToDate" is null -->
                                </ValidBetween>
                                <Name>Spårvagn</Name> <!-- Noptis.GroupOfLines.Name -->
                                <PrivateCode>SPV</PrivateCode> <!-- Noptis.GroupOfLine.Code -->
                                <members>
                                    <LineRef ref="SE:253:Line:9011005005300000"/> <!-- Based on Noptis.LineInGroupOfLines -->
                                </members>
                            </GroupOfLines>
                        </groupsOfLines>
                    </Network>
                    <routePoints>
                        <!-- RoutePoint, ScheduledStopPoint, PassengerStopAssignment are all based on Noptis.StopPoint -->
                        <RoutePoint version="20190426" id="SE:253:RoutePoint:9022005000001001"> <!-- version=Noptis.StopPoint.ExistsFromDate, id=Noptis.StopPoint.Gid -->
                            <projections>
                                <PointProjection version="20190426" id="SE:253:PointProjection:9022005000001001"> <!-- version=Noptis.StopPoint.ExistsFromDate, id=Noptis.StopPoint.Gid -->
                                    <ProjectedPointRef ref="SE:253:ScheduledStopPoint:9022005000001001" version="20190426"/>
                                </PointProjection>
                            </projections>
                        </RoutePoint>
                        <!-- More RoutePoint elements -->
                    </routePoints>
                    <destinationDisplays>
                        <!-- DestinationDisplay is based on Noptis.DestinationDisplay -->
                        <!-- DestinationDisplays that are used as "via" are created from each Noptis.DestinationDisplay.SecondaryDestinationName. Theses elements are recognized by having "via_" prepended to their id.
                        In the example below, both DestinationDisplay elements are created from the same Noptis.DestinationDisplay. -->
                        <DestinationDisplay version="any" id="SE:253:DestinationDisplay:via_55700000037211691"> <!-- id=Noptis.DestinationDisplay.Id -->
                            <FrontText>Västerlösa</FrontText> <!-- Noptis.DestinationDisplay.SecondaryDestinationName -->
                            <PublicCode>573</PublicCode> <!-- Noptis.DestinationDisplay.LineDesignation -->
                        </DestinationDisplay>
                        <DestinationDisplay version="any" id="SE:253:DestinationDisplay:55700000037211691"> <!-- id=Noptis.DestinationDisplay.Id -->
                            <FrontText>Malmslätt</FrontText> <!-- Noptis.DestinationDisplay.PrimaryDestinationName -->
                            <PublicCode>573</PublicCode> <!-- Noptis.DestinationDisplay.LineDesignation -->
                            <vias>
                                <Via>
                                    <DestinationDisplayRef ref="SE:253:DestinationDisplay:via_55700000037211691" version="any"/>
                                </Via>
                            </vias>
                        </DestinationDisplay>
                        <!-- More DestinationDisplay elements -->
                    </destinationDisplays>
                    <scheduledStopPoints>
                        <!-- RoutePoint, ScheduledStopPoint, PassengerStopAssignment are all based on Noptis.StopPoint -->
                        <ScheduledStopPoint version="20190426" id="SE:253:ScheduledStopPoint:9022005000001001"> <!-- version=Noptis.StopPoint.ExistsFromDate, id=Noptis.StopPoint.Gid -->
                            <Name>Norr Tull</Name> <!-- Noptis.StopPoint.Name -->
                        </ScheduledStopPoint>
                        <!-- More ScheduledStopPoint elements -->
                    </scheduledStopPoints>
                    <serviceLinks>
                        <!-- ServiceLink is based on Noptis.RouteLink -->
                        <ServiceLink version="20190213" id="SE:253:ServiceLink:BUS_9025005000136402_9025005000005702"> <!-- version=Noptis.RouteLink.ExistsFromDate, 
                            id=Noptis.RouteLinkTraversableByTransportModeCode.TransportModeCode + Noptis.RouteLink.StartsAtJourneyPatternPointGid + Noptis.RouteLink.EndsAtJourneyPatternPointGid -->
                            <ValidBetween>
                                <FromDate>2019-02-13T00:00:00</FromDate> <!-- Noptis.RouteLink.ExistsFromDate -->
                                <!-- ToDate = Noptis.RouteLink.ExistsToDate, in this case "ExistsToDate" is null -->
                            </ValidBetween>
                            <Distance>338</Distance> <!-- Noptis.RouteLink.DistanceMeters -->
                            <projections>
                                <LinkSequenceProjection version="20190213" id="SE:253:LinkSequenceProjection:BUS_9025005000136402_9025005000005702"> <!-- Same ID as parent ServiceLink -->
                                    <ns2:LineString srsName="4326" ns2:id="LS_BUS_9025005000136402_9025005000005702"> <!-- Same ID as parent ServiceLink but with "LS_" prepended -->
                                        <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> 
                                        <!-- Each coordinate pair is created from one Noptis.PointOnRouteLink -->
                                    </ns2:LineString>
                                </LinkSequenceProjection>
                            </projections>
                            <FromPointRef ref="SE:253:ScheduledStopPoint:9022005001364002" version="20190426"/> <!-- Noptis.RouteLink.StartsAtJourneyPatternPointGid -->
                            <ToPointRef ref="SE:253:ScheduledStopPoint:9022005000057002" version="20190426"/> <!-- Noptis.RouteLink.EndsAtJourneyPatternPointGid -->
                            <VehicleMode>bus</VehicleMode> <!-- See the section "General Noptis to Netex mappings" below -->
                        </ServiceLink>
                        <!-- More ServiceLink elements -->
                    </serviceLinks>
                    <stopAssignments>
                        <!-- RoutePoint, ScheduledStopPoint, PassengerStopAssignment are all based on Noptis.StopPoint -->
                        <PassengerStopAssignment order="0" version="20190426" id="SE:253:PassengerStopAssignment:9022005000001001"> <!-- version=Noptis.StopPoint.ExistsFromDate, id=Noptis.StopPoint.Gid, "order" is always 0 -->
                            <ScheduledStopPointRef ref="SE:253:ScheduledStopPoint:9022005000001001" version="20190426"/>
                            <QuayRef ref="SE:253:Quay:9022005000001001"/>
                        </PassengerStopAssignment>
                        <!-- More PassengerStopAssignment elements -->
                    </stopAssignments>
                    <notices>
                        <!-- Notice is based on Noptis.AdvanceOrderCondition -->
                        <Notice version="any" id="SE:253:Notice:55700000050931583"> <!-- id=Noptis.AdvanceOrderCondition.Id -->
                            <Text>Turen måste förbeställas på 0771 - 71 10 20 senast 2 timmar före avresa från turens starthållplats.</Text> <!-- Noptis.AdvanceOrderCondition.PublicNote -->
                        </Notice>
                        <!-- More Notice elements -->
                    </notices>
                </ServiceFrame>
                <ServiceCalendarFrame version="20191127125021" id="SE:253:ServiceCalendarFrame:1"> <!-- Version is timestamp of export (YYYYMMDDHHmmSS), id is always 1 -->
                    <!-- The content of ServiceCalendarFrame is created based on Noptis.DatedVehicleJourney.OperatingDayDate but a pattern of runnings days and operating period is constructed to represent that data.
                    Each unique combination of operating days of a Noptis.VehicleJourney will create one DayType. -->
                    <dayType
                        <DayType version="any" id="SE:253:DayType:a33m5mgb2thf88dnl75h8a8jt21i3iqu">
                          <properties>
                            <PropertyOfDay>
                              <DaysOfWeek>Monday Tuesday Wednesday Thursday Friday</DaysOfWeek>
                            </PropertyOfDay>
                          </properties>
                        </DayType>
                        <DayType version="any" id="SE:253:DayType:4vfuvln5ed1bte5nrbf56qees9vakerf">
                          <properties>
                            <PropertyOfDay>
                              <DaysOfWeek>Saturday Sunday</DaysOfWeek>
                            </PropertyOfDay>
                          </properties>                        
                        </DayType>
                    </dayTypes>
                    <operatingPeriods>
                        <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 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>
                        <OperatingPeriod version="any" id="SE:253:OperatingPeriod:221212230331">
                            <FromDate>2022-12-12T00:00:00</FromDate>
                            <ToDate>2023-04-01T00:00:00</ToDate>
                        </OperatingPeriod>
                    </operatingPeriods>                    
                    <dayTypeAssignments>
                        <DayTypeAssignment order="1" version="any" id="SE:253:DayTypeAssignment:a33m5mgb2thf88dnl75h8a8jt21i3iqu">
                            <OperatingPeriodRef ref="SE:253:OperatingPeriod:221108221209" version="any"/>
                            <DayTypeRef ref="SE:253:DayType:a33m5mgb2thf88dnl75h8a8jt21i3iqu" version="any"/>
                        </DayTypeAssignment>
                        <DayTypeAssignment order="1" version="any" id="SE:253:DayTypeAssignment:4vfuvln5ed1bte5nrbf56qees9vakerf">
                            <OperatingPeriodRef ref="SE:253:OperatingPeriod:221212230331" version="any"/>
                            <DayTypeRef ref="SE:253:DayType:4vfuvln5ed1bte5nrbf56qees9vakerf" version="any"/>
                        </DayTypeAssignment>
                        <DayTypeAssignment order="2" version="any" id="SE:253:DayTypeAssignment:4vfuvln5ed1bte5nrbf56qees9vakerf_221226">
                            <Date>2022-12-26</Date>
                            <DayTypeRef ref="SE:253:DayType:4vfuvln5ed1bte5nrbf56qees9vakerf" version="any"/>
                        </DayTypeAssignment>                        
                        <DayTypeAssignment order="3" version="any" id="SE:253:DayTypeAssignment:4vfuvln5ed1bte5nrbf56qees9vakerf_230107">
                            <Date>2023-01-07</Date>
                            <DayTypeRef ref="SE:253:DayType:4vfuvln5ed1bte5nrbf56qees9vakerf" version="any"/>
                            <isAvailable>false</isAvailable>
                        </DayTypeAssignment>
                        <!-- More DayTypeAssignment elements -->
                    </dayTypeAssignments>
                </ServiceCalendarFrame>
            </frames>
        </CompositeFrame>
    </dataObjects>
</PublicationDelivery>

_stops.xml

This is a shortened example of the file _stops.xml with explanations on how the different fields and elements are mapped to the Noptis format.

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" xmlns:ns3="http://www.siri.org.uk/siri">
    <PublicationTimestamp>2019-11-27T12:50:21</PublicationTimestamp> <!-- Timestamp of export -->
    <ParticipantRef>SAM</ParticipantRef>
    <dataObjects>
        <SiteFrame version="20191127125021" id="SE:253:SiteFrame:1"> <!-- Version is timestamp of export (YYYYMMDDHHmmSS), id is always 1 -->
            <ValidBetween>
                <FromDate>2005-01-01T00:00:00</FromDate> <!-- Always set to 2005-01-01 -->
            </ValidBetween>
            <codespaces>
                <Codespace id="253"> <!-- id is same as Xmlns -->
                    <Xmlns>253</Xmlns> <!-- From Samtrafiken's registry of producer numbers, based on data source -->
                    <XmlnsUrl>http://www.samtrafiken.se/ns/Östgötatrafiken</XmlnsUrl> <!-- "Östgötatrafiken" is based on data source -->
                </Codespace>
            </codespaces>
            <FrameDefaults>
                <DefaultLocale>
                    <TimeZone>Europe/Stockholm</TimeZone>
                    <DefaultLanguage>se</DefaultLanguage>
                </DefaultLocale>
                <DefaultLocationSystem>4326</DefaultLocationSystem> <!-- All coordinates are WGS84 -->
            </FrameDefaults>
            <topographicPlaces>
                <TopographicPlace version="any" id="SE:005:TopographicPlace:NO">
                    <IsoCode>NO</IsoCode>
                    <Descriptor>
                        <Name>Norway</Name>
                    </Descriptor>
                    <TopographicPlaceType>country</TopographicPlaceType>
                    <CountryRef ref="no"/>
                </TopographicPlace>
                <TopographicPlace version="any" id="SE:005:TopographicPlace:SE">
                    <IsoCode>SE</IsoCode>
                    <Descriptor>
                        <Name>Sweden</Name>
                    </Descriptor>
                    <TopographicPlaceType>country</TopographicPlaceType>
                    <CountryRef ref="se"/>
                </TopographicPlace>
                <TopographicPlace version="any" id="SE:005:TopographicPlace:SE_1">
                    <PrivateCode>01</PrivateCode>
                    <IsoCode>SE-01</IsoCode>
                    <Descriptor>
                        <Name>Stockholms län</Name>
                    </Descriptor>
                    <TopographicPlaceType>county</TopographicPlaceType>
                    <CountryRef ref="se"/>
                    <ParentTopographicPlaceRef ref="SE:005:TopographicPlace:SE" version="any"/>
                </TopographicPlace>
                <TopographicPlace version="any" id="SE:005:TopographicPlace:SE_0160">
                    <PrivateCode>0160</PrivateCode>
                    <Descriptor>
                        <Name>Täby kommun</Name>
                    </Descriptor>
                    <TopographicPlaceType>municipality</TopographicPlaceType>
                    <CountryRef ref="se"/>
                    <ParentTopographicPlaceRef ref="SE:005:TopographicPlace:SE_1" version="any"/>
                </TopographicPlace>
                <TopographicPlace version="any" id="SE:005:TopographicPlace:SE_0162">
                    <PrivateCode>0162</PrivateCode>
                    <Descriptor>
                        <Name>Danderyds kommun</Name>
                    </Descriptor>
                    <TopographicPlaceType>municipality</TopographicPlaceType>
                    <CountryRef ref="se"/>
                    <ParentTopographicPlaceRef ref="SE:005:TopographicPlace:SE_1" version="any"/>
                </TopographicPlace>
                <!-- More TopographicPlace elements. All counties and municipalities in Sweden -->                
            </topographicPlaces>
            <groupsOfStopPlaces> <!-- GroupOfStopPlace is based on Noptis.Site -->
              <GroupOfStopPlaces version="20120623" id="SE:001:GroupOfStopPlaces:9091001000000103"> <!-- version=Noptis.Site.ExistsFromDate, id=Noptis.Site.Gid -->
                    <ValidBetween>
                        <FromDate>2012-06-23T00:00:00</FromDate> <!-- Noptis.Site.ExistsFromDate -->
                    </ValidBetween>
                    <Name>Nämdöböte</Name> <!-- Noptis.Site.Name -->
                    <Description>Nämdö</Description> <!-- Noptis.Site.PublicNote -->
                    <PrivateCode>103</PrivateCode> <!-- Noptis.Site.Number -->
                    <members>
                        <!-- StopPlaceRefs are based on Noptis.SiteNeighbouringStopArea -->
                        <StopPlaceRef ref="SE:001:StopPlace:9021001000103000" version="20210224"/> <!-- ref=Noptis.StopArea.Gid, version=Noptis.StopArea.ExistsFromDate -->
                        <StopPlaceRef ref="SE:001:StopPlace:9021005000001000" version="20161213"/> <!-- ref=Noptis.StopArea.Gid, version=Noptis.StopArea.ExistsFromDate -->
                    </members>
                    <Centroid>
                        <Location srsName="WGS84"> <!-- Noptis.Site.CoordinateSystemName -->
                            <Longitude>18.739921</Longitude> <!-- Noptis.Site.CentroidEastingCoordinate -->
                            <Latitude>59.208826</Latitude> <!-- Noptis.Site.CentroidNorthingCoordinate -->
                        </Location>
                    </Centroid>
                </GroupOfStopPlaces>
            </groupsOfStopPlaces>
            <stopPlaces> <!-- StopPlace is based on Noptis.StopArea -->
                <StopPlace version="20161213" id="SE:253:StopPlace:9021005000001000"> <!-- version=Noptis.StopArea.ExistsFromDate, id=Noptis.StopArea.Gid -->
                    <ValidBetween>
                        <FromDate>2016-12-13T00:00:00</FromDate> <!-- Noptis.StopArea.ExistsFromDate -->
                        <!-- ToDate = Noptis.StopArea.ExistsToDate, in this case "ExistsToDate" is null -->
                    </ValidBetween>
                    <Name>Norr Tull</Name> <!-- Noptis.StopArea.Name -->
                    <ShortName>Norr Tull</ShortName> <!-- Noptis.StopArea.ShortName -->
                    <PrivateCode>1</PrivateCode> <!-- Noptis.StopArea.Number -->
                    <Centroid>
                        <Location>
                            <Longitude>16.176723</Longitude> <!-- Noptis.StopArea.CentroidEastingCoordinate -->
                            <Latitude>58.594850</Latitude> <!-- Noptis.StopArea.CentroidNorthingCoordinate -->
                        </Location>
                    </Centroid>
                    <TopographicPlaceRef ref="SE:005:TopographicPlace:SE_0160" version="any"/> <!-- Stops in Sweden are linked to their Municipality. Stops in other countries are linked to their Country. -->
                    <OrganisationRef ref="SE:253:Authority:9010005000000000"/> <!-- Noptis.StopArea.IsDefinedByTransportAuthortiy -->
                    <entrances> <!-- Entrances are based on Noptis.StationEntrancePoint -->
                        <StopPlaceEntrance version="20120623" id="SE:275:StopPlaceEntrance:9023001006651001"> <!-- version=Noptis.StationEntrancePoint.ExistsFromDate, id=Noptis.StationEntrancePoint.Gid -->
                            <ValidBetween>
                                <FromDate>2014-03-11T00:00:00</FromDate>  <!-- Noptis.StationEntrancePoint.ExistsFromDate but not earlier than parent StopPlace.FromDate -->
                                <!-- ToDate = Noptis.StationEntrancePoint.ExistsToDate, in this case "ExistsToDate" is null, not later than parent StopPlace.ToDate -->
                            </ValidBetween>
                            <Name>Djursholms Ösby</Name> <!-- Noptis.StationEntrancePoint.Name -->
                            <Centroid>
                                <Location>
                                    <Longitude>18.058320</Longitude> <!-- Noptis.StationEntrancePoint.LocationEastingCoordinate -->
                                    <Latitude>59.397925</Latitude> <!-- Noptis.StationEntrancePoint.LocationNorthingCoordinate -->
                                </Location>
                        <CompositeFrame created="2019-11-27T12:50:21" version="20191127125021" id="SE:253:CompositeFrame:1"> <!-- Version is timestamp of export, id is always 1 --> </Centroid>
                        </StopPlaceEntrance>
      <ValidBetween>                 <FromDate>2005-01-01T00:00:00</FromDate> <!-- AlwaysMore setStopPlaceEntrance toelements 2005-01-01 -->->
                    </entrances>
                    <<TransportMode>bus</ValidBetween>TransportMode> <!-- See the section "General Noptis to Netex mappings" below -->
 <codespaces>                 <Codespace id="253"> <!-- id is same as Xmlns --> <tariffZones>
                        <TariffZoneRef  <Xmlns>253</Xmlns>ref="SE:005:TariffZone:9081005201004216" version="160620"/> <!-- Tariff zones Fromthis Samtrafiken'sstop registryarea ofbelongs producerto numbers, basedNoptis.JourneyPatternPointInZone aggregated on dataStopArea sourcelevel -->
                    <XmlnsUrl>http://www.samtrafiken.se/ns/Östgötatrafiken</XmlnsUrl> <!-- "Östgötatrafiken" is based on data source --></tariffZones>
                    <StopPlaceType>busStation</StopPlaceType>   </Codespaced>
            </codespaces>
 <!-- See the section "General Noptis to Netex mappings" below -->
          <FrameDefaults>          <Weighting>interchangeAllowed</Weighting> <!-- See the section "General Noptis <DefaultLocale>to Netex mappings" below -->
                <TimeZone>UTC</TimeZone>    <quays> <!-- Quay is based on Noptis.StopPoint and Noptis.JourneyPatternPoint -->
       <DefaultLanguage>se</DefaultLanguage>                 </DefaultLocale>
     <Quay version="20180419" id="SE:253:Quay:9022005000001001"> <!-- version=Noptis.StopPoint.ExistsFromDate, id=Noptis.StopPoint.Gid -->
          <DefaultLocationSystem>4326</DefaultLocationSystem> <!-- All coordinates are WGS84 -->            <ValidBetween>
</FrameDefaults>             <frames>                 <ResourceFrame version="20191127125021" id="SE:253:ResourceFrame:1"> <FromDate>2019-04-26T00:00:00</FromDate> <!-- Version is timestamp of export (YYYYMMDDHHmmSS), id is always 1Noptis.StopPoint.ExistsFromDate but not earlier than parent StopPlace.FromDate -->
                    <organisations>            <!-- ToDate = Noptis.StopPoint.ExistsToDate, in this case "ExistsToDate" is null, not later than <!-- Authority is based on Noptis.TransportAuthorityparent StopPlace.ToDate -->
                         <Authority version="20131206" id="SE:253:Authority:9010005000000000"> <!-- version=Noptis.TransportAuthority.ExistsFromDate, id=Noptis.TransportAuthority.Gid -->/ValidBetween>
                            <Name>Norr  <Name>Östgötatrafiken<Tull</Name> <!-- Noptis.TransportAuthorityStopPoint.Name -->
                            <ShortName>Norr <LegalName>Östgötatrafiken<Tull</LegalName>ShortName> <!-- Noptis.OrganisationStopPoint.FormalNameShortName -->
                            <OrganisationType>authority<<PrivateCode>1</OrganisationType>PrivateCode> <!-- Always "authority" -->
           Noptis.StopPoint.LocalNumber -->
            </Authority>                <Centroid>
        <!-- More Authority elements -->                    <Location>
    <!-- Operator is based on Noptis.Contractor -->                         <Operator version="20131211" id="SE:253:Operator:9013005918200000">  <Longitude>16.177052</Longitude> <!-- version=Noptis.Contractor.ExistsFromDate, id=Noptis.Contractor.GidJourneyPatternPoint.LocationEastingCoordinate -->
                            <Name>eBuss Motala</Name>        <Latitude>58.595038</Latitude> <!-- Noptis.ContractorJourneyPatternPoint.NameLocationNorthingCoordinate -->
                            <LegalName>eBuss i Sverige AB</LegalName> <!-- Noptis.Organisation.FormalName -->/Location>
                             <OrganisationType>operator<</OrganisationType>Centroid>
<!-- Always "operator" -->                         </Operator>
                        <!-- More Operator elements -->!-- WIP, Netex.ZoneProjections are based on Noptis.JourneyPatternPointInZone -->
                           </organisations> <projections>
               </ResourceFrame>                 <ServiceFrame<ZoneProjection version="20191127125021any" id="SETEST:253ZoneProjection:ServiceFrame:1">
<!-- Version is timestamp of export (YYYYMMDDHHmmSS), id is always 1 -->                     <!-- Each unique Noptis.Line.IsDefinedByTransportAuthority will create a Network with the AuthorityRef. In this case there is only one,<ProjectedZoneRef ref="TEST:TopographicPlace:1"/>
                                 additional Networks would be placed in an "additionalNetworks" element. --></ZoneProjection>
                         <Network version="20131206" id="SE:253:Network:9010005000000000"> <!-- version=Noptis.TransportAuthority.ExistsFromDate, id=Noptis.TransportAuthority.Gid --> </projections>
                            <Name>Östgötatrafiken<<PublicCode>A</Name>PublicCode> <!-- Noptis.TransportAuthorityStopPoint.NameDesignation -->
                            <equipmentPlaces>  <AuthorityRef ref="SE:253:Authority:9010005000000000" version="20131206"/><!-- Based on Noptis ConnectionLink, ObstacleOnLink, BridgingDevice -->
                          </Network>
         <EquipmentPlace version="any" id="SE:001:EquipmentPlace:14010000311143397"> <!-- id = Noptis.BridgingDevice.Id -->
              <routePoints>                    <placeEquipments>
    <!-- RoutePoint, ScheduledStopPoint, PassengerStopAssignment are all based on Noptis.StopPoint -->                         <RoutePoint<EntranceEquipment version="20190426any" id="SE:253001:RoutePointEntranceEquipment:902200500000100114010000311143397"> <!-- id version=Noptis.StopPoint.ExistsFromDate, id=Noptis.StopPointBridgingDevice.GidId -->
                              <projections>
                 <Door>true</Door> <!-- Noptis.BridgingDevice (TypeCode = DOOR) -->
                          <PointProjection version="20190426" id="SE:253:PointProjection:9022005000001001"> <!-- version=Noptis.StopPoint.ExistsFromDate, id=Noptis.StopPoint.Gid -->      </EntranceEquipment>
                              <ProjectedPointRef ref="SE:253:ScheduledStopPoint:9022005000001001" version="20190426"/>  </placeEquipments>
                              </PointProjection>EquipmentPlace>
                            </projections>equipmentPlaces>
                        </RoutePoint>Quay>
                        <!-- More RoutePointQuay elements -->
                    </routePoints>quays>
                </StopPlace>
    <destinationDisplays>            <!-- More StopPlace elements -->
        <!-- DestinationDisplay is based on Noptis.DestinationDisplay -->    </stopPlaces>
            <tariffZones>
                <TariffZone version="160620" id="SE:005:TariffZone:9081005201004216"> <!-- DestinationDisplaysNoptis.Zone thatwhere areTypeCode used== as "viaTARIFFZO" are created from each Noptis.DestinationDisplay.SecondaryDestinationName. Theses elements are recognized by having "via_" prepended to their id.. version=Noptis.Zone.ExistsFromDate id=Noptis.Zone.Gid -->
                    <ValidBetween>
              In the example below, both DestinationDisplay elements are created from the same Noptis.DestinationDisplay. <FromDate>2016-06-20T00:00:00</FromDate> <!-- existsFromDate -->
                    </ValidBetween>
          <DestinationDisplay version="any" id="SE:253:DestinationDisplay:via_55700000037211691"> <!-- id=Noptis.DestinationDisplay.Id -->     <Name>Norrköping</Name> <!-- Name -->
                    <FrontText>Västerlösa<<ShortName>Norrköping</FrontText>ShortName> <!-- Noptis.DestinationDisplay.SecondaryDestinationNameShortname -->
                            <PublicCode>573</PublicCode><PrivateCode>1004216</PrivateCode> <!-- Noptis.DestinationDisplay.LineDesignationNumber -->
                </TariffZone>
            </DestinationDisplay>tariffZones>
            <navigationPaths> 
             <DestinationDisplay version="any" id="SE:253:DestinationDisplay:55700000037211691"> <!-- id=Noptis.DestinationDisplay.IdNavigationPath is based on Noptis.ConnectionLink when 'From' and 'To' are both Quay references -->
                <!-- NavigationPath is based on Noptis.StationEntryLink when 'From' is a StopPlaceEntrance reference and 'To' is <FrontText>Malmslätt</FrontText> <!-- Noptis.DestinationDisplay.PrimaryDestinationNamea Quay reference -->
                <!-- NavigationPath is based on Noptis.StationExitLink when 'From' is a Quay reference and 'To' is <PublicCode>573</PublicCode> <!-- Noptis.DestinationDisplay.LineDesignationa StopPlaceEntrance reference -->
                <!-- NavigationPath may contain validityConditions and timebands if they have limited dates <vias>and opening hours -->  
                <NavigationPath version="20180504" id="SE:253:NavigationPath:55700000046273098"> <!-- version=Noptis.ConnectionLink.ExistsFromDate, id=Noptis.ConnectionLink.Id -->
    <Via>                <Distance>0</Distance> <!-- version=Noptis.ConnectionLink.DistanceMeters. If null, Distance will be 0 -->
           <DestinationDisplayRef ref="SE:253:DestinationDisplay:via_55700000037211691" version="any"/>              <From>
                  </Via>      <PlaceRef ref="SE:253:Quay:9022005000100216" version="20140218"/> <!-- version=Noptis.StopPoint.ExistsFromDate id=Noptis.StopPoint.Gid from Noptis.ConnectionLink.StartsAtJourneyPatternPoint -->
                    </vias>From>
                    <To>
   </DestinationDisplay>                     <PlaceRef   ref="SE:253:Quay:9022005000102017" version="20181204"/> <!-- More DestinationDisplay elementsversion=Noptis.StopPoint.ExistsFromDate id=Noptis.StopPoint.Gid from Noptis.ConnectionLink.EndsAtJourneyPatternPoint -->
                    </destinationDisplays>To>
                    <scheduledStopPoints><TransferDuration>
                        <DefaultDuration>PT6M</DefaultDuration> <!-- RoutePoint, ScheduledStopPoint, PassengerStopAssignment are all based on Noptis.StopPoint -->version=Noptis.ConnectionLink.DefaultDurationSeconds -->
                    </TransferDuration>
                    <ScheduledStopPoint<AccessibilityAssessment version="2019042620180504" id="SE:253275:ScheduledStopPointAccessibilityAssessment:90220050000010014010000565163766"> <!-- SE:<producerNumber>:AccessibilityAssessment:<obstacleOnLinkId> , version=Noptis.StopPointObstacleOnLink.ExistsFromDate, id=Noptis.StopPoint.Gid -->
                      <MobilityImpairedAccess>unknown</MobilityImpairedAccess>  <!-- Always unknown,  <Name>Norr Tull</Name> <!-- Noptis.StopPoint.Namerequired field but data is not available  -->
                      <limitations>
   </ScheduledStopPoint>                       <AccessibilityLimitation>
     <!-- More ScheduledStopPoint elements -->                     <<WheelchairAccess>unknown</scheduledStopPoints>WheelchairAccess> <!-- Always unknown, required field but data is not available  -->
        <serviceLinks>                      <StepFreeAccess>false</StepFreeAccess>   <!-- ServiceLinkBridgingDevice.TypeCode, “false” if there is based on Noptis.RouteLink a BridgingDevice for which TypeCode == 'STAIRWAY'.  -->
                        <ServiceLink version="20190213" id="SE:253:ServiceLink:BUS_9025005000136402_9025005000005702">      <EscalatorFreeAccess>unknown</EscalatorFreeAccess> <!-- version=Noptis.RouteLink.ExistsFromDateBridgingDevice.TypeCode, “false” if there is a BridgingDevice for which TypeCode == 'ESCALAT'.  -->
                id=Noptis.RouteLinkTraversableByTransportModeCode.TransportModeCode + Noptis.RouteLink.StartsAtJourneyPatternPointGid + Noptis.RouteLink.EndsAtJourneyPatternPointGid -->         <LiftFreeAccess>unknown</LiftFreeAccess> <!-- BridgingDevice.TypeCode, “false” if there is a BridgingDevice for which TypeCode == 'ELEVATOR'.  -->
    <ValidBetween>                                 <FromDate>2019-02-13T00:00:00</FromDate> <!-- Noptis.RouteLink.ExistsFromDate --></AccessibilityLimitation>
                      </limitations>
           <!-- ToDate = Noptis.RouteLink.ExistsToDate, in this case "ExistsToDate" is null --> </AccessibilityAssessment>
                </NavigationPath>
             </ValidBetween>   <NavigationPath version="20120623" id="SE:251:NavigationPath:14010000311143757"> <!-- version=Noptis.StationEntryLink.ExistsFromDate, id=Noptis.StationEntryLink.Id -->
                   <Distance>338< <Distance>2.0</Distance> <!-- version=Noptis.RouteLinkStationEntryLink.DistanceMeters. -->If null, Distance will be 0 -->
                    <From>
 <projections>                                 <LinkSequenceProjection version="20190213" id="SE:253:LinkSequenceProjection:BUS_9025005000136402_9025005000005702"<PlaceRef ref="SE:251:StopPlaceEntrance:9023001006651002" version="20120623"/> <!-- Same ID as parent ServiceLinkversion=Noptis.StationEntrancePoint.ExistsFromDate id=Noptis.StationEntrancePoint.Gid -->
             
                      <ns2:LineString srsName="4326" ns2:id="LS_BUS_9025005000136402_9025005000005702"> <!-- Same ID as parent ServiceLink but with "LS_" prepended --></From>
                    <To>
                             <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> 
<PlaceRef ref="SE:251:Quay:9022003719007001" version="20150827"/> <!-- version=Noptis.StopPoint.ExistsFromDate id=Noptis.StopPoint.Gid from Noptis.StationEntryLink.EndsAtJourneyPatternPoint -->
                    </To>
                    <TransferDuration>
                  <!-- Each coordinate pair is created from one Noptis.PointOnRouteLink<DefaultDuration>PT3M1S</DefaultDuration> <!-- version=Noptis.StationEntryLink.DefaultDurationSeconds -->
                    </TransferDuration>
                </ns2:LineString>NavigationPath>
                <NavigationPath version="20120623" id="SE:251:NavigationPath:14010000311147186"> <!-- version=Noptis.StationExitLink.ExistsFromDate, id=Noptis.StationExitLink.Id -->
                    <Distance>3.0</Distance> </LinkSequenceProjection>
       !-- version=Noptis.StationExitLink.DistanceMeters. If null, Distance will be 0 -->
                    </projections><From>
                        <PlaceRef    <FromPointRef ref="SE:253251:ScheduledStopPointQuay:90220050013640029022003719007002" version="2019042620150827"/> <!-- version=Noptis.RouteLinkStopPoint.StartsAtJourneyPatternPointGid -->
                            <ToPointRef ref="SE:253:ScheduledStopPoint:9022005000057002" version="20190426"/> <!-- Noptis.RouteLink.EndsAtJourneyPatternPointGidExistsFromDate id=Noptis.StopPoint.Gid from Noptis.StationExitLink.StartsAtJourneyPatternPoint -->
                    </From>
       <VehicleMode>bus</VehicleMode> <!-- See the section "General Noptis to Netex mappings" below -->             <To>
                        <PlaceRef  </ServiceLink>
   ref="SE:251:StopPlaceEntrance:9023001006661001" version="20120623"/> <!-- version=Noptis.StationEntrancePoint.ExistsFromDate id=Noptis.StationEntrancePoint.Gid -->
                    <!-- More ServiceLink elements -->/To>
                    <TransferDuration>
      </serviceLinks>                  <DefaultDuration>PT3M2S</DefaultDuration> <!--  <stopAssignments>version=Noptis.StationExitLink.DefaultDurationSeconds -->
                    </TransferDuration>
       <!-- RoutePoint, ScheduledStopPoint, PassengerStopAssignment are all based on Noptis.StopPoint --> </NavigationPath>
                <pathLinksInSequence>
       <PassengerStopAssignment order="0" version="20190426" id="SE:253:PassengerStopAssignment:9022005000001001"> <!-- version=Noptis.StopPoint.ExistsFromDate, id=Noptis.StopPoint.Gid, "order" is always 0 -->
           <PathLinkInSequence order="1" version="any" id="SE:001:PathLinkInSequence:14010000311183662-1">
                        <ScheduledStopPointRef<LinkSequenceRef ref="SE:253001:ScheduledStopPointPathLink:902200500000100114010000311183662-1" version="2019042620120623"/> <!-- ref=Noptis.ConnectionLink.Id-1, version=Noptis.ConnectionLink.ExistsFrom -->
                    </PathLinkInSequence>
   <QuayRef ref="SE:253:Quay:9022005000001001"/>                <PathLinkInSequence order="2" version="any" id="SE:001:PathLinkInSequence:14010000311183662-2">
     </PassengerStopAssignment>                   <LinkSequenceRef ref="SE:001:PathLink:14010000311183662-2" version="20120623"/>    <!-- More PassengerStopAssignment elements<!-- ref=Noptis.ConnectionLink.Id-2, version=Noptis.ConnectionLink.ExistsFrom -->
                    </stopAssignments>PathLinkInSequence>
                </pathLinksInSequence>
   <notices>             <!-- More NavigationPath elements -->
         <!-- Notice is based</navigationPaths>
on Noptis.AdvanceOrderCondition -->          <pathLinks>
              <Notice<PathLink version="any20120623" id="SE:253001:NoticePathLink:5570000005093158314010000311183662-1">  <!-- id=Noptis.AdvanceOrderConditionConnectionLink.Id -->
                            <Text>Turen måste förbeställas på 0771 - 71 10 20 senast 2 timmar före avresa från turens starthållplats.</Text> <!-- Noptis.AdvanceOrderCondition.PublicNote1, version=Noptis.ConnectionLink.ExistsFrom -->
                <ValidBetween>
          </Notice>        <FromDate>2019-02-13T00:00:00</FromDate> <!-- Noptis.ConnectionLink.ExistsFromDate -->
                  <!-- MoreToDate Notice elements -->
     = Noptis.ConnectionLink.ExistsToDate, in this case "ExistsToDate" is null -->
                </notices>ValidBetween>
                </ServiceFrame><From>
                 <ServiceCalendarFrame version="20191127125021" id<PlaceRef ref="SE:253001:ServiceCalendarFrame:1"Quay:9022001070462002" version="20140603"/> <!-- Version is timestamp of export (YYYYMMDDHHmmSS), id is always 1 -->
                    <!-- The content of ServiceCalendarFrame is created based on Noptis.DatedVehicleJourney.OperatingDayDate. Each unique combination of operating days of a Noptis.VehicleJourney will create one DayType.id=Noptis.StopPoint.Gid, version=Noptis.StopPoint.Gid -->
                </From>
                <To>
        The DayType contains each Noptis.DatedVehicleJourney.OperatingDayDate as a DayTypeAssignment. OperatingPeriods or exceptions (DayTypeAssignment.isAvailable) are NOT used.<PlaceRef ref="SE:001:EquipmentPlace:14010000311143397" version="any"/> <!-- id=Noptis.BridgingDevice.id -->
                </To>
   <dayTypes>           </PathLink>
              <DayType<PathLink version="any20120623" id="SE:253001:DayTypePathLink:114010000311183662-2"/>  <!-- id=Noptis.ConnectionLink.Id-2,              version=Noptis.ConnectionLink.ExistsFrom -->
       <DayType version="any" id="SE:253:DayType:2"/>       <From>
                 <DayType version="any" id<PlaceRef ref="SE:253001:DayTypeEquipmentPlace:314010000311143397"/>                         <DayType version="any"/> id="SE:253:DayType:4"/<!-- id=Noptis.BridgingDevice.id -->
                </From>
       <DayType version="any" id="SE:253:DayType:5"/>       <To>
                 <DayType version="any" id<PlaceRef ref="SE:253001:DayType:6Quay:9022001070462001" version="20140603"/>         <!-- id=Noptis.StopPoint.Gid, version=Noptis.StopPoint.Gid -->
               <DayType version="any" id="SE:253:DayType:7"/> </To>
              </PathLink>
          <DayType version="any" id="SE:253:DayType:8"/> </pathLinks>
        </SiteFrame>
               <DayType version="any" id="SE:253:DayType:9"/>
                        <DayType version="any" id="SE:253:DayType:10"/>
                        <DayType version="any" id="SE:253:DayType:11"/>
              </dataObjects>
</PublicationDelivery>

line_{Noptis.TransportAuthority.Number}_{Noptis.Line.Number}_
{Noptis.Line.Gid}.xml (line_253_53_9011005005300000.xml)

This is an example of a line file with explanations on how the different fields and elements are mapped to the Noptis format.

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" xmlns:ns3="http://www.siri.org.uk/siri">
    <PublicationTimestamp>2019-11-27T12:50:21</PublicationTimestamp> <!-- Timestamp of export -->
    <ParticipantRef>SAM</ParticipantRef>
    <dataObjects>
         <DayType<CompositeFrame created="2019-11-27T12:50:21" version="any20191127125021" id="SE:253:DayTypeCompositeFrame:129011005005300000"/> <!-- Version is timestamp of export (YYYYMMDDHHmmSS), id will always be 1 -->
           <DayType version="any" id="SE:253:DayType:13"/><ValidBetween>
                     </dayTypes>
    <FromDate>2005-01-01T00:00:00</FromDate> <!-- Always set to 2005-01-01 -->
            </ValidBetween>
  <dayTypeAssignments>          <codespaces>
              <DayTypeAssignment order="1" version="any" <Codespace id="SE:253:DayTypeAssignment:1-20191125"> <!-- id is same as Xmlns -->
                    <Xmlns>253</Xmlns> <Date>2019<!-11-25</Date>
        - From Samtrafiken's registry of producer numbers, based on data source -->
                   <DayTypeRef ref="SE:253:DayType:1" version="any"/>
      <XmlnsUrl>http://www.samtrafiken.se/ns/Östgötatrafiken</XmlnsUrl> <!-- "Östgötatrafiken" is based on data source -->
                 </DayTypeAssignment>Codespace>
            </codespaces>
           <DayTypeAssignment order="2" version="any" id="SE:253:DayTypeAssignment:1-20191126"> <FrameDefaults>
                <DefaultLocale>
              <Date>2019-11-26</Date>      <TimeZone>Europe/Stockholm</TimeZone>
                    <DefaultLanguage>se</DefaultLanguage>
 <DayTypeRef ref="SE:253:DayType:1" version="any"/>             </DefaultLocale>
           </DayTypeAssignment>     <DefaultLocationSystem>4326</DefaultLocationSystem> <!-- All coordinates are WGS84 -->
            </FrameDefaults>
<DayTypeAssignment order="3" version="any" id="SE:253:DayTypeAssignment:1-20191127">         <frames>
                <ServiceFrame version="20191127125021"  <Date>2019-11-27</Date>
      id="SE:253:ServiceFrame:9011005005300000"> <!-- Version is timestamp of export (YYYYMMDDHHmmSS), id=Noptis.Line.Gid -->
                    <routes>
<DayTypeRef ref="SE:253:DayType:1" version="any"/>                      <!-- Route is </DayTypeAssignment>based on Noptis.JourneyPattern and Noptis.DirectionOfLine. Each Noptis.JourneyPattern will create a Route. -->
             <!-- More DayTypeAssignment elements -->       <Route version="any" id="SE:253:Route:55700000035050824">
           </dayTypeAssignments>                 <<Name>Motala</ServiceCalendarFrame>Name> <!-- Noptis.DirectionOfLine.Name -->
         </frames>         </CompositeFrame>     </dataObjects> </PublicationDelivery>

_stops.xml

Code Block
breakoutModefull-width
languagexml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<PublicationDelivery xmlns <LineRef ref="http://www.netex.org.uk/netex" xmlns:ns2="http://www.opengis.net/gml/3.2" xmlns:ns3="http://www.siri.org.uk/siri">
    <PublicationTimestamp>2019-11-27T12:50:21</PublicationTimestamp>SE:253:Line:9011005005300000" version="20131215"/>
                            <DirectionType>outbound</DirectionType> <!-- Timestamp of exportNoptis.DirectionOfLine.DirectionCode. ODD = outbound, EVEN = inbound. -->
    <ParticipantRef>SAM</ParticipantRef>     <dataObjects>         <SiteFrame version="20191127125021" id="SE:253:SiteFrame:1"> <!-- Version is timestamp of export (YYYYMMDDHHmmSS), id is always<pointsInSequence>
1 -->             <ValidBetween>                 <FromDate>2005-01-01T00:00:00</FromDate> <!-- AlwaysPointOnRoute is setbased to 2005-01-01on Noptis.PointInJourneyPattern -->
       
    </ValidBetween>             <codespaces>               <PointOnRoute  <Codespaceorder="1" version="any" id="SE:253:PointOnRoute:55700000035050829"> <!-- order=Noptis.PointInJourneyPattern.SequenceNumber, id is same as Xmlns -->=Noptis.PointInJourneyPattern.Id -->
                                     <Xmlns>253</Xmlns> <!-- From Samtrafiken's registry of producer numbers, based on data source --><RoutePointRef ref="SE:253:RoutePoint:9022005000050016"/>
                                <XmlnsUrl>http://www.samtrafiken.se/ns/Östgötatrafiken</XmlnsUrl> <!-- "Östgötatrafiken" is based on data source --></PointOnRoute>
                                <!-- More PointOnRoute elements -->
 </Codespace>             </codespaces>             <FrameDefaults> </pointsInSequence>
               <DefaultLocale>         </Route>
           <TimeZone>UTC</TimeZone>             <!-- More Route elements -->
   <DefaultLanguage>se</DefaultLanguage>                 </DefaultLocale>routes>
                <DefaultLocationSystem>4326</DefaultLocationSystem> <!-- All coordinates are<lines>
WGS84 -->             </FrameDefaults>             <stopPlaces> <!-- StopPlaceLine is based on Noptis.StopAreaLine -->
                       <StopPlace <Line version="2016121320131215" id="SE:253:StopPlaceLine:90210050000010009011005005300000"> <!-- version=Noptis.StopAreaLine.ExistsFromDate, id=Noptis.StopAreaLine.Gid -->
                            <ValidBetween>
                        <FromDate>2016-12        <FromDate>2019-02-13T00:00:00</FromDate> <!-- Noptis.StopAreaLine.ExistsFromDate -->
                                <!-- ToDate = Noptis.StopAreaLine.ExistsToDate, in this case "ExistsToDate" is null -->
                            </ValidBetween>
                    <Name>Norr Tull<        <Name>53</Name> <!-- Noptis.StopAreaLine.Name, -->
              eller Noptis.Line.Designation om Noptis.Line.Name är tom -->
     <ShortName>Norr Tull</ShortName> <!-- Noptis.StopArea.ShortName -->                     <PrivateCode>1<<TransportMode>rail</PrivateCode>TransportMode> <!-- Noptis.StopArea.Number -->
       See the section "General Noptis to Netex mappings" below -->
            <Centroid>                <TransportSubmode>
        <Location>                             <Longitude>16.176723</Longitude><RailSubmode>unknown</RailSubmode> <!-- Noptis.StopArea.CentroidEastingCoordinate -->
           Netex.TransportSubmode is always mapped to UNKNOWN since that information is not available in NOPTIS. -->
                <Latitude>58.594850</Latitude> <!-- Noptis.StopArea.CentroidNorthingCoordinate -->            </TransportSubmode>
                </Location>            <PublicCode>53</PublicCode> <!-- Noptis.Line.Designation -->
     </Centroid>                     <OrganisationRef ref="SE:253:Authority:9010005000000000"/>  <PrivateCode>53</PrivateCode> <!-- Noptis.StopAreaLine.IsDefinedByTransportAuthortiyNumber -->
                    <TransportMode>bus</TransportMode> <!-- See the section "General Noptis to Netex mappings" below --><RepresentedByGroupRef ref="SE:253:Network:9010005000000000"/>
                        <StopPlaceType>busStation<</StopPlaceType> <!-- See the section "General Noptis to Netex mappings" below -->Line>
                    </lines>
            <Weighting>interchangeAllowed</Weighting> <!-- See the section "General Noptis to Netex<journeyPatterns>
mappings" below -->                     <quays> <!-- QuayJourneyPattern is based on Noptis.StopPoint and Noptis.JourneyPatternPointNamedJourneyPattern -->
                        <Quay<JourneyPattern version="20180419any" id="SE:253:QuayJourneyPattern:902200500000100155700000035050824"> <!-- version=Noptis.StopPoint.ExistsFromDate, id=Noptis.StopPointNamedJourneyPattern.GidId -->
                            <ValidBetween>
     <RouteRef ref="SE:253:Route:55700000035050824" version="any"/>
                          <FromDate>2019-04-26T00:00:00</FromDate> <!-- Noptis.StopPoint.ExistsFromDate but not earlier than parent StopPlace.FromDate --> <pointsInSequence>
                                <!-- StopPointInJourneyPattern is based on Noptis.PointInJourneyPattern  <!-->
ToDate = Noptis.StopPoint.ExistsToDate, in this case "ExistsToDate" is null, not later than parent StopPlace.ToDate -->                  <StopPointInJourneyPattern order="1" version="any" id="SE:253:StopPointInJourneyPattern:55700000035050829"> 
      </ValidBetween>                             <Name>Norr Tull</Name> <!-- order=Noptis.PointInJourneyPattern.SequenceNumber, id=Noptis.StopPointPointInJourneyPattern.NameId -->
                                    <ScheduledStopPointRef ref="SE:253:ScheduledStopPoint:9022005000050016"/>
     <ShortName>Norr Tull</ShortName> <!-- Noptis.StopPoint.ShortName -->                             <PrivateCode>1<<ForAlighting>false</PrivateCode>ForAlighting> <!-- Noptis.StopPoint.LocalNumber -->
       See the section "General Noptis to Netex mappings" below -->
                    <Centroid>                <ForBoarding>true</ForBoarding> <!-- See the section "General Noptis to Netex mappings" below -->
     <Location>                               <DestinationDisplayRef ref="SE:253:DestinationDisplay:55700000037211691"/>
    <Longitude>16.177052</Longitude> <!-- Noptis.JourneyPatternPoint.CentroidEastingCoordinate -->                             <RequestStop>true</RequestStop> <!-- See the section "General Noptis to <Latitude>58.595038</Latitude> <!-- Noptis.JourneyPatternPoint.CentroidNorthingCoordinateNetex mappings" below -->
                                </Location>StopPointInJourneyPattern>
                                </Centroid>!-- More StopPointInJourneyPattern elements -->
                        <PublicCode>A</PublicCode> <!-- Noptis.StopPoint.Designation --> </pointsInSequence>
                       </Quay>     <linksInSequence>
                   <!-- More Quay elements -->         <ServiceLinkInJourneyPattern order="1" version="any" id="SE:253:ServiceLinkInJourneyPattern:BUS_391"> <!-- order=Noptis.PointInJourneyPattern.SequenceNumber, 
     </quays>                 </StopPlace>              id is  <!-- More StopPlace elementsNoptis.Line.DefaultTransportModeCode + a counter. -->
            </stopPlaces>             <navigationPaths> <!-- NavigationPath is based on Noptis.ConnectionLink -->      <ServiceLinkRef ref="SE:253:ServiceLink:BUS_9025005000005016_9025005000122302"/>
         <NavigationPath version="20180504" id="SE:253:NavigationPath:55700000046273098"> <!-- version=Noptis.ConnectionLink.ExistsFromDate, id=Noptis.ConnectionLink.Id -->                      </ServiceLinkInJourneyPattern>
       <Distance>0</Distance> <!-- version=Noptis.ConnectionLink.DistanceMeters. If null, Distance will be 0 -->                <!-- More ServiceLinkInJourneyPattern elements -->
<From>                         <PlaceRef ref="SE:253:Quay:9022005000100216" version="20140218"/> <!-- version=Noptis.StopPoint.ExistsFromDate id=Noptis.StopPoint.Gid from Noptis.ConnectionLink.StartsAtJourneyPatternPoint -->/linksInSequence>
                        </From>JourneyPattern>
                    </journeyPatterns>
      <To>          </ServiceFrame>
               <PlaceRef ref <TimetableFrame version="20191127125021" id="SE:253:Quay:9022005000102017" version="20181204"/TimetableFrame:9011005005300000"> <!-- version=Noptis.StopPoint.ExistsFromDateVersion is timestamp of export (YYYYMMDDHHmmSS), id=Noptis.StopPointLine.Gid from Noptis.ConnectionLink.EndsAtJourneyPatternPoint -->
                    </To><vehicleJourneys>
                        <!-- ServiceJourney is  <TransferDuration>based on Noptis.VehicleJourney -->
                         <DefaultDuration>PT6M</DefaultDuration><ServiceJourney version="any" id="SE:253:ServiceJourney:55700000049527547"> <!-- versionid=Noptis.ConnectionLinkVehicleJourney.DefaultDurationSecondsId -->
                    </TransferDuration>                 </NavigationPath>
                <!-- More NavigationPath elements<PrivateCode>123</PrivateCode> <!-- Not in Noptis but in Stip as VehicleJourney.InternalJourneyNumber. Currently only imported from TRP.30-Post.TURNR and Netex.ServiceJourney. -->
            </navigationPaths>         </SiteFrame>
    </dataObjects>
</PublicationDelivery>

line_{Noptis.Line.Number}_{Noptis.Line.Gid}.xml (line_53_9011005005300000.xml)

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" xmlns:ns3="http://www.siri.org.uk/siri">         <PublicationTimestamp>2019-11-27T12:50:21</PublicationTimestamp><TransportMode>rail</TransportMode> <!-- Timestamp of export See the section "General Noptis to Netex mappings" below -->
    <ParticipantRef>SAM</ParticipantRef>                        <TransportSubmode>
                       <dataObjects>         <CompositeFrame created="2019-11-27T12:50:21" version="20191127125021" id="SE:253:CompositeFrame:9011005005300000"> <!-- Version is timestamp of export (YYYYMMDDHHmmSS), id will always be 1 --><RailSubmode>unknown</RailSubmode> <!-- Netex.TransportSubmode is always mapped to UNKNOWN since that information is not available in NOPTIS. -->
                        <ValidBetween>    </TransportSubmode>
            <FromDate>2005-01-01T00:00:00</FromDate> <!-- Always set to 2005-01-01 -->          <dayTypes>
  </ValidBetween>             <codespaces>                 <Codespace<DayTypeRef idref="SE:253:DayType:1"/> <!-- id is same as Xmlns See the explanation for ServiceCalendarFrame in the "_shared_data.xml" section -->
                    <Xmlns>253</Xmlns> <!-- From Samtrafiken's registry of producer numbers, based on data source -->        </dayTypes>
                             <XmlnsUrl>http://www.samtrafiken.se/ns/Östgötatrafiken</XmlnsUrl> <!-- "Östgötatrafiken" is based on data source --><JourneyPatternRef ref="SE:253:JourneyPattern:55700000035050824" version="any"/>
                             </Codespace><OperatorRef ref="SE:253:Operator:9013005918200000"/>
            </codespaces>             <FrameDefaults>   <trainNumbers> <!-- TrainNumbers exists only for ServiceJourneys that are trains. -->
   <DefaultLocale>                     <TimeZone>UTC</TimeZone>        <!-- Normally there will only be one TrainNumberRef here. For Trains that change <DefaultLanguage>se</DefaultLanguage>their announced train number during their journey (also called vagnskurs/kursvagnar) there will be multiple TrainNumberRefs (as restricted by JourneyPart-elements). -->
 </DefaultLocale>                 <DefaultLocationSystem>4326</DefaultLocationSystem> <!-- All coordinates are WGS84 -->        <TrainNumberRef ref="SE:253:TrainNumber:9011074007000000_74" versionRef="any"/>
  </FrameDefaults>             <frames>                 <ServiceFrame version="20191127125021" id<TrainNumberRef ref="SE:253:ServiceFrame:9011005005300000"> <!-- Version is timestamp of export (YYYYMMDDHHmmSS), id=Noptis.Line.Gid -->TrainNumber:9011074007000000_70" versionRef="any"/>
                            </trainNumbers>
 <routes>                         <!-- Route is<passingTimes>
based on Noptis.JourneyPattern and Noptis.DirectionOfLine. Each Noptis.JourneyPattern will create a Route. -->                     <!-- TimetabledPassingTime is based <Route version="any" id="SE:253:Route:55700000035050824"on CallOnTimedJourneyPattern -->
                            <Name>Motala</Name>    <TimetabledPassingTime version="any" id="SE:253:TimetabledPassingTime:55700000049527529"> <!-- id=Noptis.DirectionOfLineCallOnTimedJourneyPattern.NameId -->
                               <LineRef     <StopPointInJourneyPatternRef ref="SE:253:LineStopPointInJourneyPattern:901100500530000055700000035050829" version="20131215any"/>
                                  <DirectionType>outbound</DirectionType>  <DepartureTime>06:40:00</DepartureTime> <!-- Noptis.DirectionOfLineVehicleJourney.DirectionCode.PlannedStartOffsetDayTime ODD = outbound, EVEN = inbound.and Noptis.CallOnTimedJourneyPattern.EarliestDepartureTimeOffsetSeconds -->
                            <pointsInSequence>    </TimetabledPassingTime>
                            <!-- PointOnRoute is based on Noptis.PointInJourneyPattern --<TimetabledPassingTime version="any" id="SE:253:TimetabledPassingTime:55700000049527530">
                                <PointOnRoute order="1    <StopPointInJourneyPatternRef ref="SE:253:StopPointInJourneyPattern:55700000035050830" version="any" id="SE:253:PointOnRoute:55700000035050829">/>
                                    <ArrivalTime>06:41:28</ArrivalTime> <!-- order=Noptis.PointInJourneyPattern.SequenceNumber, id=VehicleJourney.PlannedStartOffsetDayTime and Noptis.PointInJourneyPatternCallOnTimedJourneyPattern.IdLatestArrivalTimeOffsetSeconds -->
                                    <RoutePointRef ref="SE:253:RoutePoint:9022005000050016"/><DepartureTime>06:41:28</DepartureTime>
                                </PointOnRoute>TimetabledPassingTime>
                                <!-- More PointOnRouteTimtabledPassingTime elements -->
                            </pointsInSequence>    <TimetabledPassingTime version="any" id="SE:253:TimetabledPassingTime:55700000049527544">
                  </Route>                  <StopPointInJourneyPatternRef ref="SE:253:StopPointInJourneyPattern:55700000035050844" version="any"/>
    <!-- More Route elements -->                     </routes>       <ArrivalTime>07:50:00</ArrivalTime>
             <lines>                       <DepartureTime>07:51:00</DepartureTime>
 <!-- Line is based on Noptis.Line -->                         <Line version="20131215" id="SE:253:Line:9011005005300000"> <!-- version=Noptis.Line.ExistsFromDate, id=Noptis.Line.Gid --></TimetabledPassingTime>
                                <TimetabledPassingTime  <Name>53</Name> <!-- Noptis.Line.Name, eller Noptis.Line.Designation om Noptis.Line.Name är tom -->version="any" id="SE:253:TimetabledPassingTime:55700000049527545">
                                     <TransportMode>bus</TransportMode> <!-- See the section "General Noptis to Netex mappings" below --><StopPointInJourneyPatternRef ref="SE:253:StopPointInJourneyPattern:55700000035050845" version="any"/>
                                    <ArrivalTime>01:20:00</ArrivalTime>
   <TransportSubmode>                                 <BusSubmode>unknown<<ArrivalDayOffset>1</BusSubmode>ArrivalDayOffset> <!-- Netex.TransportSubmode is always mapped to UNKNOWN since that information is not available in NOPTIS. -->Noptis.VehicleJourney.PlannedStartOffsetDayTime (the day value -1) -->
                                    <DepartureTime>01:21:00</DepartureTime>
       </TransportSubmode>                             <PublicCode>53<<DepartureDayOffset>1</PublicCode>DepartureDayOffset> <!-- Noptis.Line.DesignationVehicleJourney.PlannedEndOffsetDayTime (the day value -1) -->
                            <PrivateCode>53</PrivateCode> <!-- Noptis.Line.Number -->    </TimetabledPassingTime>
                                <TimetabledPassingTime <RepresentedByGroupRef refversion="any" id="SE:253:AuthorityTimetabledPassingTime:901000500000000055700000049527546"/>
                         </Line>           <StopPointInJourneyPatternRef ref="SE:253:StopPointInJourneyPattern:55700000035050846" version="any"/>
                    </lines>                <ArrivalTime>02:00:00</ArrivalTime>
    <journeyPatterns>                          <!-- JourneyPattern is based on Noptis.NamedJourneyPattern --> <ArrivalDayOffset>1</ArrivalDayOffset>
                        <JourneyPattern version="any" id="SE:253:JourneyPattern:55700000035050824"> <!-- id=Noptis.NamedJourneyPattern.Id -->
        </TimetabledPassingTime>
                          <RouteRef ref="SE:253:Route:55700000035050824" version="any"/> </passingTimes>
                            <pointsInSequence>
<FlexibleServiceProperties> <!-- Noptis.AdvanceOrderCondition -->
                              <FlexibleServiceType>fixedPassingTimes</FlexibleServiceType> <!-- StopPointInJourneyPatternthis value is basedalways set onto Noptis.PointInJourneyPatternfixedPassingTimes -->
                              <BookingContact>
 <StopPointInJourneyPattern order="1" version="any" id="SE:253:StopPointInJourneyPattern:55700000035050829">                               <Phone>07717110120</Phone> <!-- Noptis.AdvanceOrderCondition.TelephoneNumber -->
                <!-- order=Noptis.PointInJourneyPattern.SequenceNumber, id=Noptis.PointInJourneyPattern.Id -->           </BookingContact>
                         <ScheduledStopPointRef ref="SE:253:ScheduledStopPoint:9022005000050016"/>    <!-- Either BookWhen AND LatestBookingTime are set, OR only MinimumBookingPeriod is set -->
                    <ForAlighting>false</ForAlighting> <!-- See the section "General Noptis to Netex mappings" below<BookWhen>advanceAndDayOfTravel</BookWhen> <!--> Noptis.AdvanceOrderCondition.MinimumDaysInAdvanceCount. advanceAndDayOfTravel = 0, untilPreviousDay = 1 -->
                              <ForBoarding>true</ForBoarding><LatestBookingTime>18:00:00</LatestBookingTime> <!-- See the section "General Noptis to Netex mappings" below -->Noptis.AdvanceOrderCondition.LatestAbsoluteTime -->
                              <!-- <MinimumBookingPeriod>PT2H</MinimumBookingPeriod> <!-- Noptis.AdvanceOrderCondition.LatestTimeSpanInAdvanceDurationSeconds --> This is just an example of how it  <DestinationDisplayRef ref="SE:253:DestinationDisplay:55700000037211691"/would look like-->
                              <BookingNote>Turen måste förbeställas  0771 - <RequestStop>true</RequestStop> <!-- See the section "General Noptis to Netex mappings" below -->
 71 10 20 senast 2 timmar före avresa från turens starthållplats.</BookingNote> <!-- Noptis.AdvanceOrderCondition.PublicNote -->
                              </StopPointInJourneyPattern>FlexibleServiceProperties>
                             <parts>
  <!-- More StopPointInJourneyPattern elements -->                             </pointsInSequence>
          <!-- JourneyParts with TrainNumberRefs only exists for ServiceJourneys that are trains. -->
                 <linksInSequence>               <!-- JourneyParts with TrainNumberRefs exists for trains that change their announced train number during their journey (also  <ServiceLinkInJourneyPattern order="1" version="any" id="SE:253:ServiceLinkInJourneyPattern:BUS_391"> <!-- order=Noptis.PointInJourneyPattern.SequenceNumber,called vagnskurs/kursvagnar). -->
                                <!-- The StopPointRefs and times in the example below are wrong with regard id is Noptis.Line.DefaultTransportModeCode + a counter.to the journeypattern and passingtimes of this ServiceJourney -->
                                <JourneyPart    <ServiceLinkRef refversion="any" id="SE:253:ServiceLinkJourneyPart:BUS323200000000003266_9025005000005016tn_90250050001223020"/>
                                 </ServiceLinkInJourneyPattern>   <!-- MainPartRef is a self-reference that only exists to pass Netex-validation -->
                                  <!-- More ServiceLinkInJourneyPattern elements --<MainPartRef ref="SE:253:JourneyPart:323200000000003266_tn_0" version="any"/>
                            </linksInSequence>        <TrainNumberRef ref="SE:253:TrainNumber:9011074007000000_70" versionRef="any"/>
                </JourneyPattern>                     </journeyPatterns><FromStopPointRef ref="SE:253:ScheduledStopPoint:9022005000050016"/>
                  </ServiceFrame>                 <TimetableFrame version="20191127125021" id<ToStopPointRef ref="SE:253:TimetableFrameScheduledStopPoint:90110050053000009022005000050019"/>
<!-- Version is timestamp of export (YYYYMMDDHHmmSS), id=Noptis.Line.Gid -->                     <vehicleJourneys>       <StartTime>06:40:00</StartTime>
                 <!-- ServiceJourney is based on Noptis.VehicleJourney -->                         <ServiceJourney version="any" id="SE:253:ServiceJourney:55700000049527547"> <!-- id=Noptis.Line.Id --><EndTime>07:50:00</EndTime>
                                <TransportMode>bus<</TransportMode>JourneyPart>
<!-- See the section "General Noptis to Netex mappings" below -->                      <JourneyPart version="any" id="SE:253:JourneyPart:323200000000003266_tn_1">
    <TransportSubmode>                                 <BusSubmode>unknown</BusSubmode> <!-- Netex.TransportSubmode is always mapped to UNKNOWN since that information is not available in NOPTIS. --><MainPartRef ref="SE:253:JourneyPart:323200000000003266_tn_1" version="any"/>
                                    <TrainNumberRef ref="SE:253:TrainNumber:9011074007000000_74" versionRef="any"/>
            </TransportSubmode>                        <FromStopPointRef ref="SE:253:ScheduledStopPoint:9022005000050020"/>
   <dayTypes>                                 <DayTypeRef<ToStopPointRef ref="SE:253:DayTypeScheduledStopPoint:19022005000050021"/>
<!-- See the explanation for ServiceCalendarFrame in the "_shared_data.xml" section -->                             </dayTypes><StartTime>01:21:00</StartTime>
                            <JourneyPatternRef ref="SE:253:JourneyPattern:55700000035050824" version="any"/>      <!-- The StartTimeDayOffset must match the DepartureDayOffset of the               <OperatorRef ref="SE:253:Operator:9013005918200000"/TimetabledPassingTime. -->
                            <passingTimes>        <!-- If the value is 0 (which is the most common case) this field will not be set at all, like in the JourneyPart  <!-- TimetabledPassingTime is based on CallOnTimedJourneyPatternexample above. -->
                                <TimetabledPassingTime version="any" id="SE:253:TimetabledPassingTime:55700000049527529"> <!-- id=Noptis.CallOnTimedJourneyPattern.Id --> <StartTimeDayOffset>1</StartTimeDayOffset> 
                                    <StopPointInJourneyPatternRef ref="SE:253:StopPointInJourneyPattern:55700000035050829" version="any"/><EndTime>02:00:00</EndTime>
                                    <DepartureTime>06:40:00</DepartureTime> <!-- Noptis.VehicleJourney.PlannedStartOffsetDayTime and Noptis.CallOnTimedJourneyPattern.EarliestDepartureTimeOffsetSeconds -->
    The EndTimeDayOffset must match the ArrivalDayOffset of the TimetabledPassingTime. -->
                           </TimetabledPassingTime>         <!-- If the value is 0 (which is the most common case) this field will not be set at all, like in the JourneyPart <TimetabledPassingTime version="any" id="SE:253:TimetabledPassingTime:55700000049527530"example above. -->
                                    <StopPointInJourneyPatternRef ref="SE:253:StopPointInJourneyPattern:55700000035050830" version="any"/><EndTimeDayOffset>1</EndTimeDayOffset>
                                </JourneyPart>
     <ArrivalTime>06:41:28</ArrivalTime> <!-- Noptis.VehicleJourney.PlannedStartOffsetDayTime and Noptis.CallOnTimedJourneyPattern.LatestArrivalTimeOffsetSeconds -->                  </parts>
                  <DepartureTime>06:41:28</DepartureTime>      </ServiceJourney>
                    </vehicleJourneys>
     </TimetabledPassingTime>               <!-- Train numbers for TrainNumberRefs for all of the ServiceJourneys in this Line-file. -->
     <!-- More TimtabledPassingTime elements -->               <trainNumbers>
                        <TimetabledPassingTime<TrainNumber version="any" id="SE:253:TimetabledPassingTimeTrainNumber:557000000495275449011074007000000_70">
                            <!-- ForAdvertisement contains the announced train number which should be displayed for passengers. -->
        <StopPointInJourneyPatternRef ref="SE:253:StopPointInJourneyPattern:55700000035050844" version="any"/>                  <ForAdvertisement>70</ForAdvertisement>
                  <ArrivalTime>07:50:00</ArrivalTime>      </TrainNumber>
                        <TrainNumber  </TimetabledPassingTime>version="any" id="SE:253:TrainNumber:9011074007000000_74">
                            <<ForAdvertisement>74</passingTimes>ForAdvertisement>
                        </ServiceJourney>TrainNumber>
                    </vehicleJourneys>trainNumbers>
                    <journeyInterchanges>
                        <!-- ServiceJourneyInterchange is based on Noptis.ConnectionCandidate -->
                        <ServiceJourneyInterchange version="any" id="SE:253:ServiceJourneyInterchange:55700000051347301_1A_9022005004136002_55700000050225029_55700000051347301"> <!-- id=Noptis.VehicleJourney.Id + counterA/B + FromPoint + FromJourney + ToJourney -->
                            <Priority>0</Priority> <!--0 = Interchange allowed, -1 = Interchange not allowed -->
                            <Guaranteed>false</Guaranteed> <!-- Always false -->
                            <Advertised>true</Advertised> <!-- Always true -->
                            <FromPointRef ref="SE:253:ScheduledStopPoint:9022005004136002"/> <!-- Noptis.ConnectionCandidate.IsFromFeederVehicleJourneyId -->
                            <ToPointRef ref="SE:253:ScheduledStopPoint:9022005004136006" version="20190516"/> <!-- Noptis.ConnectionCandidate.IsFromFeederVehicleJourneyId -->
                            <FromJourneyRef ref="SE:253:ServiceJourney:55700000050225029"/>  <!-- Noptis.ConnectionCandidate.IsFromFeederVehicleJourneyId -->
                            <ToJourneyRef ref="SE:253:ServiceJourney:55700000051347301" version="any"/>  <!-- Noptis.ConnectionCandidate.IsToFetcherVehicleJourneyId -->
                        </ServiceJourneyInterchange>
                    </journeyInterchanges>
                </TimetableFrame>
            </frames>
        </CompositeFrame>
    </dataObjects>
</PublicationDelivery>

General Noptis to Netex mappings

Netex.ServiceJourney.TransportSubmode

Netex.ServiceJourney.TransportSubmode and Netex.Line.TransportSubmode is always mapped to UNKNOWN since that information is not available in NOPTIS.

...

Netex.ServiceLink.VehicleMode, Netex.ServiceJourney.TransportMode, Netex.Line.TransportMode

(Netex.AllModesEnumeration or Netex.AllVehicleModesOfTransportEnumeration)
Noptis.TransportModeCode.BUS = Netex.BUS
Noptis.TransportModeCode.TRAIN = Netex.RAIL
Noptis.TransportModeCode.TRAM = Netex.TRAM
Noptis.TransportModeCode.METRO = Netex.METRO
Noptis.TransportModeCode.TAXI = Netex.TAXI
Noptis.TransportModeCode.SHIP = Netex.WATER
Noptis.TransportModeCode.FERRY = Netex.WATER
Noptis.TransportModeCode.UNSPECIFIED = Netex.UNKNOWN

...

Netex.StopPlace.TransportMode

Netex.StopPlace.TransportMode has no corresponding field in Noptis. It is instead generated from the Noptis.StopArea.TypeCode:

Noptis.StopAreaTypeCode.AIRPORT = Netex.VehicleModeEnumeration.AIR
Noptis.StopAreaTypeCode.BUSTERM = Netex.VehicleModeEnumeration.BUS
Noptis.StopAreaTypeCode.FERRYBER = Netex.VehicleModeEnumeration.FERRY
Noptis.StopAreaTypeCode.SHIPBER = Netex.VehicleModeEnumeration.FERRY
Noptis.StopAreaTypeCode.METROSTN = Netex.VehicleModeEnumeration.METRO
Noptis.StopAreaTypeCode.RAILWSTN = Netex.VehicleModeEnumeration.RAIL
Noptis.StopAreaTypeCode.TRAMSTN = Netex.VehicleModeEnumeration.TRAM
Noptis.StopAreaTypeCode.TAXITERM = Netex.VehicleModeEnumeration.OTHER;
Noptis.StopAreaTypeCode.UNKNOWN = Netex.VehicleModeEnumeration.OTHER

...

Netex.StopPlace.StopPlaceType

Noptis.StopAreaTypeCode.AIRPORT = Netex.StopTypeEnumeration.AIRPORT
Noptis.StopAreaTypeCode.BUSTERM = Netex.StopTypeEnumeration.BUS_STATION
Noptis.StopAreaTypeCode.FERRYBER = Netex.StopTypeEnumeration.FERRY_STOP
Noptis.StopAreaTypeCode.SHIPBER = Netex.StopTypeEnumeration.FERRY_STOP
Noptis.StopAreaTypeCode.METROSTN = Netex.StopTypeEnumeration.METRO_STATION
Noptis.StopAreaTypeCode.RAILWSTN = Netex.StopTypeEnumeration.RAIL_STATION
Noptis.StopAreaTypeCode.TRAMSTN = Netex.StopTypeEnumeration.TRAM_STATION
Noptis.StopAreaTypeCode.TAXITERM = Netex.StopTypeEnumeration.OTHER
Noptis.StopAreaTypeCode.UNKNOWN = Netex.StopTypeEnumeration.OTHER

...

Netex.StopPlace.Weighting

Noptis.StopPlace.InterchangePriority is used to create the Netex.StopPlace.Weighting. Noptis.StopPlace.InterchangePriority is a value between 1 - 16. A lower number means higher priority in Noptis.

case 1, 2, 3, 4:
return PREFERRED_INTERCHANGE;
case 5, 6, 7, 8, 9, 10, 11, 12:
return RECOMMENDED_INTERCHANGE;
case 13, 14, 15, 16:
return INTERCHANGE_ALLOWED;
default: // interchangePriority < 1 or interchangePriority > 16, this is applicable for other formats than Noptis.
return NO_INTERCHANGE;

...

Netex.StopPointInJourneyPattern.ForAlighting

Noptis.ArrivalType.NO_STOP(0),
Noptis.ArrivalType.NO_ALIGHTING(1) = False

Noptis.ArrivalType.STOP_IF_ALIGHTING(2),
Noptis.ArrivalType.ALWAYS_STOP(3),
Noptis.ArrivalType.FLEXIBLE_ALIGHTING_UPTO_HERE(5) = True

Netex.StopPointInJourneyPattern.ForBoarding

Noptis.DepartureType.NO_STOP(0),
Noptis.DepartureType.NO_BOARDING(1) = False

Noptis.DepartureType.STOP_IF_BOARDING(2),
Noptis.DepartureType.ALWAYS_STOP(3),
Noptis.DepartureType.FLEXIBLE_BOARDING_FROM_HERE(5) = True

Netex.StopPointInJourneyPattern.RequestStop

True if Noptis.ArrivalType.STOP_IF_ALIGHTING(2) or Noptis.DepartureType.STOP_IF_BOARDING(2), otherwise false.

...