Samtrafiken NeTEx import

This page contains documentation with clarifications of how Netex (the Nordic Profile) data is imported by Samtrafiken.

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

  • _shared_data.xml

  • _stops.xml

  • line_{Line.Number}_{Line.Id/Gid}.xml (one file per line)

The files are described below.

NeTEx version requirements

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

If you are using Java, you can use the netex-java-model package offered by Entur. This package helps validating your NeTEx files against the previously mentioned XSD files, and is the same validation as we use when we receive NeTEx files. https://github.com/entur/netex-java-model/releases/tag/netex-java-model-1.0.11

1 2 3 4 5 <dependency> <groupId>org.entur</groupId> <artifactId>netex-java-model</artifactId> <version>1.0.11</version> </dependency>

In order to validate a file, you can take a look at this example code:

1 2 3 4 5 6 7 NeTExValidator netexValidator = new NeTExValidator(); Schema schema = netexValidator.getSchema(); Validator validator = schema.newValidator(); validator.setProperty(XMLConstants.ACCESS_EXTERNAL_DTD, ""); validator.setProperty(XMLConstants.ACCESS_EXTERNAL_SCHEMA, ""); validator.setErrorHandler(new XmlErrorHandler()); validator.validate(new StreamSource(netexFile));

If you want to validate the files in another way, you can use XSD files directly. These files can be found here: https://github.com/NeTEx-CEN/NeTEx

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

Codespace and versioning

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

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

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

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

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

 

 

