...
This page contains documentation of how 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 is converted to Netex (the Nordic Profile).
_shared_data.xml
...
breakoutMode | full-width |
---|---|
language | xml |
...
(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 | ||
---|---|---|
| ||
<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 | ||||
---|---|---|---|---|
| ||||
<?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 | ||||
---|---|---|---|---|
| ||||
<?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> <CompositeFrame created="2019-11-27T12:50:21" version="20191127125021" id="SE:253:CompositeFrame:1"> <!-- Version is timestamp of export, id is always 1 --> <Descriptor> <ValidBetween> <Name>Täby kommun</Name> <FromDate>2005-01-01T00:00:00</FromDate> <!-- Always set to 2005-01-01 --> </Descriptor> </ValidBetween> <TopographicPlaceType>municipality</TopographicPlaceType> <codespaces> <Codespace<CountryRef idref="253se"> <!-- id is same as Xmlns --/> <ParentTopographicPlaceRef ref="SE:005:TopographicPlace:SE_1" version="any"/> <Xmlns>253</Xmlns> <!-- From Samtrafiken's registry of producer numbers, based on data source --></TopographicPlace> <TopographicPlace version="any" id="SE:005:TopographicPlace:SE_0162"> <XmlnsUrl>http://www.samtrafiken.se/ns/Östgötatrafiken</XmlnsUrl> <!-- "Östgötatrafiken" is based on data source --> <PrivateCode>0162</PrivateCode> </Codespaced> <Descriptor> </codespaces> <FrameDefaults> <Name>Danderyds kommun</Name> <DefaultLocale> </Descriptor> <TimeZone>Europe/Stockholm</TimeZone> <TopographicPlaceType>municipality</TopographicPlaceType> <DefaultLanguage>se</DefaultLanguage> <CountryRef ref="se"/> </DefaultLocale> <ParentTopographicPlaceRef <DefaultLocationSystem>4326</DefaultLocationSystem> <!-- All coordinates are WGS84 -->ref="SE:005:TopographicPlace:SE_1" version="any"/> </FrameDefaults> TopographicPlace> <frames> <ResourceFrame version="20191127125021" id="SE:253:ResourceFrame:1"> <!-- VersionMore isTopographicPlace timestampelements. ofAll export (YYYYMMDDHHmmSS), id is always 1 counties and municipalities in Sweden --> <organisations> </topographicPlaces> <groupsOfStopPlaces> <!-- AuthorityGroupOfStopPlace is based on Noptis.TransportAuthoritySite --> <Authority <GroupOfStopPlaces version="2013120620120623" id="SE:253001:AuthorityGroupOfStopPlaces:90100050000000009091001000000103"> <!-- version=Noptis.TransportAuthoritySite.ExistsFromDate, id=Noptis.TransportAuthoritySite.Gid --> <ValidBetween> <Name>Östgötatrafiken</Name> <!-- Noptis.TransportAuthority.Name --> <FromDate>2012-06-23T00:00:00</FromDate> <!-- Noptis.Site.ExistsFromDate --> </ValidBetween> <LegalName>Östgötatrafiken<<Name>Nämdöböte</LegalName>Name> <!-- Noptis.OrganisationSite.FormalNameName --> <OrganisationType>authority</OrganisationType><Description>Nämdö</Description> <!-- Always "authority" Noptis.Site.PublicNote --> <PrivateCode>103</PrivateCode> </Authority> <!-- Noptis.Site.Number --> <!-- More Authority elements --><members> <!-- OperatorStopPlaceRefs isare based on Noptis.ContractorSiteNeighbouringStopArea --> <Operator<StopPlaceRef versionref="20131211SE:001:StopPlace:9021001000103000" idversion="SE:253:Operator:9013005918200000"20210224"/> <!-- versionref=Noptis.ContractorStopArea.ExistsFromDateGid, idversion=Noptis.ContractorStopArea.GidExistsFromDate --> <StopPlaceRef <Name>eBuss Motala</Name>ref="SE:001:StopPlace:9021005000001000" version="20161213"/> <!-- ref=Noptis.Contractor.NameStopArea.Gid, version=Noptis.StopArea.ExistsFromDate --> </members> <LegalName>eBuss i Sverige AB</LegalName> <!-- Noptis.Organisation.FormalName --> <Centroid> <OrganisationType>operator</OrganisationType><Location srsName="WGS84"> <!-- Always "operator" Noptis.Site.CoordinateSystemName --> </Operator> <Longitude>18.739921</Longitude> <!-- More Operator elementsNoptis.Site.CentroidEastingCoordinate --> </organisations> </ResourceFrame> <Latitude>59.208826</Latitude> <!-- Noptis.Site.CentroidNorthingCoordinate --> <ServiceFrame version="20191127125021" id="SE:253:ServiceFrame:1"> <!-- Version is timestamp of export (YYYYMMDDHHmmSS), id is always 1 --> </Location> <!-- Each unique Noptis.Line.IsDefinedByTransportAuthority will create a Network with the AuthorityRef. In this case there is only one,/Centroid> </GroupOfStopPlaces> </groupsOfStopPlaces> additional Networks would be placed in an "additionalNetworks" element.<stopPlaces> <!-- StopPlace is based on Noptis.StopArea --> <StopPlace <Network version="2013120620161213" id="SE:253:NetworkStopPlace:90100050000000009021005000001000"> <!-- version=Noptis.TransportAuthorityStopArea.ExistsFromDate, id=Noptis.TransportAuthorityStopArea.Gid --> <ValidBetween> <Name>Östgötatrafiken</Name> <!-- Noptis.TransportAuthority.Name --> <AuthorityRef ref="SE:253:Authority:9010005000000000" version="20131206"/> <FromDate>2016-12-13T00:00:00</FromDate> <!-- Noptis.StopArea.ExistsFromDate --> <!-- WIP, Netex.GroupOfLines is based on Noptis.GroupOfLines --> <!-- ToDate = Noptis.StopArea.ExistsToDate, in this case "ExistsToDate" is null --> <groupsOfLines> </ValidBetween> <GroupOfLines version="1" id="SE:253:GroupOfLines:1"> <Name>Norr Tull</Name> <!-- Noptis.StopArea.Name --> <ShortName>Norr <Name>Spårvagn<Tull</Name>ShortName> <!-- Noptis.GroupOfLinesStopArea.NameShortName --> <PrivateCode>1</PrivateCode> <!-- Noptis.StopArea.Number --> <PrivateCode>SPV</PrivateCode> <!-- Noptis.GroupOfLine.Code --> <Centroid> <Location> <members> <Longitude>16.176723</Longitude> <!-- Noptis.StopArea.CentroidEastingCoordinate --> <LineRef ref="SE:253:Line:9011005005300000"/> <!-- Based on Noptis.LineInGroupOfLines --> <Latitude>58.594850</Latitude> <!-- Noptis.StopArea.CentroidNorthingCoordinate --> </members> </Location> </GroupOfLines>Centroid> <TopographicPlaceRef ref="SE:005:TopographicPlace:SE_0160" version="any"/> </groupsOfLines>!-- Stops in Sweden are linked to their Municipality. Stops in other countries are linked to their Country. --> </Network> <OrganisationRef ref="SE:253:Authority:9010005000000000"/> <routePoints> <!-- Noptis.StopArea.IsDefinedByTransportAuthortiy --> <entrances> <!-- RoutePoint, ScheduledStopPoint, PassengerStopAssignment are allEntrances are based on Noptis.StopPointStationEntrancePoint --> <RoutePoint<StopPlaceEntrance version="2019042620120623" id="SE:253275:RoutePointStopPlaceEntrance:90220050000010019023001006651001"> <!-- version=Noptis.StopPointStationEntrancePoint.ExistsFromDate, id=Noptis.StopPointStationEntrancePoint.Gid --> <projections> <ValidBetween> <PointProjection version="20190426" id="SE:253:PointProjection:9022005000001001"> <FromDate>2014-03-11T00:00:00</FromDate> <!-- version=Noptis.StopPointStationEntrancePoint.ExistsFromDate, id=Noptis.StopPoint.Gid but not earlier than parent StopPlace.FromDate --> <!-- ToDate = Noptis.StationEntrancePoint.ExistsToDate, in <ProjectedPointRef ref="SE:253:ScheduledStopPoint:9022005000001001" version="20190426"/> this case "ExistsToDate" is null, not later than parent StopPlace.ToDate --> </PointProjection> </ValidBetween> </projections> <Name>Djursholms Ösby</Name> <!-- Noptis.StationEntrancePoint.Name --> </RoutePoint> <Centroid> <!-- More RoutePoint elements --> </routePoints> <Location> <destinationDisplays> <Longitude>18.058320</Longitude> <!-- DestinationDisplay is based on Noptis.StationEntrancePoint.DestinationDisplayLocationEastingCoordinate --> <Latitude>59.397925</Latitude> <!-- DestinationDisplays that are used as "via" are created from each Noptis.DestinationDisplay.SecondaryDestinationName. Theses elements are recognized by having "via_" prepended to their id.Noptis.StationEntrancePoint.LocationNorthingCoordinate --> </Location> In the example below, both DestinationDisplay elements are created from the same Noptis.DestinationDisplay. --> </Centroid> <DestinationDisplay version="any" id="SE:253:DestinationDisplay:via_55700000037211691"> <!-- id=Noptis.DestinationDisplay.Id --> </StopPlaceEntrance> <!-- More StopPlaceEntrance elements --> <FrontText>Västerlösa</FrontText> <!-- Noptis.DestinationDisplay.SecondaryDestinationName --> </entrances> <PublicCode>573<<TransportMode>bus</PublicCode>TransportMode> <!-- See Noptis.DestinationDisplay.LineDesignation --> the section "General Noptis to Netex mappings" below --> </DestinationDisplay><tariffZones> <DestinationDisplay<TariffZoneRef versionref="anySE:005:TariffZone:9081005201004216" idversion="SE:253:DestinationDisplay:55700000037211691"160620"/> <!-- id=Noptis.DestinationDisplay.Id --> Tariff zones this stop area belongs to , Noptis.JourneyPatternPointInZone aggregated on StopArea level --> <FrontText>Malmslätt</FrontText> <!-- Noptis.DestinationDisplay.PrimaryDestinationName --> </tariffZones> <PublicCode>573</PublicCode><StopPlaceType>busStation</StopPlaceType> <!-- Noptis.DestinationDisplay.LineDesignation --> See the section "General Noptis to Netex mappings" below --> <vias> <Weighting>interchangeAllowed</Weighting> <!-- See the section "General Noptis to Netex mappings" below --> <Via> <quays> <!-- Quay is based on Noptis.StopPoint and Noptis.JourneyPatternPoint --> <Quay <DestinationDisplayRef refversion="20180419" id="SE:253:DestinationDisplayQuay:via_55700000037211691" version="any"/9022005000001001"> <!-- version=Noptis.StopPoint.ExistsFromDate, id=Noptis.StopPoint.Gid --> <ValidBetween> </Via> </vias> <FromDate>2019-04-26T00:00:00</FromDate> <!-- Noptis.StopPoint.ExistsFromDate but not earlier than parent StopPlace.FromDate --> </DestinationDisplay> <!-- ToDate = Noptis.StopPoint.ExistsToDate, in this <!-- More DestinationDisplay elements --> case "ExistsToDate" is null, not later than parent StopPlace.ToDate --> </destinationDisplays> </ValidBetween> <scheduledStopPoints> <Name>Norr Tull</Name> <!-- RoutePoint, ScheduledStopPoint, PassengerStopAssignment are all based on Noptis.StopPoint.Name --> <ScheduledStopPoint version="20190426" id="SE:253:ScheduledStopPoint:9022005000001001"> <ShortName>Norr Tull</ShortName> <!-- version=Noptis.StopPoint.ExistsFromDate, id=Noptis.StopPoint.GidShortName --> <Name>Norr Tull<<PrivateCode>1</Name>PrivateCode> <!-- Noptis.StopPoint.NameLocalNumber --> </ScheduledStopPoint> <Centroid> <Location> <!-- More ScheduledStopPoint elements --> </scheduledStopPoints> <Longitude>16.177052</Longitude> <!-- Noptis.JourneyPatternPoint.LocationEastingCoordinate --> <serviceLinks> <!-- ServiceLink is based on<Latitude>58.595038</Latitude> <!-- Noptis.RouteLinkJourneyPatternPoint.LocationNorthingCoordinate --> <ServiceLink version="20190213" id="SE:253:ServiceLink:BUS_9025005000136402_9025005000005702"> <!-- version=Noptis.RouteLink.ExistsFromDate, </Location> id=Noptis.RouteLinkTraversableByTransportModeCode.TransportModeCode + Noptis.RouteLink.StartsAtJourneyPatternPointGid + Noptis.RouteLink.EndsAtJourneyPatternPointGid --> </Centroid> <!-- WIP, <ValidBetween>Netex.ZoneProjections are based on Noptis.JourneyPatternPointInZone --> <FromDate>2019-02-13T00:00:00</FromDate> <!-- Noptis.RouteLink.ExistsFromDate --> <projections> <ZoneProjection <!-- ToDate = Noptis.RouteLink.ExistsToDate, in this case "ExistsToDate" is null -->version="any" id="TEST:ZoneProjection:1"> </ValidBetween> <ProjectedZoneRef ref="TEST:TopographicPlace:1"/> <Distance>338</Distance> <!-- Noptis.RouteLink.DistanceMeters --> </ZoneProjection> <projections> </projections> <LinkSequenceProjection version="20190213" id="SE:253:LinkSequenceProjection:BUS_9025005000136402_9025005000005702"> <PublicCode>A</PublicCode> <!-- Same ID as parent ServiceLinkNoptis.StopPoint.Designation --> <ns2:LineString srsName="4326" ns2:id="LS_BUS_9025005000136402_9025005000005702"> <equipmentPlaces> <!-- SameBased IDon asNoptis parentConnectionLink, ServiceLinkObstacleOnLink, butBridgingDevice with "LS_" prepended -->--> <EquipmentPlace version="any" id="SE:001:EquipmentPlace:14010000311143397"> <!-- id = Noptis.BridgingDevice.Id --> <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> <placeEquipments> <EntranceEquipment version="any" id="SE:001:EntranceEquipment:14010000311143397"> <!-- Each coordinate pair is created from one- id = Noptis.PointOnRouteLinkBridgingDevice.Id --> </ns2:LineString> <Door>true</Door> <!-- Noptis.BridgingDevice (TypeCode = DOOR) --> </LinkSequenceProjection> </projections>EntranceEquipment> <FromPointRef ref="SE:253:ScheduledStopPoint:9022005001364002" version="20190426"/> <!-- Noptis.RouteLink.StartsAtJourneyPatternPointGid --> </placeEquipments> <ToPointRef ref="SE:253:ScheduledStopPoint:9022005000057002" version="20190426"/> <!-- Noptis.RouteLink.EndsAtJourneyPatternPointGid -->/EquipmentPlace> <VehicleMode>bus</VehicleMode> <!-- See the section "General Noptis to Netex mappings" below --></equipmentPlaces> </ServiceLink>Quay> <!-- More ServiceLinkQuay elements --> </serviceLinks>quays> </StopPlace> <stopAssignments> <!-- More StopPlace elements --> <!-- RoutePoint, ScheduledStopPoint, PassengerStopAssignment are all</stopPlaces> based on Noptis.StopPoint --> <tariffZones> <PassengerStopAssignment order="0"<TariffZone version="20190426160620" id="SE:253005:PassengerStopAssignmentTariffZone:90220050000010019081005201004216"> <!-- Noptis.Zone where TypeCode == "TARIFFZO". version=Noptis.StopPointZone.ExistsFromDate, id=Noptis.StopPointZone.Gid, "order" is always 0 --> <ValidBetween> <ScheduledStopPointRef ref="SE:253:ScheduledStopPoint:9022005000001001" version="20190426"/> <QuayRef ref="SE:253:Quay:9022005000001001"/> <FromDate>2016-06-20T00:00:00</FromDate> <!-- existsFromDate --> </PassengerStopAssignment> ValidBetween> <Name>Norrköping</Name> <!-- More PassengerStopAssignmentName elements --> <<ShortName>Norrköping</stopAssignments>ShortName> <!-- Shortname --> <notices> <PrivateCode>1004216</PrivateCode> <!-- Number --> <!-- Notice is based on Noptis.AdvanceOrderCondition --></TariffZone> </tariffZones> <Notice version="any" id="SE:253:Notice:55700000050931583"> <!-- id=Noptis.AdvanceOrderCondition.Id --><navigationPaths> <!-- NavigationPath is based on Noptis.ConnectionLink when 'From' and 'To' are both Quay references <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 --> NavigationPath is based on Noptis.StationEntryLink when 'From' is a StopPlaceEntrance reference and 'To' is a Quay reference --> </Notice> <!-- NavigationPath is based on Noptis.StationExitLink when 'From' is a Quay reference and <!-- More Notice elements'To' is a StopPlaceEntrance reference --> </notices>!-- NavigationPath may contain validityConditions and timebands if they have limited dates and opening hours --> </ServiceFrame> <ServiceCalendarFrame<NavigationPath version="2019112712502120180504" id="SE:253:ServiceCalendarFrameNavigationPath:155700000046273098"> <!-- Version is timestamp of export (YYYYMMDDHHmmSS), id is always 1version=Noptis.ConnectionLink.ExistsFromDate, id=Noptis.ConnectionLink.Id --> <Distance>0</Distance> <!-- version=Noptis.ConnectionLink.DistanceMeters. If null, Distance will be 0 --> <!--<From> 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. <PlaceRef ref="SE:253:Quay:9022005000100216" version="20140218"/> <!-- version=Noptis.StopPoint.ExistsFromDate id=Noptis.StopPoint.Gid from Noptis.ConnectionLink.StartsAtJourneyPatternPoint --> The DayType contains each Noptis.DatedVehicleJourney.OperatingDayDate as a DayTypeAssignment. OperatingPeriods or exceptions (DayTypeAssignment.isAvailable) are NOT used. --> </From> <To> <dayType <DayType version="any" id="<PlaceRef ref="SE:253:DayType:1Quay:9022005000102017" version="20181204"/> <!-- version=Noptis.StopPoint.ExistsFromDate id=Noptis.StopPoint.Gid from Noptis.ConnectionLink.EndsAtJourneyPatternPoint --> <DayType version="any" id="SE:253:DayType:2"/> </To> <TransferDuration> <DayType version="any" id="SE:253:DayType:3"/> <DayType<DefaultDuration>PT6M</DefaultDuration> <!-- version="any" id="SE:253:DayType:4"/Noptis.ConnectionLink.DefaultDurationSeconds --> <DayType version="any" id="SE:253:DayType:5"/></TransferDuration> <DayType<AccessibilityAssessment version="any20180504" id="SE:253:DayType:6"/> :275:AccessibilityAssessment:4010000565163766"> <!-- SE:<producerNumber>:AccessibilityAssessment:<obstacleOnLinkId> , version=ObstacleOnLink.ExistsFromDate --> <DayType version="any" id="SE:253:DayType:7"/> <MobilityImpairedAccess>unknown</MobilityImpairedAccess> <!-- Always unknown, required field but data is not available --> <DayType version="any" id="SE:253:DayType:8"/> <limitations> <DayType version="any" id="SE:253:DayType:9"/> <AccessibilityLimitation> <DayType version="any" id="SE:253:DayType:10"/> <WheelchairAccess>unknown</WheelchairAccess> <!-- Always unknown, required field but data is not available --> <DayType version="any" id="SE:253:DayType:11"/> <DayType version="any" id="SE:253:DayType:12"/> <StepFreeAccess>false</StepFreeAccess> <!-- BridgingDevice.TypeCode, “false” if there is a BridgingDevice for which TypeCode == 'STAIRWAY'. --> <DayType version="any" id="SE:253:DayType:13"/> <EscalatorFreeAccess>unknown</EscalatorFreeAccess> </dayTypes> !-- BridgingDevice.TypeCode, “false” if there is a BridgingDevice for which TypeCode == 'ESCALAT'. --> <dayTypeAssignments> <LiftFreeAccess>unknown</LiftFreeAccess> <DayTypeAssignment order="1" version="any" id="SE:253:DayTypeAssignment:1-20191125"> <!-- BridgingDevice.TypeCode, “false” if there is a BridgingDevice for which TypeCode == 'ELEVATOR'. --> <Date>2019-11-25</Date> </AccessibilityLimitation> </limitations> <DayTypeRef ref="SE:253:DayType:1" version="any"/> </AccessibilityAssessment> </DayTypeAssignment> </NavigationPath> <DayTypeAssignment order="2" <NavigationPath version="any20120623" id="SE:253251:DayTypeAssignmentNavigationPath:1-2019112614010000311143757"> <!-- version=Noptis.StationEntryLink.ExistsFromDate, id=Noptis.StationEntryLink.Id --> <Date>2019-11-26</Date> <DayTypeRef ref="SE:253:DayType:1" version="any"/> <Distance>2.0</Distance> <!-- version=Noptis.StationEntryLink.DistanceMeters. If null, Distance will be 0 --> </DayTypeAssignment><From> <DayTypeAssignment<PlaceRef orderref="3SE:251:StopPlaceEntrance:9023001006651002" version="any20120623"/> id="SE:253:DayTypeAssignment:1-20191127"><!-- version=Noptis.StationEntrancePoint.ExistsFromDate id=Noptis.StationEntrancePoint.Gid --> </From> <Date>2019-11-27</Date> <To> <DayTypeRef<PlaceRef ref="SE:253251:DayTypeQuay:19022003719007001" version="any20150827"/> <!-- version=Noptis.StopPoint.ExistsFromDate id=Noptis.StopPoint.Gid from Noptis.StationEntryLink.EndsAtJourneyPatternPoint --> </DayTypeAssignment>To> <TransferDuration> <DefaultDuration>PT3M1S</DefaultDuration> <!-- More DayTypeAssignment elementsversion=Noptis.StationEntryLink.DefaultDurationSeconds --> </dayTypeAssignments>TransferDuration> </ServiceCalendarFrame>NavigationPath> </frames> </CompositeFrame> </dataObjects> </PublicationDelivery> |
_stops.xml
Code Block | ||||
---|---|---|---|---|
| ||||
<?xml <NavigationPath version="1.020120623" 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 exportid="SE:251:NavigationPath:14010000311147186"> <!-- version=Noptis.StationExitLink.ExistsFromDate, id=Noptis.StationExitLink.Id --> <Distance>3.0</Distance> <!-- version=Noptis.StationExitLink.DistanceMeters. If null, Distance will be 0 --> <ParticipantRef>SAM</ParticipantRef> <dataObjects> <From> <SiteFrame version="20191127125021" id="SE:253:SiteFrame:1"> <!-- Version is timestamp of export (YYYYMMDDHHmmSS), id is always 1 --> <PlaceRef ref="SE:251:Quay:9022003719007002" version="20150827"/> <!-- version=Noptis.StopPoint.ExistsFromDate id=Noptis.StopPoint.Gid from Noptis.StationExitLink.StartsAtJourneyPatternPoint --> <ValidBetween> <FromDate>2005-01-01T00:00:00</FromDate> <!-- Always set to 2005-01-01 --> </From> </ValidBetween> <To> <codespaces> <PlaceRef <Codespace id="253"ref="SE:251:StopPlaceEntrance:9023001006661001" version="20120623"/> <!-- version=Noptis.StationEntrancePoint.ExistsFromDate id is same as Xmlns -->=Noptis.StationEntrancePoint.Gid --> </To> <Xmlns>253</Xmlns> <!-- From Samtrafiken's registry of producer numbers, based<TransferDuration> on data source --> <XmlnsUrl>http://www.samtrafiken.se/ns/Östgötatrafiken</XmlnsUrl><DefaultDuration>PT3M2S</DefaultDuration> <!-- "Östgötatrafiken" is based on data source -->version=Noptis.StationExitLink.DefaultDurationSeconds --> </Codespace>TransferDuration> </codespaces>NavigationPath> <FrameDefaults><pathLinksInSequence> <DefaultLocale> <PathLinkInSequence order="1" version="any" id="SE:001:PathLinkInSequence:14010000311183662-1"> <TimeZone>Europe/Stockholm</TimeZone> <LinkSequenceRef ref="SE:001:PathLink:14010000311183662-1" version="20120623"/> <!-- ref=Noptis.ConnectionLink.Id-1, version=Noptis.ConnectionLink.ExistsFrom --> <DefaultLanguage>se</DefaultLanguage> </DefaultLocale>PathLinkInSequence> <DefaultLocationSystem>4326</DefaultLocationSystem> <!-- All coordinates are WGS84 --><PathLinkInSequence order="2" version="any" id="SE:001:PathLinkInSequence:14010000311183662-2"> </FrameDefaults> <LinkSequenceRef ref="SE:001:PathLink:14010000311183662-2" version="20120623"/> <!-- WIP, TopographicPlace is based on Noptis.Zone . TopographicPlaces are referenced from Quays through ZoneProjections -- ref=Noptis.ConnectionLink.Id-2, version=Noptis.ConnectionLink.ExistsFrom --> <topographicPlaces> </PathLinkInSequence> <TopographicPlace version="any" id="SE:253:TopographicPlace:1"> </pathLinksInSequence> <ValidBetween> <!-- More NavigationPath elements --> </navigationPaths> <FromDate>2016-12-13T00:00:00</FromDate> <!-- Noptis.Zone.ExistsFromDate --> <pathLinks> <PathLink version="20120623" id="SE:001:PathLink:14010000311183662-1"> <!-- ToDate id= Noptis.ZoneConnectionLink.ExistsToDate, in this case "ExistsToDate" is null --> Id-1, version=Noptis.ConnectionLink.ExistsFrom --> </ValidBetween> <ValidBetween> <Name>Boxholm</Name><FromDate>2019-02-13T00:00:00</FromDate> <!-- Noptis.ZoneConnectionLink.NameExistsFromDate --> <PrivateCode>0560</PrivateCode> <!-- ToDate = Noptis.Zone.Number --> ConnectionLink.ExistsToDate, in this case "ExistsToDate" is null --> <TopographicPlaceType>municipality</TopographicPlaceType> <!--/ValidBetween> Based on Noptis.Zone.ZoneTypeCode --> </TopographicPlace><From> </topographicPlaces> <PlaceRef ref="SE:001:Quay:9022001070462002" version="20140603"/> <!-- WIP, GroupOfStopPlace is based on Noptis.Siteid=Noptis.StopPoint.Gid, version=Noptis.StopPoint.Gid --> <groupsOfStopPlaces> <GroupOfStopPlaces></GroupOfStopPlaces> </groupsOfStopPlaces>From> <stopPlaces> <!-- StopPlace is based<To> on Noptis.StopArea --> <PlaceRef <StopPlace versionref="20161213SE:001:EquipmentPlace:14010000311143397" idversion="SE:253:StopPlace:9021005000001000"any"/> <!-- versionid=Noptis.StopAreaBridgingDevice.ExistsFromDate, id=Noptis.StopArea.Gid --> </To> <ValidBetween> </PathLink> <FromDate>2016-12-13T00:00:00</FromDate> <!-- Noptis.StopArea.ExistsFromDate --> <PathLink version="20120623" id="SE:001:PathLink:14010000311183662-2"> <!-- ToDate id= Noptis.StopAreaConnectionLink.ExistsToDate, in this case "ExistsToDate" is nullId-2, version=Noptis.ConnectionLink.ExistsFrom --> <From> </ValidBetween> <PlaceRef <Name>Norr Tull</Name>ref="SE:001:EquipmentPlace:14010000311143397" version="any"/> <!-- id=Noptis.StopAreaBridgingDevice.Nameid --> </From> <ShortName>Norr Tull</ShortName> <!-- Noptis.StopArea.ShortName --> <To> <PlaceRef <PrivateCode>1</PrivateCode>ref="SE:001:Quay:9022001070462001" version="20140603"/> <!-- id=Noptis.StopPoint.Gid, version=Noptis.StopAreaStopPoint.NumberGid --> </To> <Centroid> </PathLink> <Location> <Longitude>16.176723</Longitude> <!-- Noptis.StopArea.CentroidEastingCoordinate --></pathLinks> </SiteFrame> </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 | ||||
---|---|---|---|---|
| ||||
<?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"> <Latitude>58.594850</Latitude><PublicationTimestamp>2019-11-27T12:50:21</PublicationTimestamp> <!-- Noptis.StopArea.CentroidNorthingCoordinateTimestamp of export --> <ParticipantRef>SAM</ParticipantRef> <dataObjects> <CompositeFrame created="2019-11-27T12:50:21" version="20191127125021" </Location> id="SE:253:CompositeFrame:9011005005300000"> <!-- Version is timestamp of export (YYYYMMDDHHmmSS), id will always be 1 --> </Centroid> <ValidBetween> <OrganisationRef ref="SE:253:Authority:9010005000000000"/><FromDate>2005-01-01T00:00:00</FromDate> <!-- Noptis.StopArea.IsDefinedByTransportAuthortiy --> Always set to 2005-01-01 --> <entrances> <!-- Entrances are based on Noptis.StationEntrancePoint --></ValidBetween> <codespaces> <StopPlaceEntrance version="20120623" <Codespace id="SE:275:StopPlaceEntrance:9023001006651001253"> <!-- version=Noptis.StationEntrancePoint.ExistsFromDate, id=Noptis.StationEntrancePoint.Gid id is same as Xmlns --> <Xmlns>253</Xmlns> <!-- From Samtrafiken's registry of producer numbers, <ValidBetween>based on data source --> <XmlnsUrl>http://www.samtrafiken.se/ns/Östgötatrafiken</XmlnsUrl> <!-- "Östgötatrafiken" is based on data source <FromDate>2014-03-11T00:00:00</FromDate> <!-- Noptis.StationEntrancePoint.ExistsFromDate but not earlier than parent StopPlace.FromDate -->-> </Codespace> </codespaces> <FrameDefaults> <!-- ToDate = Noptis.StationEntrancePoint.ExistsToDate, in this case "ExistsToDate" is null, not later than parent StopPlace.ToDate --><DefaultLocale> <TimeZone>Europe/Stockholm</TimeZone> </ValidBetween><DefaultLanguage>se</DefaultLanguage> </DefaultLocale> <Name>Djursholms Ösby<<DefaultLocationSystem>4326</Name>DefaultLocationSystem> <!-- Noptis.StationEntrancePoint.Name All coordinates are WGS84 --> </FrameDefaults> <frames> <Centroid> <ServiceFrame version="20191127125021" id="SE:253:ServiceFrame:9011005005300000"> <!-- Version is timestamp of export (YYYYMMDDHHmmSS), id=Noptis.Line.Gid --> <Location> <routes> <Longitude>18.058320</Longitude> <!-- Route is based on Noptis.JourneyPattern and Noptis.DirectionOfLine. Each Noptis.StationEntrancePoint.LocationEastingCoordinateJourneyPattern will create a Route. --> <Route version="any" id="SE:253:Route:55700000035050824"> <Latitude>59.397925</Latitude> <!-- Noptis.StationEntrancePoint.LocationNorthingCoordinate --> <Name>Motala</Name> <!-- Noptis.DirectionOfLine.Name --> </Location> <LineRef ref="SE:253:Line:9011005005300000" version="20131215"/> </Centroid> <DirectionType>outbound</DirectionType> <!-- Noptis.DirectionOfLine.DirectionCode. ODD = outbound, EVEN = inbound. --> </StopPlaceEntrance> <!-- More StopPlaceEntrance elements<pointsInSequence> --> </entrances> <!-- PointOnRoute is based on Noptis.PointInJourneyPattern --> <TransportMode>bus</TransportMode> <!-- See the section "General Noptis to Netex mappings" below --> <PointOnRoute order="1" <StopPlaceType>busStation</StopPlaceType>version="any" id="SE:253:PointOnRoute:55700000035050829"> <!-- See the section "General Noptis to Netex mappings" below -->order=Noptis.PointInJourneyPattern.SequenceNumber, id=Noptis.PointInJourneyPattern.Id --> <Weighting>interchangeAllowed</Weighting> <!-- See the section "General Noptis to Netex mappings" below --><RoutePointRef ref="SE:253:RoutePoint:9022005000050016"/> <quays> <!-- Quay is based</PointOnRoute> on Noptis.StopPoint and Noptis.JourneyPatternPoint --> <Quay version="20180419" id="SE:253:Quay:9022005000001001"> <!-- version=Noptis.StopPoint.ExistsFromDate, id=Noptis.StopPoint.GidMore PointOnRoute elements --> </pointsInSequence> <ValidBetween> </Route> <FromDate>2019<!-04-26T00:00:00</FromDate> <!-- Noptis.StopPoint.ExistsFromDate but not earlier than parent StopPlace.FromDate -->- More Route elements --> </routes> <lines> <!-- ToDate = Noptis.StopPoint.ExistsToDate, in this case "ExistsToDate" is null, not later than parent StopPlace.ToDate <!-- Line is based on Noptis.Line --> <Line version="20131215" id="SE:253:Line:9011005005300000"> <!-- version=Noptis.Line.ExistsFromDate, id=Noptis.Line.Gid --> </ValidBetween> <ValidBetween> <Name>Norr Tull</Name> <!-- Noptis.StopPoint.Name --> <ShortName>Norr Tull</ShortName><FromDate>2019-02-13T00:00:00</FromDate> <!-- Noptis.StopPointLine.ShortNameExistsFromDate --> <PrivateCode>1</PrivateCode> <!-- ToDate = Noptis.StopPoint.LocalNumberLine.ExistsToDate, in this case "ExistsToDate" is null --> <Centroid></ValidBetween> <Name>53</Name> <!-- Noptis.Line.Name, eller <Location>Noptis.Line.Designation om Noptis.Line.Name är tom --> <Longitude>16.177052</Longitude><TransportMode>rail</TransportMode> <!-- Noptis.JourneyPatternPoint.LocationEastingCoordinateSee the section "General Noptis to Netex mappings" below --> <TransportSubmode> <Latitude>58.595038</Latitude> <!-- Noptis.JourneyPatternPoint.LocationNorthingCoordinate --> <RailSubmode>unknown</RailSubmode> <!-- Netex.TransportSubmode is always mapped to UNKNOWN since that information is not available </Location>in NOPTIS. --> </Centroid>TransportSubmode> <PublicCode>53</PublicCode> <!-- WIP, Netex.ZoneProjections are based on Noptis.JourneyPatternPointInZoneNoptis.Line.Designation --> <projections> <PrivateCode>53</PrivateCode> <!-- Noptis.Line.Number --> <RepresentedByGroupRef <ZoneProjection versionref="any" id="TEST:ZoneProjection:1"SE:253:Network:9010005000000000"/> </Line> <ProjectedZoneRef ref="TEST:TopographicPlace:1"/> </lines> <journeyPatterns> </ZoneProjection> <!-- JourneyPattern is based on Noptis.NamedJourneyPattern --> </projections> <JourneyPattern <PublicCode>A</PublicCode>version="any" id="SE:253:JourneyPattern:55700000035050824"> <!-- id=Noptis.StopPointNamedJourneyPattern.DesignationId --> </Quay> <RouteRef ref="SE:253:Route:55700000035050824" version="any"/> <!-- More Quay elements --> <pointsInSequence> </quays> </StopPlace> !-- StopPointInJourneyPattern is based on Noptis.PointInJourneyPattern --> <!-- More StopPlace elements --> </stopPlaces> <StopPointInJourneyPattern order="1" version="any" id="SE:253:StopPointInJourneyPattern:55700000035050829"> <navigationPaths> <!-- NavigationPath is based on Noptis.ConnectionLink when 'From' and 'To' are both Quay references<!-- order=Noptis.PointInJourneyPattern.SequenceNumber, id=Noptis.PointInJourneyPattern.Id --> <!-- NavigationPath is based on Noptis.StationEntryLink when 'From' is a StopPlaceEntrance reference and 'To' is a Quay reference --> <ScheduledStopPointRef ref="SE:253:ScheduledStopPoint:9022005000050016"/> <!-- NavigationPath is based on Noptis.StationExitLink when 'From' is a Quay reference and 'To' is a StopPlaceEntrance reference --> <ForAlighting>false</ForAlighting> <!-- See the section "General Noptis to Netex mappings" below --> <NavigationPath version="20180504" id="SE:253:NavigationPath:55700000046273098"> <!-- version=Noptis.ConnectionLink.ExistsFromDate, id=Noptis.ConnectionLink.Id --> <Distance>0</Distance> <!-- version=Noptis.ConnectionLink.DistanceMeters. If null, Distance will be 0<ForBoarding>true</ForBoarding> <!--> See the section "General Noptis to Netex mappings" below --> <From> <PlaceRef<DestinationDisplayRef ref="SE:253:QuayDestinationDisplay:9022005000100216" version="20140218"55700000037211691"/> <!-- version=Noptis.StopPoint.ExistsFromDate id=Noptis.StopPoint.Gid from Noptis.ConnectionLink.StartsAtJourneyPatternPoint --> </From> <RequestStop>true</RequestStop> <!-- See the section "General Noptis to Netex mappings" below --> <To> <PlaceRef ref="SE:253:Quay:9022005000102017" version="20181204"/> <!-- version=Noptis.StopPoint.ExistsFromDate id=Noptis.StopPoint.Gid from Noptis.ConnectionLink.EndsAtJourneyPatternPoint -->/StopPointInJourneyPattern> </To> <!-- More StopPointInJourneyPattern elements --> <TransferDuration> </pointsInSequence> <DefaultDuration>PT6M</DefaultDuration> <!-- version=Noptis.ConnectionLink.DefaultDurationSeconds --> <linksInSequence> </TransferDuration> </NavigationPath> <ServiceLinkInJourneyPattern order="1" <NavigationPath version="20120623any" id="SE:251253:NavigationPathServiceLinkInJourneyPattern:14010000311143757BUS_391"> <!-- versionorder=Noptis.StationEntryLinkPointInJourneyPattern.ExistsFromDateSequenceNumber, id=Noptis.StationEntryLink.Id --> <Distance>2.0</Distance> <!-- version=Noptis.StationEntryLink.DistanceMeters. If null, Distance will be 0 --> id is Noptis.Line.DefaultTransportModeCode + a counter. --> <From> <PlaceRef<ServiceLinkRef ref="SE:251253:StopPlaceEntrance:9023001006651002" version="20120623"/> <!-- version=Noptis.StationEntrancePoint.ExistsFromDate id=Noptis.StationEntrancePoint.Gid --> ServiceLink:BUS_9025005000005016_9025005000122302"/> </From> </ServiceLinkInJourneyPattern> <To> <PlaceRef ref="SE:251:Quay:9022003719007001" version="20150827"/> <!-- version=Noptis.StopPoint.ExistsFromDate id=Noptis.StopPoint.Gid from Noptis.StationEntryLink.EndsAtJourneyPatternPoint -->More ServiceLinkInJourneyPattern elements --> </To>linksInSequence> <TransferDuration> </JourneyPattern> <DefaultDuration>PT3M1S</DefaultDuration> <!-- version=Noptis.StationEntryLink.DefaultDurationSeconds --> </journeyPatterns> </ServiceFrame> <TimetableFrame version="20191127125021" id="SE:253:TimetableFrame:9011005005300000"> <!-- Version is timestamp of export (YYYYMMDDHHmmSS), id=Noptis.Line.Gid --> </TransferDuration> <vehicleJourneys> </NavigationPath> <NavigationPath version="20120623" id="SE:251:NavigationPath:14010000311147186"> <!-- version=Noptis.StationExitLink.ExistsFromDate, id=Noptis.StationExitLink.IdServiceJourney is based on Noptis.VehicleJourney --> <Distance>3.0</Distance> <ServiceJourney version="any" id="SE:253:ServiceJourney:55700000049527547"> <!-- versionid=Noptis.StationExitLink.DistanceMeters. If null, Distance will be 0 VehicleJourney.Id --> <From> <PrivateCode>123</PrivateCode> <!-- Not in Noptis but in Stip as VehicleJourney.InternalJourneyNumber. Currently <PlaceRef ref="SE:251:Quay:9022003719007002" version="20150827"/> <!-- version=Noptis.StopPoint.ExistsFromDate id=Noptis.StopPoint.Gid from Noptis.StationExitLink.StartsAtJourneyPatternPoint -->only imported from TRP.30-Post.TURNR and Netex.ServiceJourney. --> </From> <TransportMode>rail</TransportMode> <!-- See the section "General Noptis to Netex mappings" below --> <To> <TransportSubmode> <PlaceRef ref="SE:251:StopPlaceEntrance:9023001006661001" version="20120623"/> <!-- version=Noptis.StationEntrancePoint.ExistsFromDate id=Noptis.StationEntrancePoint.Gid --> <RailSubmode>unknown</RailSubmode> </To> !-- Netex.TransportSubmode is always mapped to UNKNOWN since that information is not available in NOPTIS. --> <TransferDuration> </TransportSubmode> <DefaultDuration>PT3M2S</DefaultDuration> <!-- version=Noptis.StationExitLink.DefaultDurationSeconds --> </TransferDuration> <dayTypes> </NavigationPath> <!-- More NavigationPath elements --> </navigationPaths><DayTypeRef ref="SE:253:DayType:1"/> <!-- See the explanation for ServiceCalendarFrame in the "_shared_data.xml" section --> </SiteFrame> </dataObjects> </PublicationDelivery> |
line_{Noptis.Line.Number}_{Noptis.Line.Gid}.xml (line_53_9011005005300000.xml)
Code Block | ||||
---|---|---|---|---|
| ||||
<?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"> </dayTypes> <PublicationTimestamp>2019-11-27T12:50:21</PublicationTimestamp> <!-- Timestamp of export --> <ParticipantRef>SAM</ParticipantRef> <dataObjects> <CompositeFrame<JourneyPatternRef createdref="2019-11-27T12:50:21SE:253:JourneyPattern:55700000035050824" version="20191127125021" idany"/> <OperatorRef ref="SE:253:CompositeFrameOperator:90110050053000009013005918200000"/> <trainNumbers> <!-- VersionTrainNumbers is timestamp of export (YYYYMMDDHHmmSS), id will always be 1exists only for ServiceJourneys that are trains. --> <ValidBetween> <FromDate>2005-01-01T00:00:00</FromDate> <!-- Always set to 2005-01-01 --> </ValidBetween> 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). --> <codespaces> <Codespace id="253"> <!-- id is same as Xmlns --> <TrainNumberRef ref="SE:253:TrainNumber:9011074007000000_74" versionRef="any"/> <Xmlns>253</Xmlns> <!-- From Samtrafiken's registry of producer numbers, based on data source --> <TrainNumberRef ref="SE:253:TrainNumber:9011074007000000_70" versionRef="any"/> <XmlnsUrl>http://www.samtrafiken.se/ns/Östgötatrafiken</XmlnsUrl> <!-- "Östgötatrafiken" is based on data source --> </trainNumbers> </Codespace> </codespaces> <passingTimes> <FrameDefaults> <DefaultLocale> <!-- TimetabledPassingTime is based on CallOnTimedJourneyPattern --> <TimeZone>Europe/Stockholm</TimeZone> <DefaultLanguage>se</DefaultLanguage> <TimetabledPassingTime version="any" id="SE:253:TimetabledPassingTime:55700000049527529"> <!-- id=Noptis.CallOnTimedJourneyPattern.Id --> </DefaultLocale> <DefaultLocationSystem>4326</DefaultLocationSystem> <!-- All coordinates are WGS84 --> <StopPointInJourneyPatternRef ref="SE:253:StopPointInJourneyPattern:55700000035050829" version="any"/> </FrameDefaults> <frames> <ServiceFrame version="20191127125021" id="SE:253:ServiceFrame:9011005005300000"> <DepartureTime>06:40:00</DepartureTime> <!-- Version is timestamp of export (YYYYMMDDHHmmSS), id=Noptis.Line.GidNoptis.VehicleJourney.PlannedStartOffsetDayTime and Noptis.CallOnTimedJourneyPattern.EarliestDepartureTimeOffsetSeconds --> <routes> <!-- Route is based on Noptis.JourneyPattern and Noptis.DirectionOfLine. Each Noptis.JourneyPattern will create a Route. --></TimetabledPassingTime> <Route<TimetabledPassingTime version="any" id="SE:253:RouteTimetabledPassingTime:5570000003505082455700000049527530"> <Name>Motala</Name> <!-- Noptis.DirectionOfLine.Name --> <LineRef <StopPointInJourneyPatternRef ref="SE:253:LineStopPointInJourneyPattern:901100500530000055700000035050830" version="20131215any"/> <DirectionType>outbound</DirectionType> <ArrivalTime>06:41:28</ArrivalTime> <!-- Noptis.DirectionOfLineVehicleJourney.DirectionCode.PlannedStartOffsetDayTime ODD = outbound, EVEN = inbound.and Noptis.CallOnTimedJourneyPattern.LatestArrivalTimeOffsetSeconds --> <pointsInSequence> <DepartureTime>06:41:28</DepartureTime> <!-- PointOnRoute is based on Noptis.PointInJourneyPattern --> </TimetabledPassingTime> <PointOnRoute order="1" version="any" id="SE:253:PointOnRoute:55700000035050829"> <!-- order=Noptis.PointInJourneyPattern.SequenceNumber, id=Noptis.PointInJourneyPattern.IdMore TimtabledPassingTime elements --> <TimetabledPassingTime <RoutePointRef refversion="any" id="SE:253:RoutePointTimetabledPassingTime:902200500005001655700000049527544"/> </PointOnRoute> <StopPointInJourneyPatternRef ref="SE:253:StopPointInJourneyPattern:55700000035050844" version="any"/> <!-- More PointOnRoute elements --> <ArrivalTime>07:50:00</ArrivalTime> </pointsInSequence> <DepartureTime>07:51:00</DepartureTime> </Route> </TimetabledPassingTime> <!-- More Route elements --> </routes> <TimetabledPassingTime version="any" id="SE:253:TimetabledPassingTime:55700000049527545"> <lines> <StopPointInJourneyPatternRef ref="SE:253:StopPointInJourneyPattern:55700000035050845" version="any"/> <!-- Line is based on Noptis.Line --> <Line version="20131215" id="SE:253:Line:9011005005300000"> <!-- version=Noptis.Line.ExistsFromDate, id=Noptis.Line.Gid --> <ArrivalTime>01:20:00</ArrivalTime> <Name>53<<ArrivalDayOffset>1</Name>ArrivalDayOffset> <!-- Noptis.Line.Name, eller -- Noptis.LineVehicleJourney.DesignationPlannedStartOffsetDayTime om Noptis.Line.Name är tom(the day value -1) --> <TransportMode>bus</TransportMode> <!-- See the section "General Noptis to Netex mappings" below --> <DepartureTime>01:21:00</DepartureTime> <TransportSubmode> <DepartureDayOffset>1</DepartureDayOffset> <!-- Noptis.VehicleJourney.PlannedEndOffsetDayTime (the day value -1) --> <BusSubmode>unknown</BusSubmode> <!-- Netex.TransportSubmode is always mapped to UNKNOWN since that information is not available in NOPTIS. --></TimetabledPassingTime> </TransportSubmode> <TimetabledPassingTime version="any" id="SE:253:TimetabledPassingTime:55700000049527546"> <PublicCode>53</PublicCode> <!-- Noptis.Line.Designation --> <StopPointInJourneyPatternRef ref="SE:253:StopPointInJourneyPattern:55700000035050846" version="any"/> <PrivateCode>53</PrivateCode> <!-- Noptis.Line.Number --> <ArrivalTime>02:00:00</ArrivalTime> <RepresentedByGroupRef ref="SE:253:Network:9010005000000000"/> <<ArrivalDayOffset>1</Line>ArrivalDayOffset> </lines> </TimetabledPassingTime> <journeyPatterns> <!--/passingTimes> JourneyPattern is based on Noptis.NamedJourneyPattern --> <JourneyPattern version="any" id="SE:253:JourneyPattern:55700000035050824"> <FlexibleServiceProperties> <!-- id=Noptis.NamedJourneyPattern.IdAdvanceOrderCondition --> <RouteRef ref="SE:253:Route:55700000035050824" version="any"/ <FlexibleServiceType>fixedPassingTimes</FlexibleServiceType> <!-- this value is always set to fixedPassingTimes --> <pointsInSequence> <BookingContact> <Phone>07717110120</Phone> <!-- StopPointInJourneyPattern is based on Noptis.AdvanceOrderCondition.PointInJourneyPatternTelephoneNumber --> </BookingContact> <StopPointInJourneyPattern order="1" version="any" id="SE:253:StopPointInJourneyPattern:55700000035050829"> <!-- Either BookWhen AND LatestBookingTime are set, OR only MinimumBookingPeriod <!-- order=Noptis.PointInJourneyPattern.SequenceNumber, id=Noptis.PointInJourneyPattern.Id is set --> <BookWhen>advanceAndDayOfTravel</BookWhen> <!-- Noptis.AdvanceOrderCondition.MinimumDaysInAdvanceCount. advanceAndDayOfTravel = 0, <ScheduledStopPointRefuntilPreviousDay ref="SE:253:ScheduledStopPoint:9022005000050016"/> 1 --> <ForAlighting>false</ForAlighting><LatestBookingTime>18:00:00</LatestBookingTime> <!-- See the section "General Noptis to Netex mappings" below Noptis.AdvanceOrderCondition.LatestAbsoluteTime --> <ForBoarding>true</ForBoarding><!-- <MinimumBookingPeriod>PT2H</MinimumBookingPeriod> <!-- See the section "General Noptis to Netex mappings" below Noptis.AdvanceOrderCondition.LatestTimeSpanInAdvanceDurationSeconds --> This is just an example of how it would look like--> <DestinationDisplayRef ref="SE:253:DestinationDisplay:55700000037211691"/> <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 --> <RequestStop>true</RequestStop> <!-- See the section "General Noptis to Netex mappings" below --> </FlexibleServiceProperties> </StopPointInJourneyPattern><parts> <!-- MoreJourneyParts StopPointInJourneyPatternwith elementsTrainNumberRefs -->only exists for ServiceJourneys that are trains. --> </pointsInSequence> <!-- JourneyParts with TrainNumberRefs exists for trains that change their announced train number during their <linksInSequence>journey (also called vagnskurs/kursvagnar). --> <ServiceLinkInJourneyPattern order="1" version="any" id="SE:253:ServiceLinkInJourneyPattern:BUS_391"> <!-- order=Noptis.PointInJourneyPattern.SequenceNumber, The StopPointRefs and times in the example below are wrong with regard to the journeypattern and passingtimes of this ServiceJourney --> id is Noptis.Line.DefaultTransportModeCode + a counter. --> <JourneyPart version="any" id="SE:253:JourneyPart:323200000000003266_tn_0"> <ServiceLinkRef ref="SE:253:ServiceLink:BUS_9025005000005016_9025005000122302"/> <!-- MainPartRef is a self-reference that only exists to pass Netex-validation --> </ServiceLinkInJourneyPattern> <MainPartRef ref="SE:253:JourneyPart:323200000000003266_tn_0" <!-- More ServiceLinkInJourneyPattern elements -->version="any"/> </linksInSequence> <TrainNumberRef ref="SE:253:TrainNumber:9011074007000000_70" versionRef="any"/> </JourneyPattern> <FromStopPointRef ref="SE:253:ScheduledStopPoint:9022005000050016"/> </journeyPatterns> </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 --> <EndTime>07:50:00</EndTime> <ServiceJourney version="any" id="SE:253:ServiceJourney:55700000049527547"> <!-- id=Noptis.VehicleJourney.Id --> </JourneyPart> <TransportMode>bus</TransportMode> <!-- See the section "General Noptis to Netex mappings" below --> <JourneyPart version="any" id="SE:253:JourneyPart:323200000000003266_tn_1"> <TransportSubmode> <MainPartRef ref="SE:253:JourneyPart:323200000000003266_tn_1" version="any"/> <BusSubmode>unknown</BusSubmode> <!-- Netex.TransportSubmode is always mapped to UNKNOWN since that information is not available in NOPTIS. --> <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 <!-- TimetabledPassingTime is based on CallOnTimedJourneyPatternall, like in the JourneyPart example 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 <TimetabledPassingTime version="any" id="SE:253:TimetabledPassingTime:55700000049527530"> at all, like in the JourneyPart example above. --> <StopPointInJourneyPatternRef ref="SE:253:StopPointInJourneyPattern:55700000035050830" version="any"/> <EndTimeDayOffset>1</EndTimeDayOffset> <ArrivalTime>06:41:28</ArrivalTime> <!-- Noptis.VehicleJourney.PlannedStartOffsetDayTime and Noptis.CallOnTimedJourneyPattern.LatestArrivalTimeOffsetSeconds --></JourneyPart> </parts> <DepartureTime>06:41:28</DepartureTime> </ServiceJourney> </TimetabledPassingTime>vehicleJourneys> <!-- 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.
...