...
This page contains documentation of how Noptis (DOI) data is converted to Netex (the Nordic Profile).
_shared_data.xml
...
breakoutMode | full-width |
---|---|
language | xml |
...
on how Samtrafiken exports data in the NeTEx format according to the Nordic NeTEx Profile. It also shows how this NeTEx export is mapped from Noptis (DOI/DII) data (see https://www.
...
noptis.com/), which is the format that many PTA:s use to deliver their data to Samtrafiken.
If you are using Samtrafiken’s NeTEx sales data (used for sales through Samtrafiken ACCESS) then you should also read the specific documentation for that dataset here: https://samtrafiken.atlassian.net/wiki/x/GYCOzQ.
Changelog of this documentation
2024-02-12 - Added the two fields JourneyPart
.StartTimeDayOffset
and JourneyPart
.EndTimeDayOffset
with explanations.
2024-11-27 - Added TopographicPlaces in _stops.xml. Several european countries, and for Sweden all counties and municipalities are included.
ServiceCalendar, DayType, OperatingPeriod and DayTypeAssignment
The ServiceCalendar
information is specified using DayTypes
with PropertyOfDay
specifying which DaysOfWeek
that the service runs (N.B: In some cases this can also be empty).
An OperatingPeriod
is connected to the DayType
using a DayTypeAssignment
, thereby specifying during which period the DayType
is valid.
Finally, to handle exceptional days (added or excluded dates) additional DayTypeAssignments
are connected to the DayType, specifying additional dates as either added (the default) or excluded (marked by setting <isAvailable>false</isAvailable>
).
Note: The OperatingPeriod
is valid up to the datetime specified in the ToDate
, but NOT including that time, see the example below:
Code Block | ||
---|---|---|
| ||
<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 --> <CompositeFrame created="2019-11-27T12:50:21" <Notice version="20191127125021any" id="SE:253:CompositeFrameNotice:155700000050931583"> <!-- id=Noptis.AdvanceOrderCondition.Id -- Version is timestamp of export, id is always 1 -->> <ValidBetween> <Text>Turen måste förbeställas på 0771 - 71 10 20 senast 2 timmar före avresa från <FromDate>2005-01-01T00:00:00</FromDate>turens starthållplats.</Text> <!-- Noptis.AdvanceOrderCondition.PublicNote -- Always set to 2005-01-01 -->> </Notice> <!-- More </ValidBetween>Notice elements --> <codespaces> </notices> <Codespace id="253"> <!-- id is same as Xmlns --> </ServiceFrame> <ServiceCalendarFrame <Xmlns>253</Xmlns>version="20191127125021" id="SE:253:ServiceCalendarFrame:1"> <!-- FromVersion Samtrafiken'sis registrytimestamp of producerexport numbers(YYYYMMDDHHmmSS), basedid onis dataalways source1 --> <XmlnsUrl>http://www.samtrafiken.se/ns/Östgötatrafiken</XmlnsUrl> <!-- "Östgötatrafiken"The iscontent basedof onServiceCalendarFrame datais sourcecreated -->based on Noptis.DatedVehicleJourney.OperatingDayDate but a pattern of runnings days and operating period is constructed to represent </Codespaced> that data. </codespaces> Each unique <FrameDefaults>combination of operating days of a Noptis.VehicleJourney will create one DayType. --> <DefaultLocale> <dayType <TimeZone>Europe/Stockholm</TimeZone> <DefaultLanguage>se</DefaultLanguage> <DayType version="any" id="SE:253:DayType:a33m5mgb2thf88dnl75h8a8jt21i3iqu"> </DefaultLocale> <properties> <DefaultLocationSystem>4326</DefaultLocationSystem> <!-- All coordinates are WGS84 --> </FrameDefaults> <PropertyOfDay> <frames> <ResourceFrame version="20191127125021" id="SE:253:ResourceFrame:1"> <!-- Version is timestamp of<DaysOfWeek>Monday export (YYYYMMDDHHmmSS), id is always 1 -->Tuesday Wednesday Thursday Friday</DaysOfWeek> <organisations> </PropertyOfDay> <!-- Authority is based on Noptis.TransportAuthority --> </properties> <Authority version="20131206" id="SE:253:Authority:9010005000000000"> <!-- version=Noptis.TransportAuthority.ExistsFromDate, id=Noptis.TransportAuthority.Gid --> </DayType> <DayType version="any" id="SE:253:DayType:4vfuvln5ed1bte5nrbf56qees9vakerf"> <ValidBetween> <properties> <FromDate>2019-02-13T00:00:00</FromDate> <!-- Noptis.TransportAuthority.ExistsFromDate --> <PropertyOfDay> <!-- ToDate = Noptis.TransportAuthority.ExistsToDate, in this case "ExistsToDate" is null --><DaysOfWeek>Saturday Sunday</DaysOfWeek> </ValidBetween>PropertyOfDay> <Name>Östgötatrafiken<</Name>properties> <!-- Noptis.TransportAuthority.Name --> <LegalName>Östgötatrafiken</LegalName> <!-- Noptis.Organisation.FormalName --> </DayType> <OrganisationType>authority</OrganisationType> <!-- Always "authority" --> </dayTypes> <operatingPeriods> </Authority> <OperatingPeriod <!-- More Authority elements -->version="any" id="SE:253:OperatingPeriod:221108221209"> <!<FromDate>2022-11- Operator is based on Noptis.Contractor -->08T00:00:00</FromDate> <ToDate>2022-12-10T00:00:00</ToDate><!-- N.B: The <Operator version="20131211" id="SE:253:Operator:9013005918200000"> <!-- version=Noptis.Contractor.ExistsFromDate, id=Noptis.Contractor.Gid --> 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 --> <ValidBetween> </OperatingPeriod> <OperatingPeriod <FromDate>2019-02-13T00:00:00</FromDate> <!-- Noptis.Contractor.ExistsFromDate -->version="any" id="SE:253:OperatingPeriod:221212230331"> <FromDate>2022-12-12T00:00:00</FromDate> <!-- ToDate = Noptis.Contractor.ExistsToDate, in this case "ExistsToDate" is null --> <ToDate>2023-04-01T00:00:00</ToDate> </ValidBetween> </OperatingPeriod> <Name>eBuss Motala</Name> <!-- Noptis.Contractor.Name -->/operatingPeriods> <LegalName>eBuss i Sverige AB</LegalName> <!-- Noptis.Organisation.FormalName --> <dayTypeAssignments> <OrganisationType>operator</OrganisationType> <!-- Always "operator" --> <DayTypeAssignment order="1" version="any" id="SE:253:DayTypeAssignment:a33m5mgb2thf88dnl75h8a8jt21i3iqu"> </Operator> <OperatingPeriodRef ref="SE:253:OperatingPeriod:221108221209" version="any"/> <!-- More Operator elements --> <DayTypeRef ref="SE:253:DayType:a33m5mgb2thf88dnl75h8a8jt21i3iqu" version="any"/> </organisations> </DayTypeAssignment> </ResourceFrame> <DayTypeAssignment <ServiceFrameorder="1" version="20191127125021any" id="SE:253:ServiceFrameDayTypeAssignment:14vfuvln5ed1bte5nrbf56qees9vakerf"> <!-- Version is timestamp of export (YYYYMMDDHHmmSS), id is always 1 --> <OperatingPeriodRef ref="SE:253:OperatingPeriod:221212230331" version="any"/> <!-- Each unique Noptis.Line.IsDefinedByTransportAuthority will create a Network with the AuthorityRef. In this case there is only one, <DayTypeRef ref="SE:253:DayType:4vfuvln5ed1bte5nrbf56qees9vakerf" version="any"/> additional Networks would be placed</DayTypeAssignment> in an "additionalNetworks" element. --> <DayTypeAssignment <Networkorder="2" version="20131206any" id="SE:253:NetworkDayTypeAssignment:90100050000000004vfuvln5ed1bte5nrbf56qees9vakerf_221226"> <!-- version=Noptis.TransportAuthority.ExistsFromDate, id=Noptis.TransportAuthority.Gid --> <Name>Östgötatrafiken</Name> <!-- Noptis.TransportAuthority.Name --><Date>2022-12-26</Date> <AuthorityRef<DayTypeRef ref="SE:253:AuthorityDayType:90100050000000004vfuvln5ed1bte5nrbf56qees9vakerf" version="20131206any"/> <!-- WIP, Netex.GroupOfLines is based on Noptis.GroupOfLines -->/DayTypeAssignment> <groupsOfLines> <GroupOfLines <DayTypeAssignment order="3" version="1any" id="SE:253:GroupOfLinesDayTypeAssignment:1">4vfuvln5ed1bte5nrbf56qees9vakerf_230107"> <Date>2023-01-07</Date> <DayTypeRef ref="SE:253:DayType:4vfuvln5ed1bte5nrbf56qees9vakerf" version="any"/> <ValidBetween> <isAvailable>false</isAvailable> <FromDate>2019-02-13T00:00:00</FromDate> <!-- Noptis.GroupOfLines.ExistsFromDate --> </DayTypeAssignment> <!-- ToDateMore = Noptis.GroupOfLines.ExistsToDate, in this case "ExistsToDate" is nullDayTypeAssignment elements --> </dayTypeAssignments> </ValidBetween> </ServiceCalendarFrame> </frames> </CompositeFrame> <Name>Spårvagn<</Name> <!-- Noptis.GroupOfLines.Name --> <PrivateCode>SPV</PrivateCode> <!-- Noptis.GroupOfLine.CodedataObjects> </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 <members> is always 1 --> <ValidBetween> <LineRef ref="SE:253:Line:9011005005300000"/> <FromDate>2005-01-01T00:00:00</FromDate> <!-- Always Basedset on Noptis.LineInGroupOfLinesto 2005-01-01 --> </ValidBetween> <codespaces> </members> <Codespace id="253"> <!-- id is same as Xmlns --> </GroupOfLines> <Xmlns>253</Xmlns> <!-- From Samtrafiken's registry of producer numbers, based on data source --> </groupsOfLines> </Network> <XmlnsUrl>http://www.samtrafiken.se/ns/Östgötatrafiken</XmlnsUrl> <!-- "Östgötatrafiken" is based on data source --> <routePoints> </Codespace> </codespaces> <!-- RoutePoint, ScheduledStopPoint, PassengerStopAssignment are all based on Noptis.StopPoint --> <FrameDefaults> <DefaultLocale> <RoutePoint version="20190426" id="SE:253:RoutePoint:9022005000001001"> <!-- version=Noptis.StopPoint.ExistsFromDate, id=Noptis.StopPoint.Gid --> <TimeZone>Europe/Stockholm</TimeZone> <projections> <DefaultLanguage>se</DefaultLanguage> </DefaultLocale> <PointProjection version="20190426" id="SE:253:PointProjection:9022005000001001"> <DefaultLocationSystem>4326</DefaultLocationSystem> <!-- version=Noptis.StopPoint.ExistsFromDate, id=Noptis.StopPoint.Gid All coordinates are WGS84 --> </FrameDefaults> <topographicPlaces> <TopographicPlace <ProjectedPointRef refversion="any" id="SE:253005:ScheduledStopPointTopographicPlace:9022005000001001NO"> version="20190426"/> <IsoCode>NO</IsoCode> </PointProjection> <Descriptor> </projections> <Name>Norway</Name> </RoutePoint>Descriptor> <TopographicPlaceType>country</TopographicPlaceType> <!-- More RoutePoint elements --> <CountryRef ref="no"/> </routePoints>TopographicPlace> <TopographicPlace version="any" id="SE:005:TopographicPlace:SE"> <destinationDisplays> <IsoCode>SE</IsoCode> <!-- DestinationDisplay is based on Noptis.DestinationDisplay --> <Descriptor> <!-- DestinationDisplays that are used as "via" are created from<Name>Sweden</Name> each Noptis.DestinationDisplay.SecondaryDestinationName. Theses elements are recognized by having "via_" prepended to their id. </Descriptor> In the example below, both<TopographicPlaceType>country</TopographicPlaceType> DestinationDisplay elements are created from the same Noptis.DestinationDisplay. --> <CountryRef ref="se"/> <DestinationDisplay version="any" id="SE:253:DestinationDisplay:via_55700000037211691"> <!-- id=Noptis.DestinationDisplay.Id --> </TopographicPlace> <TopographicPlace version="any" id="SE:005:TopographicPlace:SE_1"> <FrontText>Västerlösa</FrontText> <!-- Noptis.DestinationDisplay.SecondaryDestinationName --> <PrivateCode>01</PrivateCode> <PublicCode>573</PublicCode> <!-- Noptis.DestinationDisplay.LineDesignation --><IsoCode>SE-01</IsoCode> <Descriptor> </DestinationDisplay> <Name>Stockholms län</Name> <DestinationDisplay version="any" id="SE:253:DestinationDisplay:55700000037211691"> <!-- id=Noptis.DestinationDisplay.Id --> </Descriptor> <FrontText>Malmslätt</FrontText> <!-- Noptis.DestinationDisplay.PrimaryDestinationName --><TopographicPlaceType>county</TopographicPlaceType> <CountryRef ref="se"/> <PublicCode>573</PublicCode> <!-- Noptis.DestinationDisplay.LineDesignation --> <ParentTopographicPlaceRef ref="SE:005:TopographicPlace:SE" version="any"/> </TopographicPlace> <vias> <TopographicPlace version="any" id="SE:005:TopographicPlace:SE_0160"> <Via> <PrivateCode>0160</PrivateCode> <Descriptor> <DestinationDisplayRef ref="SE:253:DestinationDisplay:via_55700000037211691" version="any"/> <Name>Täby kommun</Name> </Via>Descriptor> <TopographicPlaceType>municipality</TopographicPlaceType> </vias> <CountryRef ref="se"/> </DestinationDisplay> <ParentTopographicPlaceRef ref="SE:005:TopographicPlace:SE_1" version="any"/> <!-- More DestinationDisplay elements --></TopographicPlace> <TopographicPlace version="any" id="SE:005:TopographicPlace:SE_0162"> </destinationDisplays> <PrivateCode>0162</PrivateCode> <scheduledStopPoints> <Descriptor> <!-- RoutePoint, ScheduledStopPoint, PassengerStopAssignment are all based on Noptis.StopPoint --> <Name>Danderyds kommun</Name> <ScheduledStopPoint version="20190426" id="SE:253:ScheduledStopPoint:9022005000001001"> <!-- version=Noptis.StopPoint.ExistsFromDate, id=Noptis.StopPoint.Gid --> </Descriptor> <TopographicPlaceType>municipality</TopographicPlaceType> <Name>Norr Tull</Name> <!-- Noptis.StopPoint.Name --> <CountryRef ref="se"/> </ScheduledStopPoint> <ParentTopographicPlaceRef ref="SE:005:TopographicPlace:SE_1" version="any"/> <!--/TopographicPlace> More ScheduledStopPoint elements --> <!-- More TopographicPlace elements. All counties and municipalities </scheduledStopPoints>in Sweden --> <serviceLinks> </topographicPlaces> <groupsOfStopPlaces> <!-- ServiceLinkGroupOfStopPlace is based on Noptis.RouteLinkSite --> <ServiceLink<GroupOfStopPlaces version="2019021320120623" id="SE:253001:ServiceLink:BUS_9025005000136402_9025005000005702GroupOfStopPlaces:9091001000000103"> <!-- version=Noptis.RouteLinkSite.ExistsFromDate, id=Noptis.Site.Gid --> <ValidBetween> id=Noptis.RouteLinkTraversableByTransportModeCode.TransportModeCode + Noptis.RouteLink.StartsAtJourneyPatternPointGid + Noptis.RouteLink.EndsAtJourneyPatternPointGid --> <FromDate>2012-06-23T00:00:00</FromDate> <!-- Noptis.Site.ExistsFromDate --> <ValidBetween> </ValidBetween> <FromDate>2019-02-13T00:00:00</FromDate><Name>Nämdöböte</Name> <!-- Noptis.RouteLinkSite.ExistsFromDateName --> <Description>Nämdö</Description> <!-- ToDate = Noptis.RouteLink.ExistsToDate, in this case "ExistsToDate" is null -->Site.PublicNote --> <PrivateCode>103</PrivateCode> <!-- Noptis.Site.Number --> </ValidBetween> <members> <Distance>338</Distance> <!-- Noptis.RouteLink.DistanceMeters <!--> StopPlaceRefs are based on Noptis.SiteNeighbouringStopArea --> <projections> <StopPlaceRef ref="SE:001:StopPlace:9021001000103000" version="20210224"/> <!-- ref=Noptis.StopArea.Gid, version=Noptis.StopArea.ExistsFromDate --> <LinkSequenceProjection<StopPlaceRef versionref="20190213SE:001:StopPlace:9021005000001000" idversion="SE:253:LinkSequenceProjection:BUS_9025005000136402_9025005000005702"20161213"/> <!-- Same ID as parent ServiceLink --> ref=Noptis.StopArea.Gid, version=Noptis.StopArea.ExistsFromDate --> </members> <ns2:LineString srsName="4326" ns2:id="LS_BUS_9025005000136402_9025005000005702"> <!-- Same ID as parent ServiceLink but with "LS_" prepended --><Centroid> <Location srsName="WGS84"> <!-- Noptis.Site.CoordinateSystemName --> <ns2:posList count="30" srsDimension="2">58.666991 16.180848 58<Longitude>18.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>739921</Longitude> <!-- Noptis.Site.CentroidEastingCoordinate --> <Latitude>59.208826</Latitude> <!-- Noptis.Site.CentroidNorthingCoordinate --> </Location> <!-- Each coordinate pair is created from one Noptis.PointOnRouteLink --> </Centroid> </GroupOfStopPlaces> </ns2:LineString>groupsOfStopPlaces> <stopPlaces> <!-- StopPlace is based on Noptis.StopArea --> </LinkSequenceProjection> <StopPlace version="20161213" id="SE:253:StopPlace:9021005000001000"> <!-- version=Noptis.StopArea.ExistsFromDate, id=Noptis.StopArea.Gid --> </projections> <ValidBetween> <FromPointRef ref="SE:253:ScheduledStopPoint:9022005001364002" version="20190426"/><FromDate>2016-12-13T00:00:00</FromDate> <!-- Noptis.RouteLinkStopArea.StartsAtJourneyPatternPointGidExistsFromDate --> <!-- ToDate = Noptis.StopArea.ExistsToDate, in <ToPointRef ref="SE:253:ScheduledStopPoint:9022005000057002" version="20190426"/> <!-- Noptis.RouteLink.EndsAtJourneyPatternPointGidthis case "ExistsToDate" is null --> </ValidBetween> <VehicleMode>bus</VehicleMode> <!-- See the section "General Noptis to Netex mappings" below --> <Name>Norr Tull</Name> <!-- Noptis.StopArea.Name --> <ShortName>Norr Tull</ShortName> </ServiceLink> !-- Noptis.StopArea.ShortName --> <PrivateCode>1</PrivateCode> <!-- More ServiceLink elements Noptis.StopArea.Number --> <Centroid> </serviceLinks> <stopAssignments> <Location> <!-- RoutePoint, ScheduledStopPoint, PassengerStopAssignment are all based on<Longitude>16.176723</Longitude> <!-- Noptis.StopArea.StopPointCentroidEastingCoordinate --> <PassengerStopAssignment order="0" version="20190426" id="SE:253:PassengerStopAssignment:9022005000001001"> <Latitude>58.594850</Latitude> <!-- version=Noptis.StopPoint.ExistsFromDate, id=Noptis.StopPoint.Gid, "order" is always 0 -->StopArea.CentroidNorthingCoordinate --> </Location> <ScheduledStopPointRef ref="SE:253:ScheduledStopPoint:9022005000001001" version="20190426"/> </Centroid> <QuayRef<TopographicPlaceRef ref="SE:253005:Quay:9022005000001001"/> TopographicPlace:SE_0160" version="any"/> <!-- Stops in Sweden are linked to their Municipality. Stops in other countries are linked to their Country. --> </PassengerStopAssignment> <OrganisationRef ref="SE:253:Authority:9010005000000000"/> <!-- Noptis.StopArea.IsDefinedByTransportAuthortiy --> <entrances> <!-- Entrances are Morebased PassengerStopAssignmenton elementsNoptis.StationEntrancePoint --> </stopAssignments> <StopPlaceEntrance version="20120623" id="SE:275:StopPlaceEntrance:9023001006651001"> <!-- version=Noptis.StationEntrancePoint.ExistsFromDate, id=Noptis.StationEntrancePoint.Gid --> <notices> <!--<ValidBetween> Notice is based on Noptis.AdvanceOrderCondition --> <Notice version="any" id="SE:253:Notice:55700000050931583"> <FromDate>2014-03-11T00:00:00</FromDate> <!-- id=Noptis.AdvanceOrderConditionStationEntrancePoint.IdExistsFromDate -->but not earlier than parent StopPlace.FromDate --> <Text>Turen måste förbeställas på 0771 - 71 10 20 senast 2 timmar före avresa från turens starthållplats.</Text> <!-- ToDate = Noptis.AdvanceOrderConditionStationEntrancePoint.PublicNote --> ExistsToDate, in this case "ExistsToDate" is null, not later than parent StopPlace.ToDate --> </Notice> </ValidBetween> <!-- More Notice elements --> <<Name>Djursholms Ösby</notices>Name> <!-- Noptis.StationEntrancePoint.Name --> </ServiceFrame> <Centroid> <ServiceCalendarFrame version="20191127125021" id="SE:253:ServiceCalendarFrame:1"> <!-- Version is timestamp of export (YYYYMMDDHHmmSS), id is always 1 --> <Location> <!-- 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. <Longitude>18.058320</Longitude> <!-- Noptis.StationEntrancePoint.LocationEastingCoordinate --> The DayType contains each Noptis.DatedVehicleJourney.OperatingDayDate as a DayTypeAssignment. OperatingPeriods or exceptions (DayTypeAssignment.isAvailable) are NOT used. --> <Latitude>59.397925</Latitude> <!-- Noptis.StationEntrancePoint.LocationNorthingCoordinate --> <dayType <DayType version="any" id="SE:253:DayType:1"/> </Location> <DayType version="any" id="SE:253:DayType:2"/> </Centroid> <DayType version="any" id="SE:253:DayType:3"/> </StopPlaceEntrance> <DayType version="any" id="SE:253:DayType:4"/> <!-- More StopPlaceEntrance elements --> <DayType version="any" id="SE:253:DayType:5"/> </entrances> <TransportMode>bus</TransportMode> <!-- See the <DayTypesection version="any" id="SE:253:DayType:6"/> General Noptis to Netex mappings" below --> <DayType version="any" id="SE:253:DayType:7"/> <tariffZones> <DayType version="any" id<TariffZoneRef ref="SE:253005:DayType:8TariffZone:9081005201004216" version="160620"/> <!-- Tariff zones this stop area belongs to , Noptis.JourneyPatternPointInZone aggregated on StopArea level --> <DayType version="any" id="SE:253:DayType:9"/> </tariffZones> <StopPlaceType>busStation</StopPlaceType> <!-- See the <DayTypesection version="any" id="SE:253:DayType:10"/"General Noptis to Netex mappings" below --> <Weighting>interchangeAllowed</Weighting> <!-- See the <DayTypesection version="any" id="SE:253:DayType:11"/>"General Noptis to Netex mappings" below --> <quays> <!-- Quay is based on Noptis.StopPoint <DayType version="any" id="SE:253:DayType:12"/and Noptis.JourneyPatternPoint --> <DayType<Quay version="any20180419" id="SE:253:DayTypeQuay:139022005000001001"/> <!-- version=Noptis.StopPoint.ExistsFromDate, id=Noptis.StopPoint.Gid --> </dayTypes> <ValidBetween> <dayTypeAssignments> <DayTypeAssignment order="1" version="any" id="SE:253:DayTypeAssignment:1-20191125"> <FromDate>2019-04-26T00:00:00</FromDate> <!-- Noptis.StopPoint.ExistsFromDate but not earlier than parent StopPlace.FromDate --> <Date>2019-11-25</Date> <!-- <DayTypeRef ref="SE:253:DayType:1" version="any"/> ToDate = Noptis.StopPoint.ExistsToDate, in this case "ExistsToDate" is null, not later than parent StopPlace.ToDate --> </DayTypeAssignment> </ValidBetween> <DayTypeAssignment order="2" version="any" id="SE:253:DayTypeAssignment:1-20191126"> <Name>Norr Tull</Name> <!-- Noptis.StopPoint.Name --> <Date>2019-11-26</Date> <ShortName>Norr Tull</ShortName> <!-- Noptis.StopPoint.ShortName --> <DayTypeRef ref="SE:253:DayType:1" version="any"/> <PrivateCode>1</PrivateCode> <!-- Noptis.StopPoint.LocalNumber --> </DayTypeAssignment> <DayTypeAssignment order="3" version="any" id="SE:253:DayTypeAssignment:1-20191127"> <Centroid> <Date>2019-11-27</Date> <Location> <DayTypeRef ref="SE:253:DayType:1" version="any"/> <Longitude>16.177052</Longitude> <!-- Noptis.JourneyPatternPoint.LocationEastingCoordinate --> </DayTypeAssignment> <Latitude>58.595038</Latitude> <!-- More DayTypeAssignment elementsNoptis.JourneyPatternPoint.LocationNorthingCoordinate --> </dayTypeAssignments> </Location> </ServiceCalendarFrame> </frames> </CompositeFrame>Centroid> </dataObjects> </PublicationDelivery> |
_stops.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"> <PublicationTimestamp>2019-11-27T12:50:21</PublicationTimestamp> <!-- Timestamp of export --> WIP, Netex.ZoneProjections are based on Noptis.JourneyPatternPointInZone --> <projections> <ParticipantRef>SAM</ParticipantRef> <dataObjects> <SiteFrame<ZoneProjection version="20191127125021any" id="SETEST:253ZoneProjection:SiteFrame:1"> <!-- Version is timestamp of export (YYYYMMDDHHmmSS), id is always 1 --> <ValidBetween> <ProjectedZoneRef ref="TEST:TopographicPlace:1"/> <FromDate>2005-01-01T00:00:00</FromDate> <!-- Always set to 2005-01-01 --> </ValidBetween>ZoneProjection> <codespaces> <Codespace id="253"> <!-- id is same as Xmlns --></projections> <Xmlns>253<<PublicCode>A</Xmlns>PublicCode> <!-- From Samtrafiken's registry of producer numbers, based on data source -->Noptis.StopPoint.Designation --> <XmlnsUrl>http://www.samtrafiken.se/ns/Östgötatrafiken</XmlnsUrl><equipmentPlaces> <!-- "Östgötatrafiken"Based ison basedNoptis onConnectionLink, dataObstacleOnLink, sourceBridgingDevice --> </Codespace> </codespaces> <EquipmentPlace version="any" id="SE:001:EquipmentPlace:14010000311143397"> <!-- id = Noptis.BridgingDevice.Id --> <FrameDefaults> <DefaultLocale> <placeEquipments> <TimeZone>Europe/Stockholm</TimeZone> <DefaultLanguage>se</DefaultLanguage> <EntranceEquipment </DefaultLocale> version="any" id="SE:001:EntranceEquipment:14010000311143397"> <!-- id = Noptis.BridgingDevice.Id --> <DefaultLocationSystem>4326</DefaultLocationSystem> <!-- All coordinates are WGS84 --> </FrameDefaults> <Door>true</Door> <!-- WIP, TopographicPlace is based on Noptis.ZoneBridgingDevice .(TypeCode TopographicPlaces are referenced from Quays through ZoneProjections = DOOR) --> <topographicPlaces> <TopographicPlace version="any" id="SE:253:TopographicPlace:1"> </EntranceEquipment> <ValidBetween> <FromDate>2016-12-13T00:00:00</FromDate> <!-- Noptis.Zone.ExistsFromDate --></placeEquipments> <!-- ToDate = Noptis.Zone.ExistsToDate, in this case "ExistsToDate" is null --></EquipmentPlace> </ValidBetween>equipmentPlaces> <Name>Boxholm<</Name>Quay> <!-- Noptis.Zone.Name --> <PrivateCode>0560</PrivateCode> <!-- Noptis.Zone.Number More Quay elements --> <TopographicPlaceType>municipality<</TopographicPlaceType> <!-- Based on Noptis.Zone.ZoneTypeCode -->quays> </StopPlace> </TopographicPlace> <!-- More StopPlace </topographicPlaces> elements --> <groupsOfStopPlaces> <!-- GroupOfStopPlace is based on Noptis.Site -->/stopPlaces> <tariffZones> <GroupOfStopPlaces<TariffZone version="20120623160620" id="SE:001005:GroupOfStopPlacesTariffZone:90910010000001039081005201004216"> <!-- Noptis.Zone where TypeCode == "TARIFFZO". version=Noptis.SiteZone.ExistsFromDate, id=Noptis.SiteZone.Gid --> <ValidBetween> <FromDate>2012<FromDate>2016-06-23T0020T00:00:00</FromDate> <!-- Noptis.Site.ExistsFromDateexistsFromDate --> </ValidBetween> <Name>Nämdöböte<<Name>Norrköping</Name> <!-- Noptis.Site.Name --> <Description>Nämdö<<ShortName>Norrköping</Description>ShortName> <!-- Noptis.Site.PublicNoteShortname --> <PrivateCode>103<<PrivateCode>1004216</PrivateCode> <!-- Noptis.Site.Number --> <members> <!-- StopPlaceRefs are based on Noptis.SiteNeighbouringStopArea --> <StopPlaceRef ref="SE:001:StopPlace:9021001000103000" version="20210224"/> <!-- ref=Noptis.StopArea.Gid, version=Noptis.StopArea.ExistsFromDate --> </TariffZone> </members>tariffZones> <navigationPaths> <!-- NavigationPath is based <Centroid>on Noptis.ConnectionLink when 'From' and 'To' are both Quay references --> <Location srsName="WGS84"> <!-- NavigationPath is based on Noptis.Site.CoordinateSystemName --> StationEntryLink when 'From' is a StopPlaceEntrance reference and 'To' is a Quay reference --> <Longitude>18.739921</Longitude> <!-- NavigationPath is based on Noptis.Site.CentroidEastingCoordinate --> StationExitLink when 'From' is a Quay reference and 'To' is a StopPlaceEntrance reference --> <Latitude>59.208826</Latitude> <!-- Noptis.Site.CentroidNorthingCoordinate --> NavigationPath may contain validityConditions and timebands if they have limited dates and opening hours --> </Location> <NavigationPath version="20180504" id="SE:253:NavigationPath:55700000046273098"> <!-- version=Noptis.ConnectionLink.ExistsFromDate, id=Noptis.ConnectionLink.Id --> </Centroid> <Distance>0</Distance> <!-- version=Noptis.ConnectionLink.DistanceMeters. If </GroupOfStopPlaces>null, Distance will be 0 --> </groupsOfStopPlaces> <stopPlaces><From> <!-- StopPlace is based on Noptis.StopArea --> <StopPlace version="20161213" id<PlaceRef ref="SE:253:StopPlace:9021005000001000"Quay:9022005000100216" version="20140218"/> <!-- version=Noptis.StopAreaStopPoint.ExistsFromDate, id=Noptis.StopAreaStopPoint.Gid from Noptis.ConnectionLink.StartsAtJourneyPatternPoint --> <ValidBetween></From> <FromDate>2016-12-13T00:00:00</FromDate> <!-- Noptis.StopArea.ExistsFromDate --><To> <PlaceRef ref="SE:253:Quay:9022005000102017" version="20181204"/> <!-- ToDate = version=Noptis.StopPoint.ExistsFromDate id=Noptis.StopAreaStopPoint.ExistsToDate,Gid in this case "ExistsToDate" is null from Noptis.ConnectionLink.EndsAtJourneyPatternPoint --> </ValidBetween>To> <Name>Norr Tull</Name> <!-- Noptis.StopArea.Name --><TransferDuration> <ShortName>Norr Tull<<DefaultDuration>PT6M</ShortName>DefaultDuration> <!-- version=Noptis.StopAreaConnectionLink.ShortNameDefaultDurationSeconds --> <PrivateCode>1</PrivateCode></TransferDuration> <AccessibilityAssessment version="20180504" id="SE:275:AccessibilityAssessment:4010000565163766"> <!-- Noptis.StopArea.Number --> SE:<producerNumber>:AccessibilityAssessment:<obstacleOnLinkId> , version=ObstacleOnLink.ExistsFromDate --> <MobilityImpairedAccess>unknown</MobilityImpairedAccess> <!-- Always unknown, required field but <Centroid>data is not available --> <Location> <limitations> <Longitude>16.176723</Longitude> <!-- Noptis.StopArea.CentroidEastingCoordinate --> <AccessibilityLimitation> <Latitude>58.594850<<WheelchairAccess>unknown</Latitude>WheelchairAccess> <!-- Noptis.StopArea.CentroidNorthingCoordinate --> Always unknown, required field but data is not available --> </Location> <StepFreeAccess>false</StepFreeAccess> <!-- BridgingDevice.TypeCode, “false” if there is </Centroid>a BridgingDevice for which TypeCode == 'STAIRWAY'. --> <OrganisationRef ref="SE:253:Authority:9010005000000000"/> <!-- Noptis.StopArea.IsDefinedByTransportAuthortiy --> <EscalatorFreeAccess>unknown</EscalatorFreeAccess> <!-- BridgingDevice.TypeCode, “false” if there is <entrances> <!-- Entrances are based on Noptis.StationEntrancePointa BridgingDevice for which TypeCode == 'ESCALAT'. --> <StopPlaceEntrance version="20120623" id="SE:275:StopPlaceEntrance:9023001006651001"> <LiftFreeAccess>unknown</LiftFreeAccess> <!-- version=Noptis.StationEntrancePoint.ExistsFromDate, id=Noptis.StationEntrancePoint.GidBridgingDevice.TypeCode, “false” if there is a BridgingDevice for which TypeCode == 'ELEVATOR'. --> </AccessibilityLimitation> <ValidBetween> </limitations> <FromDate>2014-03-11T00:00:00</FromDate> <!-- Noptis.StationEntrancePoint.ExistsFromDate but not earlier</AccessibilityAssessment> than parent StopPlace.FromDate --> </NavigationPath> <NavigationPath version="20120623" id="SE:251:NavigationPath:14010000311143757"> <!-- ToDate version= Noptis.StationEntrancePoint.ExistsToDate, in this case "ExistsToDate" is null, not later than parent StopPlace.ToDateNoptis.StationEntryLink.ExistsFromDate, id=Noptis.StationEntryLink.Id --> </ValidBetween> <Distance>2.0</Distance> <!-- version=Noptis.StationEntryLink.DistanceMeters. If null, Distance will be 0 --> <Name>Djursholms<From> Ösby</Name> <!-- Noptis.StationEntrancePoint.Name --> <PlaceRef ref="SE:251:StopPlaceEntrance:9023001006651002" version="20120623"/> <!-- version=Noptis.StationEntrancePoint.ExistsFromDate id=Noptis.StationEntrancePoint.Gid --> <Centroid> </From> <Location> <To> <PlaceRef <Longitude>18.058320</Longitude>ref="SE:251:Quay:9022003719007001" version="20150827"/> <!-- version=Noptis.StopPoint.ExistsFromDate id=Noptis.StopPoint.Gid from Noptis.StationEntrancePointStationEntryLink.LocationEastingCoordinateEndsAtJourneyPatternPoint --> </To> <Latitude>59.397925</Latitude> <!-- Noptis.StationEntrancePoint.LocationNorthingCoordinate --> <TransferDuration> <DefaultDuration>PT3M1S</DefaultDuration> </Location> !-- version=Noptis.StationEntryLink.DefaultDurationSeconds --> </Centroid> TransferDuration> </StopPlaceEntrance>NavigationPath> <NavigationPath version="20120623" id="SE:251:NavigationPath:14010000311147186"> <!-- More StopPlaceEntrance elementsversion=Noptis.StationExitLink.ExistsFromDate, id=Noptis.StationExitLink.Id --> </entrances> <TransportMode>bus</TransportMode><Distance>3.0</Distance> <!-- See the section "General Noptis to Netex mappings" belowversion=Noptis.StationExitLink.DistanceMeters. If null, Distance will be 0 --> <StopPlaceType>busStation</StopPlaceType> <!-- See the section "General Noptis to Netex mappings" below --><From> <PlaceRef ref="SE:251:Quay:9022003719007002" version="20150827"/> <!-- version=Noptis.StopPoint.ExistsFromDate id=Noptis.StopPoint.Gid <Weighting>interchangeAllowed</Weighting> <!from Noptis.StationExitLink.StartsAtJourneyPatternPoint --> See the section "General Noptis to Netex mappings" below --> </From> <quays> <!-- Quay is based on Noptis.StopPoint and Noptis.JourneyPatternPoint --> <To> <Quay version="20180419" id<PlaceRef ref="SE:253251:Quay:9022005000001001"StopPlaceEntrance:9023001006661001" version="20120623"/> <!-- version=Noptis.StopPointStationEntrancePoint.ExistsFromDate, id=Noptis.StopPointStationEntrancePoint.Gid --> </To> <ValidBetween> <TransferDuration> <FromDate>2019-04-26T00:00:00</FromDate><DefaultDuration>PT3M2S</DefaultDuration> <!-- version=Noptis.StopPoint.ExistsFromDate but not earlier than parent StopPlace.FromDateStationExitLink.DefaultDurationSeconds --> </TransferDuration> <!-- ToDate = Noptis.StopPoint.ExistsToDate, in this</NavigationPath> case "ExistsToDate" is null, not later than parent StopPlace.ToDate --> <pathLinksInSequence> </ValidBetween> <PathLinkInSequence order="1" version="any" id="SE:001:PathLinkInSequence:14010000311183662-1"> <LinkSequenceRef <Name>Norr Tull</Name>ref="SE:001:PathLink:14010000311183662-1" version="20120623"/> <!-- ref=Noptis.ConnectionLink.Id-1, version=Noptis.StopPointConnectionLink.NameExistsFrom --> </PathLinkInSequence> <ShortName>Norr Tull</ShortName> <!-- Noptis.StopPoint.ShortName --<PathLinkInSequence order="2" version="any" id="SE:001:PathLinkInSequence:14010000311183662-2"> <LinkSequenceRef <PrivateCode>1</PrivateCode>ref="SE:001:PathLink:14010000311183662-2" version="20120623"/> <!-- ref=Noptis.ConnectionLink.Id-2, version=Noptis.StopPointConnectionLink.LocalNumberExistsFrom --> </PathLinkInSequence> <Centroid> </pathLinksInSequence> <!-- More NavigationPath elements --> <Location> </navigationPaths> <pathLinks> <PathLink version="20120623" <Longitude>16.177052</Longitude>id="SE:001:PathLink:14010000311183662-1"> <!-- id=Noptis.ConnectionLink.Id-1, version=Noptis.JourneyPatternPointConnectionLink.LocationEastingCoordinateExistsFrom --> <ValidBetween> <Latitude>58.595038</Latitude><FromDate>2019-02-13T00:00:00</FromDate> <!-- Noptis.JourneyPatternPointConnectionLink.LocationNorthingCoordinateExistsFromDate --> </Location> <!-- ToDate = Noptis.ConnectionLink.ExistsToDate, in this case "ExistsToDate" is null --> </ValidBetween> </Centroid> <From> <PlaceRef ref="SE:001:Quay:9022001070462002" version="20140603"/> <!-- WIPid=Noptis.StopPoint.Gid, Netex.ZoneProjections are based on Noptis.JourneyPatternPointInZoneversion=Noptis.StopPoint.Gid --> </From> <projections> <To> <ZoneProjection version="any" id="TEST:ZoneProjection:1"> <PlaceRef ref="SE:001:EquipmentPlace:14010000311143397" version="any"/> <!-- id=Noptis.BridgingDevice.id --> </To> <ProjectedZoneRef ref="TEST:TopographicPlace:1"/></PathLink> <PathLink version="20120623" id="SE:001:PathLink:14010000311183662-2"> <!-- id=Noptis.ConnectionLink.Id-2, version=Noptis.ConnectionLink.ExistsFrom --> </ZoneProjection> <From> <PlaceRef ref="SE:001:EquipmentPlace:14010000311143397" version="any"/> </projections> !-- id=Noptis.BridgingDevice.id --> </From> <PublicCode>A</PublicCode> <!-- Noptis.StopPoint.Designation --> <To> <PlaceRef <equipmentPlaces>ref="SE:001:Quay:9022001070462001" version="20140603"/> <!-- Based on Noptis ConnectionLink, ObstacleOnLink, BridgingDeviceid=Noptis.StopPoint.Gid, version=Noptis.StopPoint.Gid --> </To> <EquipmentPlace version="any" id="SE:001:EquipmentPlace:14010000311143397"> <!-- id = Noptis.BridgingDevice.Id --> </PathLink> </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" <placeEquipments>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> <EntranceEquipment <CompositeFrame created="2019-11-27T12:50:21" version="any20191127125021" id="SE:001253:EntranceEquipmentCompositeFrame:140100003111433979011005005300000"> <!-- idVersion = Noptis.BridgingDevice.Id --> <Door>true</Door> <!-- Noptis.BridgingDevice (TypeCode = DOOR) --> is timestamp of export (YYYYMMDDHHmmSS), id will always be 1 --> <ValidBetween> <FromDate>2005-01-01T00:00:00</FromDate> <!-- Always set </EntranceEquipment> to 2005-01-01 --> </ValidBetween> <codespaces> </placeEquipments> <Codespace id="253"> <!-- id is same as Xmlns --> </EquipmentPlace> <Xmlns>253</Xmlns> <!-- From Samtrafiken's registry of producer numbers, based on data source --> </equipmentPlaces> <XmlnsUrl>http://www.samtrafiken.se/ns/Östgötatrafiken</XmlnsUrl> <!-- "Östgötatrafiken" is based on data source --> </Quay> </Codespace> <!-- More Quay elements -->/codespaces> <FrameDefaults> </quays> <DefaultLocale> </StopPlace> <TimeZone>Europe/Stockholm</TimeZone> <!-- More StopPlace elements --> <DefaultLanguage>se</DefaultLanguage> </stopPlaces> <navigationPaths></DefaultLocale> <DefaultLocationSystem>4326</DefaultLocationSystem> <!-- All NavigationPathcoordinates are isWGS84 based--> on Noptis.ConnectionLink when 'From' and 'To' are both Quay references --> </FrameDefaults> <frames> <!-- NavigationPath is based on Noptis.StationEntryLink when 'From' is a StopPlaceEntrance reference and 'To' is a Quay reference --> <ServiceFrame version="20191127125021" id="SE:253:ServiceFrame:9011005005300000"> <!-- Version is timestamp of export (YYYYMMDDHHmmSS), id=Noptis.Line.Gid --> <!-- NavigationPath is based on Noptis.StationExitLink when 'From' is a Quay<routes> reference and 'To' is a StopPlaceEntrance reference --> <!-- Route NavigationPathis maybased containon validityConditionsNoptis.JourneyPattern and timebands if they have limited dates and opening hoursNoptis.DirectionOfLine. Each Noptis.JourneyPattern will create a Route. --> <NavigationPath<Route version="20180504any" id="SE:253:NavigationPathRoute:5570000004627309855700000035050824"> <!-- version=Noptis.ConnectionLink.ExistsFromDate, id=Noptis.ConnectionLink.Id --> <Distance>0<<Name>Motala</Distance>Name> <!-- version=Noptis.ConnectionLink.DistanceMeters. If null, Distance will be 0 DirectionOfLine.Name --> <From> <PlaceRef <LineRef ref="SE:253:Quay:9022005000100216" version="20140218"/> <!-- version=Noptis.StopPoint.ExistsFromDate id=Noptis.StopPoint.Gid from Noptis.ConnectionLink.StartsAtJourneyPatternPoint --Line:9011005005300000" version="20131215"/> </From> <DirectionType>outbound</DirectionType> <!-- Noptis.DirectionOfLine.DirectionCode. ODD = outbound, EVEN = inbound. --> <To> <PlaceRef ref="SE:253:Quay:9022005000102017" version="20181204"/> <!-- version=Noptis.StopPoint.ExistsFromDate id=Noptis.StopPoint.Gid from Noptis.ConnectionLink.EndsAtJourneyPatternPoint --><pointsInSequence> </To> <!-- PointOnRoute is based on Noptis.PointInJourneyPattern --> <TransferDuration> <PointOnRoute order="1" <DefaultDuration>PT6M</DefaultDuration>version="any" id="SE:253:PointOnRoute:55700000035050829"> <!-- version order=Noptis.PointInJourneyPattern.SequenceNumber, id=Noptis.ConnectionLinkPointInJourneyPattern.DefaultDurationSecondsId --> </TransferDuration> <AccessibilityAssessment version="20180504" id<RoutePointRef ref="SE:275253:AccessibilityAssessmentRoutePoint:40100005651637669022005000050016"/> <!-- SE:<producerNumber>:AccessibilityAssessment:<obstacleOnLinkId> , version=ObstacleOnLink.ExistsFromDate --> <MobilityImpairedAccess>unknown<</MobilityImpairedAccess>PointOnRoute> <!-- Always unknown, required field but data is not available --> <!-- More PointOnRoute elements --> <limitations> <AccessibilityLimitation> </pointsInSequence> </Route> <WheelchairAccess>unknown</WheelchairAccess> <!-- Always unknown, required field but data is not available --> <!-- More Route elements --> <StepFreeAccess>false</StepFreeAccess> <!-- BridgingDevice.TypeCode, “false” if there is a BridgingDevice for which TypeCode == 'STAIRWAY'. -->/routes> <lines> <EscalatorFreeAccess>unknown</EscalatorFreeAccess> <!-- BridgingDevice.TypeCode, “false” if thereLine is a BridgingDevice for which TypeCode == 'ESCALAT'. based on Noptis.Line --> <Line <LiftFreeAccess>unknown</LiftFreeAccess> version="20131215" id="SE:253:Line:9011005005300000"> <!-- BridgingDevice.TypeCode, “false” if there is a BridgingDevice for which TypeCode == 'ELEVATOR'. version=Noptis.Line.ExistsFromDate, id=Noptis.Line.Gid --> </AccessibilityLimitation> <ValidBetween> </limitations> </AccessibilityAssessment> <FromDate>2019-02-13T00:00:00</FromDate> <!-- Noptis.Line.ExistsFromDate --> </NavigationPath> <NavigationPath version="20120623" id="SE:251:NavigationPath:14010000311143757"> <!-- versionToDate = Noptis.StationEntryLinkLine.ExistsFromDate, id=Noptis.StationEntryLink.IdExistsToDate, in this case "ExistsToDate" is null --> <Distance>2.0</Distance> <!-- version=Noptis.StationEntryLink.DistanceMeters. If null, Distance will be 0 --> </ValidBetween> <Name>53</Name> <!-- Noptis.Line.Name, eller Noptis.Line.Designation om Noptis.Line.Name är tom --> <From> <PlaceRef ref="SE:251:StopPlaceEntrance:9023001006651002" version="20120623"/> <TransportMode>rail</TransportMode> <!-- version=Noptis.StationEntrancePoint.ExistsFromDate id=Noptis.StationEntrancePoint.Gid --> See the section "General Noptis to Netex mappings" below --> </From> <TransportSubmode> <To> <PlaceRef ref="SE:251:Quay:9022003719007001" version="20150827"/> <RailSubmode>unknown</RailSubmode> <!-- version=Noptis.StopPoint.ExistsFromDate id=Noptis.StopPoint.Gid from Noptis.StationEntryLink.EndsAtJourneyPatternPoint --> - Netex.TransportSubmode is always mapped to UNKNOWN since that information is not available in NOPTIS. --> </To> </TransportSubmode> <TransferDuration> <DefaultDuration>PT3M1S<<PublicCode>53</DefaultDuration>PublicCode> <!-- version=Noptis.StationEntryLinkLine.DefaultDurationSecondsDesignation --> </TransferDuration> <PrivateCode>53</PrivateCode> <!-- Noptis.Line.Number --> </NavigationPath> <NavigationPath version="20120623" id<RepresentedByGroupRef ref="SE:251253:NavigationPathNetwork:140100003111471869010005000000000"/> <!-- version=Noptis.StationExitLink.ExistsFromDate, id=Noptis.StationExitLink.Id --> <Distance>3.0</Distance> <!-- version=Noptis.StationExitLink.DistanceMeters. If null, Distance will be 0 --> </Line> </lines> <From> <journeyPatterns> <PlaceRef ref="SE:251:Quay:9022003719007002" version="20150827"/> <!-- version=Noptis.StopPoint.ExistsFromDate id=Noptis.StopPoint.Gid fromJourneyPattern is based on Noptis.StationExitLink.StartsAtJourneyPatternPointNamedJourneyPattern --> </From> <JourneyPattern version="any" id="SE:253:JourneyPattern:55700000035050824"> <!-- id=Noptis.NamedJourneyPattern.Id --> <To> <PlaceRef<RouteRef ref="SE:251253:StopPlaceEntranceRoute:902300100666100155700000035050824" version="20120623any"/> <!-- version=Noptis.StationEntrancePoint.ExistsFromDate id=Noptis.StationEntrancePoint.Gid --> </To><pointsInSequence> <TransferDuration> <!-- StopPointInJourneyPattern is based on Noptis.PointInJourneyPattern --> <DefaultDuration>PT3M2S</DefaultDuration> <!-- version=Noptis.StationExitLink.DefaultDurationSeconds --> </TransferDuration> <StopPointInJourneyPattern order="1" version="any" id="SE:253:StopPointInJourneyPattern:55700000035050829"> </NavigationPath> <pathLinksInSequence> <!-- order=Noptis.PointInJourneyPattern.SequenceNumber, id=Noptis.PointInJourneyPattern.Id --> <PathLinkInSequence order="1" version="any" id="SE:001:PathLinkInSequence:14010000311183662-1"> <LinkSequenceRef<ScheduledStopPointRef ref="SE:001253:PathLink:14010000311183662-1" version="20120623"/> <!-- ref=Noptis.ConnectionLink.Id-1, version=Noptis.ConnectionLink.ExistsFrom -->ScheduledStopPoint:9022005000050016"/> </PathLinkInSequence> <ForAlighting>false</ForAlighting> <!-- See the section "General Noptis to <PathLinkInSequence order="2" version="any" id="SE:001:PathLinkInSequence:14010000311183662-2">Netex mappings" below --> <LinkSequenceRef ref="SE:001:PathLink:14010000311183662-2" version="20120623"/> <ForBoarding>true</ForBoarding> <!-- ref=Noptis.ConnectionLink.Id-2, version=Noptis.ConnectionLink.ExistsFrom See the section "General Noptis to Netex mappings" below --> </PathLinkInSequence> </pathLinksInSequence><DestinationDisplayRef ref="SE:253:DestinationDisplay:55700000037211691"/> <!-- More NavigationPath elements --> <RequestStop>true</RequestStop> </navigationPaths> !-- See the section "General Noptis to Netex mappings" below --> <pathLinks> <PathLink version="20120623" id="SE:001:PathLink:14010000311183662-1"> <!-- id=Noptis.ConnectionLink.Id-1, version=Noptis.ConnectionLink.ExistsFrom --> </StopPointInJourneyPattern> <ValidBetween> <FromDate>2019-02-13T00:00:00</FromDate> <!-- Noptis.ConnectionLink.ExistsFromDate More StopPointInJourneyPattern elements --> <!-- ToDate = Noptis.ConnectionLink.ExistsToDate, in this case "ExistsToDate" is null --> </pointsInSequence> </ValidBetween> <linksInSequence> <From> <ServiceLinkInJourneyPattern <PlaceRef reforder="1" version="any" id="SE:001253:Quay:9022001070462002" version="20140603"/ServiceLinkInJourneyPattern:BUS_391"> <!-- idorder=Noptis.StopPointPointInJourneyPattern.Gid, version=Noptis.StopPoint.GidSequenceNumber, id is Noptis.Line.DefaultTransportModeCode + a counter. --> </From> <To> <ServiceLinkRef ref="SE:253:ServiceLink:BUS_9025005000005016_9025005000122302"/> <PlaceRef ref="SE:001:EquipmentPlace:14010000311143397" version="any"/> <!-- id=Noptis.BridgingDevice.id --> </To> ServiceLinkInJourneyPattern> </PathLink> <PathLink version="20120623" id="SE:001:PathLink:14010000311183662-2"> <!-- id=Noptis.ConnectionLink.Id-2, version=Noptis.ConnectionLink.ExistsFrom More ServiceLinkInJourneyPattern elements --> </linksInSequence> <From> <PlaceRef ref="SE:001:EquipmentPlace:14010000311143397" version="any"/> <!-- id=Noptis.BridgingDevice.id --> </JourneyPattern> </From>journeyPatterns> <To></ServiceFrame> <TimetableFrame <PlaceRef refversion="20191127125021" id="SE:001253:Quay:9022001070462001" version="20140603"/TimetableFrame:9011005005300000"> <!-- id=Noptis.StopPoint.Gid, version Version is timestamp of export (YYYYMMDDHHmmSS), id=Noptis.StopPointLine.Gid --> <vehicleJourneys> </To> </PathLink> !-- ServiceJourney is based on Noptis.VehicleJourney --> </pathLinks> </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"> <PublicationTimestamp>2019-11-27T12:50:21</PublicationTimestamp> <!-- Timestamp of export --> <ParticipantRef>SAM</ParticipantRef> <dataObjects> <ServiceJourney version="any" id="SE:253:ServiceJourney:55700000049527547"> <!-- id=Noptis.VehicleJourney.Id --> <PrivateCode>123</PrivateCode> <!-- Not in Noptis but in Stip as VehicleJourney.InternalJourneyNumber. Currently only imported from TRP.30-Post.TURNR and Netex.ServiceJourney. --> <CompositeFrame created="2019-11-27T12:50:21" version="20191127125021" id="SE:253:CompositeFrame:9011005005300000"> <TransportMode>rail</TransportMode> <!-- VersionSee isthe timestampsection of"General export (YYYYMMDDHHmmSS), id will always be 1 -->Noptis to Netex mappings" below --> <ValidBetween> <TransportSubmode> <FromDate>2005-01-01T00:00:00</FromDate> <!-- Always set to 2005-01-01 --> </ValidBetween> <RailSubmode>unknown</RailSubmode> <!-- Netex.TransportSubmode is always mapped <codespaces>to UNKNOWN since that information is not available in NOPTIS. --> <Codespace id="253"> <!-- id is same as Xmlns --> </TransportSubmode> <Xmlns>253</Xmlns> <!-- From Samtrafiken's registry of producer numbers, based on data source --> <dayTypes> <XmlnsUrl>http://www.samtrafiken.se/ns/Östgötatrafiken</XmlnsUrl> <!-- "Östgötatrafiken" is based on data source --> <DayTypeRef </Codespace> ref="SE:253:DayType:1"/> <!-- See the explanation for ServiceCalendarFrame in the "_shared_data.xml" section --> </codespaces> <FrameDefaults> </dayTypes> <DefaultLocale> <TimeZone>Europe/Stockholm</TimeZone> <JourneyPatternRef ref="SE:253:JourneyPattern:55700000035050824" version="any"/> <DefaultLanguage>se</DefaultLanguage> <OperatorRef ref="SE:253:Operator:9013005918200000"/> </DefaultLocale> <DefaultLocationSystem>4326</DefaultLocationSystem> <!-- All coordinates are WGS84 --> <trainNumbers> <!-- TrainNumbers exists only for ServiceJourneys that are </FrameDefaults>trains. --> <frames> <ServiceFrame version="20191127125021" id="SE:253:ServiceFrame:9011005005300000"> <!-- Normally Versionthere iswill timestamponly ofbe export (YYYYMMDDHHmmSS), id=Noptis.Line.Gid --> <routes>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). --> <!-- Route is based on Noptis.JourneyPattern and Noptis.DirectionOfLine. Each Noptis.JourneyPattern will create a Route. --><TrainNumberRef ref="SE:253:TrainNumber:9011074007000000_74" versionRef="any"/> <Route version="any" id <TrainNumberRef ref="SE:253:Route:55700000035050824"TrainNumber:9011074007000000_70" versionRef="any"/> <Name>Motala</Name> <!-- Noptis.DirectionOfLine.Name --></trainNumbers> <passingTimes> <LineRef ref="SE:253:Line:9011005005300000" version="20131215"/> <DirectionType>outbound</DirectionType> <!-- Noptis.DirectionOfLine.DirectionCode. ODD = outbound, EVEN = inbound.TimetabledPassingTime is based on CallOnTimedJourneyPattern --> <TimetabledPassingTime version="any" id="SE:253:TimetabledPassingTime:55700000049527529"> <!-- <pointsInSequence>id=Noptis.CallOnTimedJourneyPattern.Id --> <!-- PointOnRoute is based on Noptis.PointInJourneyPattern --><StopPointInJourneyPatternRef ref="SE:253:StopPointInJourneyPattern:55700000035050829" version="any"/> <PointOnRoute order="1" version="any" id="SE:253:PointOnRoute:55700000035050829"> <DepartureTime>06:40:00</DepartureTime> <!-- order=Noptis.PointInJourneyPattern.SequenceNumber, id=VehicleJourney.PlannedStartOffsetDayTime and Noptis.PointInJourneyPatternCallOnTimedJourneyPattern.IdEarliestDepartureTimeOffsetSeconds --> </TimetabledPassingTime> <RoutePointRef ref="SE:253:RoutePoint:9022005000050016"/> <TimetabledPassingTime version="any" id="SE:253:TimetabledPassingTime:55700000049527530"> </PointOnRoute> <!-- More PointOnRoute elements --<StopPointInJourneyPatternRef ref="SE:253:StopPointInJourneyPattern:55700000035050830" version="any"/> </pointsInSequence> <ArrivalTime>06:41:28</ArrivalTime> <!-- Noptis.VehicleJourney.PlannedStartOffsetDayTime and Noptis.CallOnTimedJourneyPattern.LatestArrivalTimeOffsetSeconds --> </Route> <!-- More Route elements --><DepartureTime>06:41:28</DepartureTime> </routes> </TimetabledPassingTime> <lines> <!-- LineMore isTimtabledPassingTime based on Noptis.Line elements --> <Line <TimetabledPassingTime version="20131215any" id="SE:253:LineTimetabledPassingTime:901100500530000055700000049527544"> <!-- version=Noptis.Line.ExistsFromDate, id=Noptis.Line.Gid --> <StopPointInJourneyPatternRef ref="SE:253:StopPointInJourneyPattern:55700000035050844" version="any"/> <ValidBetween> <FromDate>2019-02-13T00:00<ArrivalTime>07:50:00</FromDate> <!-- Noptis.Line.ExistsFromDate -->ArrivalTime> <!-- ToDate = Noptis.Line.ExistsToDate, in this case "ExistsToDate" is null --><DepartureTime>07:51:00</DepartureTime> </TimetabledPassingTime> </ValidBetween> <TimetabledPassingTime version="any" <Name>53</Name> <!-- Noptis.Line.Name, eller Noptis.Line.Designation om Noptis.Line.Name är tom -->id="SE:253:TimetabledPassingTime:55700000049527545"> <StopPointInJourneyPatternRef <TransportMode>bus</TransportMode> <!-- See the section "General Noptis to Netex mappings" below -->ref="SE:253:StopPointInJourneyPattern:55700000035050845" version="any"/> <ArrivalTime>01:20:00</ArrivalTime> <TransportSubmode> <BusSubmode>unknown<<ArrivalDayOffset>1</BusSubmode>ArrivalDayOffset> <!-- Netex.TransportSubmode is always mapped to UNKNOWN since that information is not available in NOPTIS. -->Noptis.VehicleJourney.PlannedStartOffsetDayTime (the day value -1) --> <DepartureTime>01:21:00</DepartureTime> </TransportSubmode> <PublicCode>53<<DepartureDayOffset>1</PublicCode>DepartureDayOffset> <!-- Noptis.Line.DesignationVehicleJourney.PlannedEndOffsetDayTime (the day value -1) --> <PrivateCode>53</PrivateCode> <!-- Noptis.Line.Number --> </TimetabledPassingTime> <TimetabledPassingTime <RepresentedByGroupRef refversion="any" id="SE:253:NetworkTimetabledPassingTime:901000500000000055700000049527546"/>> <StopPointInJourneyPatternRef </Line>ref="SE:253:StopPointInJourneyPattern:55700000035050846" version="any"/> </lines> <ArrivalTime>02:00:00</ArrivalTime> <journeyPatterns> <!-- JourneyPattern is based on Noptis.NamedJourneyPattern --> <ArrivalDayOffset>1</ArrivalDayOffset> <JourneyPattern version="any" id="SE:253:JourneyPattern:55700000035050824"> <!-- id=Noptis.NamedJourneyPattern.Id --> </TimetabledPassingTime> <RouteRef ref="SE:253:Route:55700000035050824" version="any"/> </passingTimes> <FlexibleServiceProperties> <!-- <pointsInSequence>Noptis.AdvanceOrderCondition --> <FlexibleServiceType>fixedPassingTimes</FlexibleServiceType> <!-- this StopPointInJourneyPatternvalue is always basedset onto Noptis.PointInJourneyPatternfixedPassingTimes --> <StopPointInJourneyPattern order="1" version="any" id="SE:253:StopPointInJourneyPattern:55700000035050829"><BookingContact> <Phone>07717110120</Phone> <!-- order=Noptis.PointInJourneyPattern.SequenceNumber, id=Noptis.PointInJourneyPattern.IdAdvanceOrderCondition.TelephoneNumber --> <ScheduledStopPointRef ref="SE:253:ScheduledStopPoint:9022005000050016"/> </BookingContact> <ForAlighting>false</ForAlighting> <!-- Either BookWhen SeeAND theLatestBookingTime sectionare "Generalset, NoptisOR toonly NetexMinimumBookingPeriod mappings"is belowset --> <ForBoarding>true</ForBoarding><BookWhen>advanceAndDayOfTravel</BookWhen> <!-- See the section "General Noptis to Netex mappings" below --> Noptis.AdvanceOrderCondition.MinimumDaysInAdvanceCount. advanceAndDayOfTravel = 0, untilPreviousDay = 1 --> <DestinationDisplayRef ref="SE:253:DestinationDisplay:55700000037211691"/> <LatestBookingTime>18:00:00</LatestBookingTime> <!-- Noptis.AdvanceOrderCondition.LatestAbsoluteTime --> <RequestStop>true</RequestStop><!-- <MinimumBookingPeriod>PT2H</MinimumBookingPeriod> <!-- See the section "General Noptis to Netex mappings" belowNoptis.AdvanceOrderCondition.LatestTimeSpanInAdvanceDurationSeconds --> This is just an example of how it would look like--> </StopPointInJourneyPattern> <BookingNote>Turen måste förbeställas på 0771 - 71 10 20 senast 2 timmar före avresa från turens starthållplats.</BookingNote> <!-- More StopPointInJourneyPattern elementsNoptis.AdvanceOrderCondition.PublicNote --> </pointsInSequence>FlexibleServiceProperties> <linksInSequence> <parts> <ServiceLinkInJourneyPattern order="1" version="any" id="SE:253:ServiceLinkInJourneyPattern:BUS_391"> <!-- order=Noptis.PointInJourneyPattern.SequenceNumber, JourneyParts with TrainNumberRefs only exists for ServiceJourneys that are trains. --> id is Noptis.Line.DefaultTransportModeCode + a counter. <!--> JourneyParts with TrainNumberRefs exists for trains that change their announced train number during their journey (also called vagnskurs/kursvagnar). --> <ServiceLinkRef ref="SE:253:ServiceLink:BUS_9025005000005016_9025005000122302"/> <!-- The StopPointRefs and times in the example below are wrong with regard to the journeypattern and passingtimes of </ServiceLinkInJourneyPattern>this ServiceJourney --> <!-- More ServiceLinkInJourneyPattern elements --><JourneyPart version="any" id="SE:253:JourneyPart:323200000000003266_tn_0"> <!-- MainPartRef is a self-reference that only </linksInSequence>exists to pass Netex-validation --> </JourneyPattern> <MainPartRef ref="SE:253:JourneyPart:323200000000003266_tn_0" version="any"/> </journeyPatterns> </ServiceFrame> <TimetableFrame version="20191127125021" id<TrainNumberRef ref="SE:253:TimetableFrame:9011005005300000"> <!-- Version is timestamp of export (YYYYMMDDHHmmSS), id=Noptis.Line.Gid -->TrainNumber:9011074007000000_70" versionRef="any"/> <vehicleJourneys> <FromStopPointRef ref="SE:253:ScheduledStopPoint:9022005000050016"/> <!-- ServiceJourney is based on Noptis.VehicleJourney --> <ToStopPointRef ref="SE:253:ScheduledStopPoint:9022005000050019"/> <ServiceJourney version="any" id="SE:253:ServiceJourney:55700000049527547"> <!-- id=Noptis.VehicleJourney.Id --> <StartTime>06:40:00</StartTime> <PrivateCode>123</PrivateCode> <!-- Not in Noptis but in Stip as VehicleJourney.InternalJourneyNumber. Currently only imported from TRP.30-Post.TURNR and Netex.ServiceJourney. --> <EndTime>07:50:00</EndTime> <TransportMode>bus</TransportMode> <!-- See the section "General Noptis to Netex mappings" below --> </JourneyPart> <TransportSubmode> <JourneyPart version="any" id="SE:253:JourneyPart:323200000000003266_tn_1"> <BusSubmode>unknown</BusSubmode> <!-- Netex.TransportSubmode is always mapped to UNKNOWN since that information is not available in NOPTIS. --><MainPartRef ref="SE:253:JourneyPart:323200000000003266_tn_1" version="any"/> </TransportSubmode> <TrainNumberRef ref="SE:253:TrainNumber:9011074007000000_74" versionRef="any"/> <dayTypes> <FromStopPointRef ref="SE:253:ScheduledStopPoint:9022005000050020"/> <DayTypeRef ref="SE:253:DayType:1"/> <!-- See the explanation for ServiceCalendarFrame in the "_shared_data.xml" section --> <ToStopPointRef ref="SE:253:ScheduledStopPoint:9022005000050021"/> </dayTypes> <StartTime>01:21:00</StartTime> <JourneyPatternRef ref="SE:253:JourneyPattern:55700000035050824" version="any"/> <!-- The StartTimeDayOffset must match <OperatorRef ref="SE:253:Operator:9013005918200000"/> the DepartureDayOffset of the TimetabledPassingTime. --> <passingTimes> <!-- If the value is 0 (which is the most common case) this field will not be set at all, like <!-- TimetabledPassingTime is based on CallOnTimedJourneyPattern 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 at all, like in the JourneyPart example above. --> <TimetabledPassingTime version="any" id="SE:253:TimetabledPassingTime:55700000049527530"> <EndTimeDayOffset>1</EndTimeDayOffset> <StopPointInJourneyPatternRef ref="SE:253:StopPointInJourneyPattern:55700000035050830" version="any"/> </JourneyPart> <ArrivalTime>06:41:28</ArrivalTime> <!-- Noptis.VehicleJourney.PlannedStartOffsetDayTime and Noptis.CallOnTimedJourneyPattern.LatestArrivalTimeOffsetSeconds --> </parts> <DepartureTime>06:41:28</DepartureTime></ServiceJourney> </vehicleJourneys> </TimetabledPassingTime> <!-- Train numbers for TrainNumberRefs for all of the ServiceJourneys in this Line-file. --> <!-- More TimtabledPassingTime elements --> <trainNumbers> <TimetabledPassingTime<TrainNumber version="any" id="SE:253:TimetabledPassingTimeTrainNumber:557000000495275449011074007000000_70"> <!-- ForAdvertisement contains the announced train number which should be displayed for passengers. --> <StopPointInJourneyPatternRef ref="SE:253:StopPointInJourneyPattern:55700000035050844" version="any"/> <ForAdvertisement>70</ForAdvertisement> <ArrivalTime>07:50:00</ArrivalTime> </TrainNumber> <TrainNumber </TimetabledPassingTime>version="any" id="SE:253:TrainNumber:9011074007000000_74"> <<ForAdvertisement>74</passingTimes>ForAdvertisement> </ServiceJourney>TrainNumber> </vehicleJourneys>trainNumbers> <journeyInterchanges> <!-- ServiceJourneyInterchange is based on Noptis.ConnectionCandidate --> <ServiceJourneyInterchange version="any" id="SE:253:ServiceJourneyInterchange:55700000051347301_1A_9022005004136002_55700000050225029_55700000051347301"> <!-- id=Noptis.VehicleJourney.Id + counterA/B + FromPoint + FromJourney + ToJourney --> <Priority>0</Priority> <!--0 = Interchange allowed, -1 = Interchange not allowed --> <Guaranteed>false</Guaranteed> <!-- Always false --> <Advertised>true</Advertised> <!-- Always true --> <FromPointRef ref="SE:253:ScheduledStopPoint:9022005004136002"/> <!-- Noptis.ConnectionCandidate.IsFromFeederVehicleJourneyId --> <ToPointRef ref="SE:253:ScheduledStopPoint:9022005004136006" version="20190516"/> <!-- Noptis.ConnectionCandidate.IsFromFeederVehicleJourneyId --> <FromJourneyRef ref="SE:253:ServiceJourney:55700000050225029"/> <!-- Noptis.ConnectionCandidate.IsFromFeederVehicleJourneyId --> <ToJourneyRef ref="SE:253:ServiceJourney:55700000051347301" version="any"/> <!-- Noptis.ConnectionCandidate.IsToFetcherVehicleJourneyId --> </ServiceJourneyInterchange> </journeyInterchanges> </TimetableFrame> </frames> </CompositeFrame> </dataObjects> </PublicationDelivery> |
General Noptis to Netex mappings
Netex.ServiceJourney.TransportSubmode
Netex.ServiceJourney.TransportSubmode and Netex.Line.TransportSubmode is always mapped to UNKNOWN since that information is not available in NOPTIS.
...
Netex.ServiceLink.VehicleMode, Netex.ServiceJourney.TransportMode, Netex.Line.TransportMode
(Netex.AllModesEnumeration or Netex.AllVehicleModesOfTransportEnumeration)
Noptis.TransportModeCode.BUS = Netex.BUS
Noptis.TransportModeCode.TRAIN = Netex.RAIL
Noptis.TransportModeCode.TRAM = Netex.TRAM
Noptis.TransportModeCode.METRO = Netex.METRO
Noptis.TransportModeCode.TAXI = Netex.TAXI
Noptis.TransportModeCode.SHIP = Netex.WATER
Noptis.TransportModeCode.FERRY = Netex.WATER
Noptis.TransportModeCode.UNSPECIFIED = Netex.UNKNOWN
...
Netex.StopPlace.TransportMode
Netex.StopPlace.TransportMode has no corresponding field in Noptis. It is instead generated from the Noptis.StopArea.TypeCode:
Noptis.StopAreaTypeCode.AIRPORT = Netex.VehicleModeEnumeration.AIR
Noptis.StopAreaTypeCode.BUSTERM = Netex.VehicleModeEnumeration.BUS
Noptis.StopAreaTypeCode.FERRYBER = Netex.VehicleModeEnumeration.FERRY
Noptis.StopAreaTypeCode.SHIPBER = Netex.VehicleModeEnumeration.FERRY
Noptis.StopAreaTypeCode.METROSTN = Netex.VehicleModeEnumeration.METRO
Noptis.StopAreaTypeCode.RAILWSTN = Netex.VehicleModeEnumeration.RAIL
Noptis.StopAreaTypeCode.TRAMSTN = Netex.VehicleModeEnumeration.TRAM
Noptis.StopAreaTypeCode.TAXITERM = Netex.VehicleModeEnumeration.OTHER;
Noptis.StopAreaTypeCode.UNKNOWN = Netex.VehicleModeEnumeration.OTHER
...
Netex.StopPlace.StopPlaceType
Noptis.StopAreaTypeCode.AIRPORT = Netex.StopTypeEnumeration.AIRPORT
Noptis.StopAreaTypeCode.BUSTERM = Netex.StopTypeEnumeration.BUS_STATION
Noptis.StopAreaTypeCode.FERRYBER = Netex.StopTypeEnumeration.FERRY_STOP
Noptis.StopAreaTypeCode.SHIPBER = Netex.StopTypeEnumeration.FERRY_STOP
Noptis.StopAreaTypeCode.METROSTN = Netex.StopTypeEnumeration.METRO_STATION
Noptis.StopAreaTypeCode.RAILWSTN = Netex.StopTypeEnumeration.RAIL_STATION
Noptis.StopAreaTypeCode.TRAMSTN = Netex.StopTypeEnumeration.TRAM_STATION
Noptis.StopAreaTypeCode.TAXITERM = Netex.StopTypeEnumeration.OTHER
Noptis.StopAreaTypeCode.UNKNOWN = Netex.StopTypeEnumeration.OTHER
...
Netex.StopPlace.Weighting
Noptis.StopPlace.InterchangePriority is used to create the Netex.StopPlace.Weighting. Noptis.StopPlace.InterchangePriority is a value between 1 - 16. A lower number means higher priority in Noptis.
case 1, 2, 3, 4:
return PREFERRED_INTERCHANGE;
case 5, 6, 7, 8, 9, 10, 11, 12:
return RECOMMENDED_INTERCHANGE;
case 13, 14, 15, 16:
return INTERCHANGE_ALLOWED;
default: // interchangePriority < 1 or interchangePriority > 16, this is applicable for other formats than Noptis.
return NO_INTERCHANGE;
...
Netex.StopPointInJourneyPattern.ForAlighting
Noptis.ArrivalType.NO_STOP(0),
Noptis.ArrivalType.NO_ALIGHTING(1) = False
Noptis.ArrivalType.STOP_IF_ALIGHTING(2),
Noptis.ArrivalType.ALWAYS_STOP(3),
Noptis.ArrivalType.FLEXIBLE_ALIGHTING_UPTO_HERE(5) = True
Netex.StopPointInJourneyPattern.ForBoarding
Noptis.DepartureType.NO_STOP(0),
Noptis.DepartureType.NO_BOARDING(1) = False
Noptis.DepartureType.STOP_IF_BOARDING(2),
Noptis.DepartureType.ALWAYS_STOP(3),
Noptis.DepartureType.FLEXIBLE_BOARDING_FROM_HERE(5) = True
Netex.StopPointInJourneyPattern.RequestStop
True if Noptis.ArrivalType.STOP_IF_ALIGHTING(2) or Noptis.DepartureType.STOP_IF_BOARDING(2), otherwise false.
...