_shared_data.xml

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <PublicationDelivery xmlns="http://www.netex.org.uk/netex" xmlns:ns2="http://www.opengis.net/gml/3.2"> <PublicationTimestamp>2019-11-27T12:50:21</PublicationTimestamp> <!-- Required Timestamp of export. --> <ParticipantRef>SAM</ParticipantRef> <!-- Required Codespace for data submitter, participant identifier. We currently don't use this value for anything, so it's not important for our import. --> <dataObjects> <CompositeFrame created="2019-11-27T12:50:21" version="20191127125021" id="SE:253:CompositeFrame:1"> <ValidBetween> <FromDate>2002-01-01T00:00:00</FromDate> <!-- ToDate is omitted since if there are elements within the frame that have indefinite validity, the frame must also have that. --> </ValidBetween> <codespaces> <Codespace id="253"> <!-- id is the same as Xmlns below --> <Xmlns>253</Xmlns> <!-- From Samtrafiken's registry of producer numbers, provided by Samtrafiken --> <XmlnsUrl>http://www.samtrafiken.se/ns/Östgötatrafiken</XmlnsUrl> <!-- "Östgötatrafiken" is based on data source and ensures that the url is unique, but is otherwise ignored during import --> </Codespace> </codespaces> <!-- Recommended defaults used to define common values. --> <FrameDefaults> <DefaultLocale> <TimeZone>Europe/Stockholm</TimeZone> <DefaultLanguage>se</DefaultLanguage> </DefaultLocale> <DefaultLocationSystem>4326</DefaultLocationSystem> <!-- All coordinates are EPSG:4326 WGS84 --> </FrameDefaults> <frames> <ResourceFrame version="20191127125021" id="SE:253:ResourceFrame:1"> <organisations> <Authority version="20131206" id="SE:253:Authority:9010005000000000"> <CompanyNumber>5560388950</CompanyNumber> <!-- Required --> <Name>Östgötatrafiken</Name> <!-- Required --> <LegalName>Östgötatrafiken</LegalName> <!-- Required --> <OrganisationType>authority</OrganisationType> <!-- Always "authority" --> </Authority> <!-- More Authority elements --> <Operator version="20131211" id="SE:253:Operator:9013005918200000"> <Name>eBuss Motala</Name> <!-- Required --> <LegalName>eBuss i Sverige AB</LegalName> <!-- Required --> <OrganisationType>operator</OrganisationType> <!-- Always "operator" --> </Operator> <!-- More Operator elements --> </organisations> </ResourceFrame> <ServiceFrame version="20191127125021" id="SE:253:ServiceFrame:1"> <!-- Network elements are refered to from Line elements (in the line-files) and provide common information of the Lines, like their Authority. --> <Network version="20131206" id="SE:253:Network:9010005000000000"> <Name>Östgötatrafiken</Name> <!-- Required --> <AuthorityRef ref="SE:253:Authority:9010005000000000" version="20131206"/> </Network> <additionalNetworks> <!-- More Network elements --> </additionalNetworks> <routePoints> <!-- A point that is a stop place in a route. --> <RoutePoint version="20190426" id="SE:253:RoutePoint:9022005000001001"> <projections> <PointProjection version="20190426" id="SE:253:PointProjection:9022005000001001"> <ProjectedPointRef ref="SE:253:ScheduledStopPoint:9022005000001001" version="20190426"/> </PointProjection> </projections> </RoutePoint> <RoutePoint version="20190426" id="SE:253:RoutePoint:9022005000050016"> <projections> <PointProjection version="20190426" id="SE:253:PointProjection:9022005000001002"> <ProjectedPointRef ref="SE:253:ScheduledStopPoint:9022005000001001" version="20190426"/> </PointProjection> </projections> </RoutePoint> <!-- More RoutePoint elements --> </routePoints> <destinationDisplays> <!-- The displayed destination for a vehicle, commonly above the front window or onboard information screens, describing the vehicles final (or intermediary) destination. --> <!-- --> <DestinationDisplay version="any" id="SE:253:DestinationDisplay:via_55700000037211691"> <FrontText>Västerlösa</FrontText> <!-- Required --> <PublicCode>573</PublicCode> <!-- Optional Line Designation/number --> <!-- SideText is ignored --> </DestinationDisplay> <DestinationDisplay version="any" id="SE:253:DestinationDisplay:55700000037211691"> <FrontText>Malmslätt</FrontText> <PublicCode>573</PublicCode> <vias> <!-- max 1 via --> <Via> <DestinationDisplayRef ref="SE:253:DestinationDisplay:via_55700000037211691" version="any"/> </Via> </vias> </DestinationDisplay> <!-- More DestinationDisplay elements --> </destinationDisplays> <scheduledStopPoints> <!-- Point for planned disembarking and/or boarding. All ScheduledStopPoint must be mapped to a corresponding Quay, through PassengerStopAssignment further down the file. --> <ScheduledStopPoint version="20190426" id="SE:253:ScheduledStopPoint:9022005000001001"> <Name>Norr Tull</Name> <!-- Name is ignored, but useful for human readability --> </ScheduledStopPoint> <ScheduledStopPoint version="20190426" id="SE:253:ScheduledStopPoint:9022005001364002"> <Name>Söder Tull</Name> </ScheduledStopPoint> <ScheduledStopPoint version="20190426" id="SE:253:ScheduledStopPoint:9022005000057002"> <Name>Öster Tull</Name> </ScheduledStopPoint> <!-- More ScheduledStopPoint elements --> </scheduledStopPoints> <serviceLinks> <!-- Optional, omit if empty --> <!-- A ServiceLink describes the actual path a vehicle travels between two stop points. In GTFS this is called Shapes. --> <ServiceLink version="20190213" id="SE:253:ServiceLink:BUS_9025005000136402_9025005000005702"> <ValidBetween> <FromDate>2019-02-13T00:00:00</FromDate> </ValidBetween> <Distance>338</Distance> <!-- Optional distance in meters (decimals are ignored) defaults to 0 --> <projections> <LinkSequenceProjection version="20190213" id="SE:253:LinkSequenceProjection:BUS_9025005000136402_9025005000005702"> <!-- Geometric representation of Link. The LineString is a sequential list of coordinate pairs. --> <ns2:LineString srsName="4326" ns2:id="LS_BUS_9025005000136402_9025005000005702"> <!-- Coordinate pairs --> <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> </ns2:LineString> </LinkSequenceProjection> </projections> <FromPointRef ref="SE:253:ScheduledStopPoint:9022005001364002" version="20190426"/> <!-- Required --> <ToPointRef ref="SE:253:ScheduledStopPoint:9022005000057002" version="20190426"/> <!-- Required --> <!-- VehicleMode is ignored during import, it is extracted from ServiceJourneys that travel this ServceLink instead --> </ServiceLink> <!-- More ServiceLink elements --> </serviceLinks> <stopAssignments> <!-- Mapping between ScheduledStopPoint and Quay --> <PassengerStopAssignment order="1" version="20190426" id="SE:253:PassengerStopAssignment:9022005000001001"> <ScheduledStopPointRef ref="SE:253:ScheduledStopPoint:9022005000001001" version="20190426"/> <QuayRef ref="SE:253:Quay:9022005000001001"/> </PassengerStopAssignment> <PassengerStopAssignment order="2" version="20190426" id="SE:253:PassengerStopAssignment:9022005000001002"> <ScheduledStopPointRef ref="SE:253:ScheduledStopPoint:9022005001364002" version="20190426"/> <QuayRef ref="SE:253:Quay:9022005000100216"/> </PassengerStopAssignment> <PassengerStopAssignment order="3" version="20190426" id="SE:253:PassengerStopAssignment:9022005000001003"> <ScheduledStopPointRef ref="SE:253:ScheduledStopPoint:9022005000057002" version="20190426"/> <QuayRef ref="SE:253:Quay:9022005000102017"/> </PassengerStopAssignment> <!-- More PassengerStopAssignment elements --> </stopAssignments> <notices> <!-- Text-based notes describing circumstances which cannot be modelled as structured data. These are mapped to ServiceJourneys in the line-files through NoticeAssignment. (Note: the example text below should actually be provided as a BookingArrangement (WIP for us))--> <Notice version="any" id="SE:253:Notice:55700000050931583"> <Text>Turen måste förbeställas på 0771 - 71 10 20 senast 2 timmar före avresa från turens starthållplats.</Text> <!-- Required--> </Notice> <!-- More Notice elements --> </notices> </ServiceFrame> <ServiceCalendarFrame version="20191127125021" id="SE:253:ServiceCalendarFrame:1"> <!-- Each unique combination of operating days will create one DayType. --> <!-- The DayType contains each operating date as a DayTypeAssignment. --> <dayTypes> <DayType version="any" id="SE:253:DayType:1"/> <DayType version="any" id="SE:253:DayType:2"/> <DayType version="any" id="SE:253:DayType:3"/> <DayType version="any" id="SE:253:DayType:4"/> <DayType version="any" id="SE:253:DayType:5"/> <DayType version="any" id="SE:253:DayType:6"/> <DayType version="any" id="SE:253:DayType:7"/> <DayType version="any" id="SE:253:DayType:8"/> <DayType version="any" id="SE:253:DayType:9"/> <DayType version="any" id="SE:253:DayType:10"/> <DayType version="any" id="SE:253:DayType:11"/> <DayType version="any" id="SE:253:DayType:12"/> <DayType version="any" id="SE:253:DayType:13"/> </dayTypes> <dayTypeAssignments> <!-- Each DayTypeAssignments maps one operating Date to a DayType --> <DayTypeAssignment order="1" version="any" id="SE:253:DayTypeAssignment:1-20191125"> <!-- Choices OperatingPeriodRef and OperatingDayRef are ignored --> <Date>2019-11-25</Date> <DayTypeRef ref="SE:253:DayType:1" version="any"/> </DayTypeAssignment> <DayTypeAssignment order="2" version="any" id="SE:253:DayTypeAssignment:1-20191126"> <Date>2019-11-26</Date> <DayTypeRef ref="SE:253:DayType:1" version="any"/> </DayTypeAssignment> <DayTypeAssignment order="3" version="any" id="SE:253:DayTypeAssignment:1-20191127"> <Date>2019-11-27</Date> <DayTypeRef ref="SE:253:DayType:1" version="any"/> </DayTypeAssignment> <!-- More DayTypeAssignment elements --> </dayTypeAssignments> </ServiceCalendarFrame> </frames> </CompositeFrame> </dataObjects> </PublicationDelivery>

 

