Versions Compared

Key

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

...

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:9011005005300000"> <!-- Version is timestamp of export (YYYYMMDDHHmmSS), id will always be 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>
            <frames>
                <ServiceFrame version="20191127125021" id="SE:253:ServiceFrame:9011005005300000"> <!-- Version is timestamp of export (YYYYMMDDHHmmSS), id=Noptis.Line.Gid -->
                    <routes>
                        <!-- Route is based on Noptis.JourneyPattern and Noptis.DirectionOfLine. Each Noptis.JourneyPattern will create a Route. -->
                        <Route version="any" id="SE:253:Route:55700000035050824">
                            <Name>Motala</Name> <!-- Noptis.DirectionOfLine.Name -->
                            <LineRef ref="SE:253:Line:9011005005300000" version="20131215"/>
                            <DirectionType>outbound</DirectionType> <!-- Noptis.DirectionOfLine.DirectionCode. ODD = outbound, EVEN = inbound. -->
                            <pointsInSequence>
                                <!-- PointOnRoute is based on Noptis.PointInJourneyPattern -->
                                <PointOnRoute order="1" version="any" id="SE:253:PointOnRoute:55700000035050829"> <!-- order=Noptis.PointInJourneyPattern.SequenceNumber, id=Noptis.PointInJourneyPattern.Id -->
                                    <RoutePointRef ref="SE:253:RoutePoint:9022005000050016"/>
                                </PointOnRoute>
                                <!-- More PointOnRoute elements -->
                            </pointsInSequence>
                        </Route>
                        <!-- More Route elements -->
                    </routes>
                    <lines>
                        <!-- Line is based on Noptis.Line -->
                        <Line version="20131215" id="SE:253:Line:9011005005300000"> <!-- version=Noptis.Line.ExistsFromDate, id=Noptis.Line.Gid -->
                            <ValidBetween>
                                <FromDate>2019-02-13T00:00:00</FromDate> <!-- Noptis.Line.ExistsFromDate -->
                                <!-- ToDate = Noptis.Line.ExistsToDate, in this case "ExistsToDate" is null -->
                            </ValidBetween>
                            <Name>53</Name> <!-- Noptis.Line.Name, eller Noptis.Line.Designation om Noptis.Line.Name är tom -->
                            <TransportMode>rail</TransportMode> <!-- See the section "General Noptis to Netex mappings" below -->
                            <TransportSubmode>
                                <RailSubmode>unknown</RailSubmode> <!-- Netex.TransportSubmode is always mapped to UNKNOWN since that information is not available in NOPTIS. -->
                            </TransportSubmode>
                            <PublicCode>53</PublicCode> <!-- Noptis.Line.Designation -->
                            <PrivateCode>53</PrivateCode> <!-- Noptis.Line.Number -->
                            <RepresentedByGroupRef ref="SE:253:Network:9010005000000000"/>
                        </Line>
                    </lines>
                    <journeyPatterns>
                        <!-- JourneyPattern is based on Noptis.NamedJourneyPattern -->
                        <JourneyPattern version="any" id="SE:253:JourneyPattern:55700000035050824"> <!-- id=Noptis.NamedJourneyPattern.Id -->
                            <RouteRef ref="SE:253:Route:55700000035050824" version="any"/>
                            <pointsInSequence>
                                <!-- StopPointInJourneyPattern is based on Noptis.PointInJourneyPattern -->
                                <StopPointInJourneyPattern order="1" version="any" id="SE:253:StopPointInJourneyPattern:55700000035050829"> 
                                    <!-- order=Noptis.PointInJourneyPattern.SequenceNumber, id=Noptis.PointInJourneyPattern.Id -->
                                    <ScheduledStopPointRef ref="SE:253:ScheduledStopPoint:9022005000050016"/>
                                    <ForAlighting>false</ForAlighting> <!-- See the section "General Noptis to Netex mappings" below -->
                                    <ForBoarding>true</ForBoarding> <!-- See the section "General Noptis to Netex mappings" below -->
                                    <DestinationDisplayRef ref="SE:253:DestinationDisplay:55700000037211691"/>
                                    <RequestStop>true</RequestStop> <!-- See the section "General Noptis to Netex mappings" below -->
                                </StopPointInJourneyPattern>
                                <!-- More StopPointInJourneyPattern elements -->
                            </pointsInSequence>
                            <linksInSequence>
                                <ServiceLinkInJourneyPattern order="1" version="any" id="SE:253:ServiceLinkInJourneyPattern:BUS_391"> <!-- order=Noptis.PointInJourneyPattern.SequenceNumber, 
                                    id is Noptis.Line.DefaultTransportModeCode + a counter. -->
                                    <ServiceLinkRef ref="SE:253:ServiceLink:BUS_9025005000005016_9025005000122302"/>
                                </ServiceLinkInJourneyPattern>
                                <!-- More ServiceLinkInJourneyPattern elements -->
                            </linksInSequence>
                        </JourneyPattern>
                    </journeyPatterns>
                </ServiceFrame>
                <TimetableFrame version="20191127125021" id="SE:253:TimetableFrame:9011005005300000"> <!-- Version is timestamp of export (YYYYMMDDHHmmSS), id=Noptis.Line.Gid -->
                    <vehicleJourneys>
                        <!-- ServiceJourney is based on Noptis.VehicleJourney -->
                        <ServiceJourney version="any" id="SE:253:ServiceJourney:55700000049527547"> <!-- id=Noptis.VehicleJourney.Id -->
                            <PrivateCode>123</PrivateCode> <!-- Not in Noptis but in Stip as VehicleJourney.InternalJourneyNumber. Currently only imported from TRP.30-Post.TURNR and Netex.ServiceJourney. -->
                            <TransportMode>rail</TransportMode> <!-- See the section "General Noptis to Netex mappings" below -->
                            <TransportSubmode>
                                <RailSubmode>unknown</RailSubmode> <!-- Netex.TransportSubmode is always mapped to UNKNOWN since that information is not available in NOPTIS. -->
                            </TransportSubmode>
                            <dayTypes>
                                <DayTypeRef ref="SE:253:DayType:1"/> <!-- See the explanation for ServiceCalendarFrame in the "_shared_data.xml" section -->
                            </dayTypes>
                            <JourneyPatternRef ref="SE:253:JourneyPattern:55700000035050824" version="any"/>
                            <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>
                                <!-- TimetabledPassingTime is based on CallOnTimedJourneyPattern -->
                                <TimetabledPassingTime version="any" id="SE:253:TimetabledPassingTime:55700000049527529"> <!-- id=Noptis.CallOnTimedJourneyPattern.Id -->
                                    <StopPointInJourneyPatternRef ref="SE:253:StopPointInJourneyPattern:55700000035050829" version="any"/>
                                    <DepartureTime>06:40:00</DepartureTime> <!-- Noptis.VehicleJourney.PlannedStartOffsetDayTime and Noptis.CallOnTimedJourneyPattern.EarliestDepartureTimeOffsetSeconds -->
                                </TimetabledPassingTime>
                                <TimetabledPassingTime version="any" id="SE:253:TimetabledPassingTime:55700000049527530">
                                    <StopPointInJourneyPatternRef ref="SE:253:StopPointInJourneyPattern:55700000035050830" version="any"/>
                                    <ArrivalTime>06:41:28</ArrivalTime> <!-- Noptis.VehicleJourney.PlannedStartOffsetDayTime and Noptis.CallOnTimedJourneyPattern.LatestArrivalTimeOffsetSeconds -->
                                    <DepartureTime>06:41:28</DepartureTime>
                                </TimetabledPassingTime>
                                <!-- More TimtabledPassingTime elements -->
                                <TimetabledPassingTime version="any" id="SE:253:TimetabledPassingTime:55700000049527544">
                                    <StopPointInJourneyPatternRef ref="SE:253:StopPointInJourneyPattern:55700000035050844" version="any"/>
                                    <ArrivalTime>07:50:00</ArrivalTime>
                                    <DepartureTime>07:51:00</DepartureTime>
                                </TimetabledPassingTime>
                                <TimetabledPassingTime version="any" id="SE:253:TimetabledPassingTime:55700000049527545">
                                    <StopPointInJourneyPatternRef ref="SE:253:StopPointInJourneyPattern:55700000035050845" version="any"/>
                                    <ArrivalTime>01:20:00</ArrivalTime>
                                    <ArrivalDayOffset>1</ArrivalDayOffset> <!-- Noptis.VehicleJourney.PlannedStartOffsetDayTime (the day value -1) -->
                                    <DepartureTime>01:21:00</DepartureTime>
                                    <DepartureDayOffset>1</DepartureDayOffset> <!-- Noptis.VehicleJourney.PlannedEndOffsetDayTime (the day value -1) -->
                                </TimetabledPassingTime>
                                <TimetabledPassingTime version="any" id="SE:253:TimetabledPassingTime:55700000049527546">
                                    <StopPointInJourneyPatternRef ref="SE:253:StopPointInJourneyPattern:55700000035050846" version="any"/>
                                    <ArrivalTime>02:00:00</ArrivalTime>
                                    <ArrivalDayOffset>1</ArrivalDayOffset>
                                </TimetabledPassingTime>
                            </passingTimes>
                            <FlexibleServiceProperties> <!-- Noptis .AdvanceOrderCondition -->
                              <FlexibleServiceType>fixedPassingTimes</FlexibleServiceType> <!-- this value is always set to fixedPassingTimes - fixed, but advance booking is required->
                              <BookingContact>
                                <Phone>07717110120</Phone> <!-- Noptis.AdvanceOrderCondition.TelephoneNumber -->
                              </BookingContact>
                              <!-- Either BookWhen AND LatestBookingTime are set, OR only MinimumBookingPeriod is set -->
                              <BookWhen>advanceAndDayOfTravel</BookWhen> <!-- Noptis.AdvanceOrderCondition.MinimumDaysInAdvanceCount. advanceAndDayOfTravel = 0, untilPreviousDay = 1 -->
                              <MinimumBookingPeriod>PT2H</MinimumBookingPeriod><LatestBookingTime>18:00:00</LatestBookingTime> <!-- Noptis.AdvanceOrderCondition.LatestTimeSpanInAdvanceDurationSecondsLatestAbsoluteTime -->
                              <!-- Noptis.LatestAbsoluteTime would be exported to NeTEx LatestBookingTime if present <MinimumBookingPeriod>PT2H</MinimumBookingPeriod> <!-- Noptis.AdvanceOrderCondition.LatestTimeSpanInAdvanceDurationSeconds --> This is just an example of how it would look like-->
                              <BookingNote>Turen måste förbeställas på 0771 - 71 10 20 senast 2 timmar före avresa från turens starthållplats.</BookingNote> <!-- Noptis.AdvanceOrderCondition.PublicNote -->
                
                            </FlexibleServiceProperties>
                            <parts>
                                <!-- JourneyParts with TrainNumberRefs only exists for ServiceJourneys that are trains. -->
                                <!-- JourneyParts with TrainNumberRefs exists for trains that change their announced train number during their journey (also called vagnskurs/kursvagnar). -->
                                <!-- The StopPointRefs and times in the example below are wrong with regard to the journeypattern and passingtimes of this ServiceJourney -->
                                <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:9022005000050016"/>
                                    <ToStopPointRef ref="SE:253:ScheduledStopPoint:9022005000050019"/>
                                    <StartTime>06:40:00</StartTime>
                                    <EndTime>07:50:00</EndTime>
                                </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:9022005000050020"/>
                                    <ToStopPointRef ref="SE:253:ScheduledStopPoint:9022005000050021"/>
                                    <StartTime>01:21:00</StartTime>
                                    <!-- The StartTimeDayOffset must match the DepartureDayOffset of the TimetabledPassingTime. -->
                                    <!-- If the value is 0 (which is the most common case) this field will not be set at all, like in the JourneyPart example above. -->
                                    <StartTimeDayOffset>1</StartTimeDayOffset> 
                                    <EndTime>02:00:00</EndTime>
                                    <!-- The EndTimeDayOffset must match the ArrivalDayOffset of the TimetabledPassingTime. -->
                                    <!-- If the value is 0 (which is the most common case) this field will not be set at all, like in the JourneyPart example above. -->
                                    <EndTimeDayOffset>1</EndTimeDayOffset>
                                </JourneyPart>
                            </parts>
                        </ServiceJourney>
                    </vehicleJourneys>
                    <!-- Train numbers for TrainNumberRefs for all of the ServiceJourneys in this Line-file. -->
                    <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>
                    <journeyInterchanges>
                        <!-- ServiceJourneyInterchange is based on Noptis.ConnectionCandidate -->
                        <ServiceJourneyInterchange version="any" id="SE:253:ServiceJourneyInterchange:A_9022005004136002_55700000050225029_55700000051347301"> <!-- id=A/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>

...