_stops.xml

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <PublicationDelivery xmlns="http://www.netex.org.uk/netex"> <PublicationTimestamp>2019-11-27T12:50:21</PublicationTimestamp> <!-- Required Timestamp of export. --> <ParticipantRef>SAM</ParticipantRef> <!-- Required Codespace for data submitter, participant identifier. We currently don't use this value for anything, so it's not important for our import. --> <dataObjects> <SiteFrame version="20191127125021" id="SE:253:SiteFrame:1"> <ValidBetween> <FromDate>2005-01-01T00:00:00</FromDate> <!-- ToDate is omitted since if there are elements within the frame that have indefinite validity, the frame must also have that. --> </ValidBetween> <codespaces> <Codespace id="253"> <!-- id is the same as Xmlns below --> <Xmlns>253</Xmlns> <!-- From Samtrafiken's registry of producer numbers, provided by Samtrafiken --> <XmlnsUrl>http://www.samtrafiken.se/ns/Östgötatrafiken</XmlnsUrl> <!-- "Östgötatrafiken" is based on data source and ensures that the url is unique, but is otherwise ignored during import --> </Codespace> </codespaces> <FrameDefaults> <DefaultLocale> <TimeZone>Europe/Stockholm</TimeZone> <DefaultLanguage>se</DefaultLanguage> </DefaultLocale> <DefaultLocationSystem>4326</DefaultLocationSystem> <!-- All coordinates are EPSG:4326 WGS84 --> </FrameDefaults> <stopPlaces> <StopPlace version="20161213" id="SE:253:StopPlace:9021005000001000"> <ValidBetween> <FromDate>2016-12-13T00:00:00</FromDate> </ValidBetween> <Name>Norr Tull</Name> <!-- Required --> <ShortName>Norr Tull</ShortName> <!-- Optional --> <PrivateCode>1</PrivateCode> <!-- Required. Internal/technical and unique number, not meant to be shown to passengers. Kind of like an Id for the StopPlace. --> <Centroid> <Location> <Longitude>16.176723</Longitude> <Latitude>58.594850</Latitude> <!-- Altitude is ignored --> <!-- Precision is ignored --> </Location> </Centroid> <TransportMode>bus</TransportMode> <!-- TransportMode is ignored during import --> <StopPlaceType>busStation</StopPlaceType> <!-- Required --> <quays> <!-- A part of StopPlace where passengers can board or disembark a vehicle. For example tactile paving position at a bus stop, the midpoint of a railway platform, a gate at an airport. --> <!-- Quays do not have their own names. This information is inherited from the parent StopPlace. --> <Quay version="20180419" id="SE:253:Quay:9022005000001001"> <ValidBetween> <FromDate>2019-04-26T00:00:00</FromDate> </ValidBetween> <Name>Norr Tull</Name> <!-- Optional --> <ShortName>Norr Tull</ShortName> <!-- Optional --> <Centroid> <Location> <Longitude>16.177052</Longitude> <Latitude>58.595038</Latitude> </Location> </Centroid> <PublicCode>1</PublicCode> <!-- Optional designation meant to be shown for passengers --> </Quay> <Quay version="20140218" id="SE:253:Quay:9022005000100216"> <ValidBetween> <FromDate>2019-04-26T00:00:00</FromDate> </ValidBetween> <Name>Norr Tull</Name> <ShortName>Norr Tull</ShortName> <Location> <Longitude>16.176760</Longitude> <Latitude>58.595074</Latitude> </Location> <PublicCode>2</PublicCode> </Quay> <!-- More Quay elements --> </quays> </StopPlace> <!-- More StopPlace elements --> </stopPlaces> <navigationPaths> <!-- Optional, omit if empty --> <!-- A detailed description of the path between two places, in our import and export we only handle Quay-to-Quay NavigationPaths. --> <NavigationPath version="20180504" id="SE:253:NavigationPath:55700000046273098"> <Distance>0</Distance> <!-- Optional. Total length (in meters). --> <From> <PlaceRef ref="SE:253:Quay:9022005000100216" version="20140218"/> <!-- Required --> </From> <To> <PlaceRef ref="SE:253:Quay:9022005000102017" version="20181204"/> <!-- Required --> </To> <TransferDuration> <DefaultDuration>PT6M</DefaultDuration> <!-- Required. Specifies the duration of the transfer. --> </TransferDuration> <!-- NavigationType is ignored --> <!-- AccessibilityAssessment is ignored --> </NavigationPath> <!-- More NavigationPath elements --> </navigationPaths> </SiteFrame> </dataObjects> </PublicationDelivery>

 

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

 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <PublicationDelivery xmlns="http://www.netex.org.uk/netex"> <PublicationTimestamp>2019-11-27T12:50:21</PublicationTimestamp> <!-- Timestamp of export --> <ParticipantRef>SAM</ParticipantRef> <!-- Required Codespace for data submitter, participant identifier. We currently don't use this value for anything, so it's not important for our import. --> <dataObjects> <CompositeFrame created="2019-11-27T12:50:21" version="20191127125021" id="SE:253:CompositeFrame:9011005005300000"> <ValidBetween> <FromDate>2005-01-01T00:00:00</FromDate> <!-- ToDate is omitted since if there are elements within the frame that have indefinite validity, the frame must also have that. --> </ValidBetween> <codespaces> <Codespace id="253"> <!-- id is the same as Xmlns below --> <Xmlns>253</Xmlns> <!-- From Samtrafiken's registry of producer numbers, provided by Samtrafiken --> <XmlnsUrl>http://www.samtrafiken.se/ns/Östgötatrafiken</XmlnsUrl> <!-- "Östgötatrafiken" is based on data source and ensures that the url is unique, but is otherwise ignored during import --> </Codespace> </codespaces> <FrameDefaults> <DefaultLocale> <TimeZone>Europe/Stockholm</TimeZone> <DefaultLanguage>se</DefaultLanguage> </DefaultLocale> <DefaultLocationSystem>4326</DefaultLocationSystem> </FrameDefaults> <frames> <ServiceFrame version="20191127125021" id="SE:253:ServiceFrame:9011005005300000"> <routes> <!-- Description of a route, specified as a sorted list of RoutePoints. --> <Route version="any" id="SE:253:Route:55700000035050824"> <Name>Motala</Name> <!-- Required --> <LineRef ref="SE:253:Line:9011005005300000" version="20131215"/> <!-- Required --> <DirectionType>outbound</DirectionType> <!-- inbound/outbound --> </Route> <!-- More Route elements --> </routes> <lines> <Line version="20131215" id="SE:253:Line:9011005005300000"> <Name>53</Name> <!-- Required --> <TransportMode>bus</TransportMode> <!-- Required --> <!-- TransportSubmode is currently ignored--> <PublicCode>53</PublicCode> <!-- Optional. The publicly advertised line number --> <PrivateCode>53</PrivateCode> <!-- Required. Internal (non-public) identifier for the line. This needs to fit in a numeric(4), can't be a String. --> <RepresentedByGroupRef ref="SE:253:Network:9010005000000000"/> <!-- Required Reference to the Line's Network, defined in the _shared_data.xml-file --> </Line> </lines> <journeyPatterns> <JourneyPattern version="any" id="SE:253:JourneyPattern:55700000035050824"> <RouteRef ref="SE:253:Route:55700000035050824" version="any"/> <!-- Required --> <pointsInSequence> <!-- Only StopPointInJourneyPattern is allowed --> <StopPointInJourneyPattern order="1" version="any" id="SE:253:StopPointInJourneyPattern:55700000035050829"> <ScheduledStopPointRef ref="SE:253:ScheduledStopPoint:9022005000001001"/> <!-- Required --> <ForAlighting>false</ForAlighting> <!-- default true --> <ForBoarding>true</ForBoarding> <!-- default true --> <DestinationDisplayRef ref="SE:253:DestinationDisplay:55700000037211691"/> <!-- Should be present on at least the first StopPointInJourneyPattern --> <RequestStop>true</RequestStop> <!-- default false --> </StopPointInJourneyPattern> <StopPointInJourneyPattern order="2" version="any" id="SE:253:StopPointInJourneyPattern:55700000035050830"> <ScheduledStopPointRef ref="SE:253:ScheduledStopPoint:9022005001364002"/> <ForAlighting>true</ForAlighting> <ForBoarding>true</ForBoarding> <RequestStop>true</RequestStop> </StopPointInJourneyPattern> <StopPointInJourneyPattern order="3" version="any" id="SE:253:StopPointInJourneyPattern:55700000035050831"> <ScheduledStopPointRef ref="SE:253:ScheduledStopPoint:9022005000057002"/> <ForAlighting>true</ForAlighting> <ForBoarding>false</ForBoarding> <RequestStop>false</RequestStop> </StopPointInJourneyPattern> <!-- More StopPointInJourneyPattern elements --> </pointsInSequence> <linksInSequence> <!-- Optional, omit if empty --> <!-- References to relevant ServiceLinks that has been defined in the _shared_data.xml-file --> <ServiceLinkInJourneyPattern order="1" version="any" id="SE:253:ServiceLinkInJourneyPattern:BUS_391"> <ServiceLinkRef ref="SE:253:ServiceLink:BUS_9025005000136402_9025005000005702"/> </ServiceLinkInJourneyPattern> <!-- More ServiceLinkInJourneyPattern elements --> </linksInSequence> <!-- PrivateCode is ignored --> <!-- runTimes is ignored --> <!-- waitTimes is ignored --> <!-- headways is ignored --> </JourneyPattern> </journeyPatterns> </ServiceFrame> <TimetableFrame version="20191127125021" id="SE:253:TimetableFrame:9011005005300000"> <!-- A planned journey from starting point to a destination, according to a JourneyPattern. --> <vehicleJourneys> <!-- Only ServiceJourney and DeadRun are allowed, but DeadRun is ignored --> <ServiceJourney version="any" id="SE:253:ServiceJourney:55700000049527547"> <TransportMode>bus</TransportMode> <!-- Required --> <!-- TransportSubmode is currently ignored --> <dayTypes> <!-- Required --> <DayTypeRef ref="SE:253:DayType:1"/> <!-- at least 1 --> </dayTypes> <JourneyPatternRef ref="SE:253:JourneyPattern:55700000035050824" version="any"/> <!-- Required --> <OperatorRef ref="SE:253:Operator:9013005918200000"/> <passingTimes> <!-- Required --> <TimetabledPassingTime version="any" id="SE:253:TimetabledPassingTime:55700000049527529"> <!-- Required --> <StopPointInJourneyPatternRef ref="SE:253:StopPointInJourneyPattern:55700000035050829" version="any"/> <!-- Optional DepartureDayOffset, default value = 0 --> <!-- Optional ArrivalDayOffset, default value = 0 --> <DepartureTime>06:40:00</DepartureTime> <!-- WaitingTime is ignored --> </TimetabledPassingTime> <TimetabledPassingTime version="any" id="SE:253:TimetabledPassingTime:55700000049527530"> <StopPointInJourneyPatternRef ref="SE:253:StopPointInJourneyPattern:55700000035050830" version="any"/> <ArrivalTime>06:41:28</ArrivalTime> <DepartureTime>06:41:28</DepartureTime> </TimetabledPassingTime> <!-- More TimetabledPassingTime elements --> <TimetabledPassingTime version="any" id="SE:253:TimetabledPassingTime:55700000049527544"> <StopPointInJourneyPatternRef ref="SE:253:StopPointInJourneyPattern:55700000035050829" version="any"/> <ArrivalTime>07:50:00</ArrivalTime> </TimetabledPassingTime> </passingTimes> </ServiceJourney> <!-- More ServiceJourneys --> </vehicleJourneys> <!-- Mappings between Notices defined in the _shared_data.xml-file and ServiceJourneys --> <noticeAssignments> <NoticeAssignment order="1" version="1" id="SE:NoticeAssignment:55700000050931583"> <NoticeRef ref="SE:253:Notice:55700000050931583"/> <NoticedObjectRef ref="SE:253:ServiceJourney:55700000049527547" /> <!-- Only refs to ServiceJourney are allowed --> </NoticeAssignment> </noticeAssignments> <journeyInterchanges> <!-- other than ServiceJourneyInterchange is ignored --> <ServiceJourneyInterchange version="any" id="SE:253:ServiceJourneyInterchange:55700000051347301_1"> <!-- Guaranteed and Advertised are ignored--> <FromPointRef ref="SE:253:ScheduledStopPoint:9022005000001001"/> <ToPointRef ref="SE:253:ScheduledStopPoint:9022005001364002" version="20190426"/> <FromJourneyRef ref="SE:253:ServiceJourney:55700000049527547"/> <ToJourneyRef ref="SE:253:ServiceJourney:55700000049527548" version="any"/> </ServiceJourneyInterchange> </journeyInterchanges> </TimetableFrame> </frames> </CompositeFrame> </dataObjects> </PublicationDelivery>