Example
uk_nap_extract1_minimal.xml
standards/txc/uk_nap_extract1_minimal.xml
Element names link to their declarations.
<?xml version="1.0" encoding="UTF-8"?>
<PublicationDelivery xmlns="http://www.netex.org.uk/netex" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:siri="http://www.siri.org.uk/siri" version="1.1" xsi:schemaLocation="http://www.netex.org.uk/netex ../../../xsd/NeTEx_publication.xsd">
<PublicationTimestamp>2001-12-17T09:30:47.0Z</PublicationTimestamp>
<ParticipantRef>SYS001</ParticipantRef>
<!--
UK NeTEx Profile: NPTG Data
=============
This Example shows an extract of actual NaPTAN data for two NaPTAN StopAreas and three NaPTAN Stop Points encoded in NeTEx format
A postal address (not in the Naptan data) has been added to the stations to how to show this could be encoded.
No Meta data is provided so the external code valeus are not validated
(C) Crown Copyright 2018
=========================================
1. Overview:
1.1 NaPTAN Stop Points
NaPTAN describes both timetabled and physical aspects of stop in a single entity, Stop Point. a NaPTAN stop point thus represents variously a Station, a stop on the street, an entrance
NeTEx separates the concepts of the stop in the schedule (SCHEDULED STOP POINT ) from the concept of a stop as a physical location or group of locations (STOP PLACE, QUAY, BOARDING POINT, ENTRANCE)
A NeTEx STOP PLACE (and QUAY) can be associated with a SCHEDULED STOP POINT. using a STOP ASSIGNMENT
Depending on the application, a NaPTAn stop point might thus be encoded in NeTEx as a SCHEDULED STOP POINT (eg for a timetalble) or STOP PLACE elements (e.g. for an accesibility map), or both - eg if a timetabled stop is assigned to a physical platform (QUAY) within a STOP PLACE.
In this example for each NaPTAN Stop we show both a STOP PLACE and a SCHEDULED TOP POINT, wrapped together in STOP ASSIGNMENT.
Every NaPTAN stop point is assigned to a NPTG Locality - this corresponds to a NeTEx TOPOGRAPHICAL PLACE
1.2 NaPTan Stop Areas
Each NaPTAN StopArea can be represented by a NeTEx STOP AREA. In particular this is useful where StopAreas are used to group multimodal stops at an interchange,
A Simplified mapping might just use a STOP PLACE.
1.3 Administrative areas
The Administrative are is indicated by a ResponsibiltySetRef . A separate responsibility set is defined in NPTG for each admin area.
================================
2. Summary
2.1 A COMPOSITE FRAME is used to hold the whole data set, with TYPE OF FRAME = UK_NAPTAN_data
:::::::::::::
2.2 A SERVICE FRAME is used to hold the main stop content data ( STOP PLACEs and STOP AREAs etc ,) : with TYPE OF FRAME = nptg:UK_NAPTAN_profile_payload_data
2.3 Each NaPTAN stop area is mapped to an element of a NeTEx STOP AREA, and identified with the same identifier Ni.e. AtcoCode as in NaPTA
- NaPTAN StopArea => NeTEx StopArea
- NaPTAN ParentStopAreaRef => NeTEx ParentStopAreaRef.
The Type of the NaPTAN StopArea can be represented with a NeTExTypeOfZone code
2.4 Each NaPTAN point type is mapped to an element of a NeTEx STOP PLACE, and identified with the same identifier i.e. AtcoCode.
The NaPTAN StopClassification and StopType can be used to determine how each type of stop is handled
2.4.1 Each NaPTAN StopPoint that is an interchange (i.e. of NaPTAN ‘access area’ stop type RLY, MET, etc) can be represented by a NeTEx STOP PLACE.
- NaPTAN StopPoint (AccessArea) => NeTEx StopPlace.
2.4.2 Each NaPTAN StopPoint that is a platform or other physical point of access (i.e. of NaPTAN stop type, BCS, PLT, etc ) can be represented by a NeTEx QUAY within a STOP PLACE given by the associated NaPTAN interchange.
- NaPTAN StopPoint (Physical Stop) =>NeTEx StopPlace / Quay.
2.4.3 Each NaPTAN StopPoint that is an entrance to an interchange (.e. of NaPTAN stop type BSE, RSE, FER, etc ) can be represented by a NeTEx ENTRANCE within a STOP PLACE given by the associated NaPTAN interchange
- NaPTAN StopPoint (Entrance) =>NeTEx StopPlace / Entrance.
2.4.4 Each NaPTAN StopPoint that is not part of an interchange (mostly just on-street bus stops of type BCT,) can be represented by a NeTEx QUAY; in this case an additional STOP PLACE will have to be created to contain it. Pairs of on street stops (as indicated by a NaPTAN Stop Are of type GCLS) can be assigned to a single STOP PLACE
2.5 Each NaPTAN point type is also mapped to NeTEx SCHEDULED STOP POINT.
ATtributes that relate to the timeing (eg default wait tim) can be assigned to the CHEDULED STOP POINT.
2.6 A NeTEx STOP PLACE ASSIGNMENT is used to created to explicitly link the STOP PLACE attributes to its assoicated SCHEDULED STOP POINT .
-->
<!--- =============== RESULTS =========== -->
<dataObjects>
<CompositeFrame version="1" id="napt:SampleData_02">
<Name>Sample extract of NaPTAn data encoded a in NeTEx </Name>
<TypeOfFrameRef ref="fxc:UK:DFT:TypeOfFrame_UK_PI_NETWORK_OFFER:FXCP" versionRef="fxcp:1.0"/>
<!-- ==== CODESPACES == -->
<codespaces>
<Codespace id="nptgAdminArea">
<Xmlns>nptgAdminArea_data</Xmlns>
<XmlnsUrl>http://www.nptg.org.uk/adminAreas</XmlnsUrl>
<Description>UK National Public Transport gazetteer. Codes of administrative areas, are unique within the UK.</Description>
</Codespace>
<Codespace id="nptg_metadata">
<Xmlns>nptg</Xmlns>
<XmlnsUrl>http://www.nptg.org.uk/nptg</XmlnsUrl>
<Description>UK National Public Transport gazetteer and NPTG codes. .</Description>
</Codespace>
<Codespace id="napt_metadata">
<Xmlns>napt</Xmlns>
<XmlnsUrl>http://www.naptan.org.uk/</XmlnsUrl>
<Description>UK Natptan metadata .</Description>
</Codespace>
<Codespace id="naptStop_data">
<Xmlns>naptStop</Xmlns>
<XmlnsUrl>http://www.naptan.org.uk/stops</XmlnsUrl>
<Description>UK National stops .</Description>
</Codespace>
</codespaces>
<frames>
<!--- STOP AREAS -->
<!-- ======================================================================= -->
<ServiceFrame version="2.4" id="epd:UK:NaPTAN:ServiceFrame_UK_PI_NETWORK:910:napt">
<Name>Stample STop and Stop Area data encoded NeTEx</Name>
<TypeOfFrameRef ref="fxc:UK:DFT:TypeOfFrame_UK_PI_NETWORK:FXCP" versionRef="fxcp:1.0"/>
<FrameDefaults>
<DefaultCodespaceRef ref="naptStop_data"/>
<DefaultResponsibilitySetRef ref="napt:stop_data"/>
<DefaultLocationSystem>UKOS</DefaultLocationSystem>
</FrameDefaults>
<stopAreas>
<StopArea responsibilitySetRef="nptgAdminArea:086" created="2010-06-29T09:41:00" changed="2010-06-29T09:41:00" modification="new" version="0" status="active" id="naptStop:060G000001">
<Name>Longfield Academy</Name>
<types>
<TypeOfZoneRef ref="napt:StopAreaType@GCLS"/>
</types>
<Centroid>
<Location>
<Longitude>0.3061188404</Longitude>
<Latitude>51.3970678664</Latitude>
<gml:pos srsName="UKOS">560525 168971</gml:pos>
</Location>
</Centroid>
</StopArea>
<StopArea responsibilitySetRef="nptgAdminArea:110" created="2006-09-11T15:42:00" changed="2006-09-11T00:00:00" modification="new" version="0" status="active" id="naptStop:910GABDARE">
<Name>Aberdare Rail Station</Name>
<types>
<TypeOfZoneRef ref="napt:StopAreaType@GRLS"/>
</types>
<Centroid>
<Location>
<!-- NaPTAN StopArea.Location -->
<Longitude>-3.4430991465</Longitude>
<Latitude>51.715057473</Latitude>
<gml:pos srsName="UKOS">300400 202800</gml:pos>
</Location>
</Centroid>
</StopArea>
<StopArea responsibilitySetRef="nptgAdminArea:110" created="2006-09-11T15:42:00" changed="2006-09-11T00:00:00" modification="new" version="0" status="active" id="naptStop:910GABDO">
<Name>Aberdour Rail Station</Name>
<types>
<TypeOfZoneRef ref="napt:StopAreaType@GRLS"/>
</types>
<Centroid>
<Location>
<Longitude>-3.30056001734</Longitude>
<Latitude>56.05459191149</Latitude>
<gml:pos srsName="UKOS">319100 685400</gml:pos>
</Location>
</Centroid>
</StopArea>
</stopAreas>
<!-- ======= NaPTAn Stop Data ====== -->
<stopAssignments>
<PassengerStopAssignment version="any" created="2004-06-09T14:20:00-05:00" responsibilitySetRef="nptgAdminArea:060" id="naptStop:260010966" order="1">
<ScheduledStopPoint version="any" created="2004-06-09T14:20:00-05:00" responsibilitySetRef="nptgAdminArea:060" id="naptStop:260010966">
<Name>Netherley Road</Name>
<TimingPointStatus>timingPoint</TimingPointStatus>
<AllowedForWaitTime>PT0M</AllowedForWaitTime>
<stopAreas>
<StopAreaRef version="0" ref="naptStop:060G000001"/>
</stopAreas>
<StopType>onstreetBus</StopType>
<VehicleModes>bus</VehicleModes>
<TopographicPlaceRef ref="nptgLocality:E0000004"/>
</ScheduledStopPoint>
<StopPlace version="any" id="naptStop:260010966" responsibilitySetRef="nptgAdminArea:060">
<Name>Netherley Road</Name>
<quays>
<Quay id="naptStop:260010966" version="1">
<Centroid>
<Location>
<gml:pos srsName="UKOS">442914</gml:pos>
</Location>
</Centroid>
<placeTypes>
<TypeOfPlaceRef ref="napt:StopType@BCT"/>
<TypeOfPlaceRef ref="napt:StopType@MKD"/>
</placeTypes>
<RoadAddress version="any" id="naptStop:260010966@address">
<RoadName>Netherley Road</RoadName>
<BearingCompass>N</BearingCompass>
</RoadAddress>
<TransportMode>bus</TransportMode>
<QuayType>busStop</QuayType>
</Quay>
</quays>
</StopPlace>
</PassengerStopAssignment>
<PassengerStopAssignment version="any" responsibilitySetRef="nptgAdminArea:086" id="naptStop:2400100348" order="1">
<ScheduledStopPoint responsibilitySetRef="nptgAdminArea:086" created="2008-03-10T15:20:00" changed="2008-12-09T15:29:00" modification="revise" version="1" status="active" id="naptStop:2400100348">
<Name>White Deer Park Nursing Home</Name>
<TimingPointStatus>notTimingPoint</TimingPointStatus>
<ShortStopCode type="napt:NaptanCode">kntgwjdg</ShortStopCode>
</ScheduledStopPoint>
<StopPlace responsibilitySetRef="nptgAdminArea:086" version="1" id="naptStop:2400100348@Place">
<Name>White Deer Park Nursing Home</Name>
<TopographicPlaceRef ref="nptgLocality:E0015410"/>
<AtCentre>false</AtCentre>
<TransportMode>bus</TransportMode>
<tariffZones>
<TariffZoneRef created="2010-10-07T14:27:15" changed="2010-10-07T14:27:15" modification="new" ref="THANET"/>
</tariffZones>
<StopPlaceType>onstreetBus</StopPlaceType>
<quays>
<Quay id="naptStop:2400100348" version="1">
<Centroid>
<Location>
<Longitude>1.4324975357</Longitude>
<Latitude>51.3469852361</Latitude>
<gml:pos srsName="UKOS">639127 166471</gml:pos>
</Location>
</Centroid>
<placeTypes>
<TypeOfPlaceRef ref="napt:StopType@BCT"/>
<TypeOfPlaceRef ref="napt:StopType@MKD"/>
</placeTypes>
<RoadAddress version="any" id="naptStop:2400100348@address">
<RoadName>Detling Avenue</RoadName>
<BearingCompass>SE</BearingCompass>
</RoadAddress>
<NameSuffix>opp</NameSuffix>
<Landmark>White Deer Park Nursing Home</Landmark>
<TransportMode>bus</TransportMode>
<PublicCode>kntgwjdg</PublicCode>
<QuayType>busStop</QuayType>
</Quay>
</quays>
</StopPlace>
</PassengerStopAssignment>
<!-- ==== -->
<PassengerStopAssignment responsibilitySetRef="nptgAdminArea:110" version="1" id="naptStop:9100ABDARE" order="1">
<ScheduledStopPoint responsibilitySetRef="nptgAdminArea:110" created="2006-09-08T14:30:00" changed="2007-09-26T13:00:00" modification="revise" version="1" status="active" id="naptStop:9100ABDARE">
<Name>Aberdare Rail Station</Name>
<stopAreas>
<StopAreaRef created="2006-12-08T00:00:00" changed="2006-12-08T00:00:00" modification="new" version="0" ref="naptStop:910GABDARE"/>
</stopAreas>
<ShortStopCode>ABA</ShortStopCode>
<PublicCode type="napt:TIPLOC">ABDARE</PublicCode>
</ScheduledStopPoint>
<StopPlace responsibilitySetRef="nptgAdminArea:110" version="1" id="naptStop:9100ABDARE">
<Name>Aberdare Rail Station</Name>
<Centroid>
<Location>
<Longitude>-3.4430991465</Longitude>
<Latitude>51.715057473</Latitude>
<gml:pos srsName="UKOS">300400 202800</gml:pos>
</Location>
</Centroid>
<placeTypes>
<TypeOfPlaceRef ref="napt:StopType@RLY"/>
</placeTypes>
<PostalAddress version="1" id="naptStop:9100ABDARE@address">
<CountryRef ref="uk" refPrincipality="iso3166-2:GB-WLS"/>
<BuildingName>Aberdare station</BuildingName>
<Street>Abernant Road</Street>
<Town>Aberdare</Town>
<PostCode>CF44 0PU</PostCode>
<Province>Mid Glamorgan</Province>
</PostalAddress>
<TopographicPlaceRef ref="nptgLocality:E0054662" versionRef="1">Aberdare</TopographicPlaceRef>
<AtCentre>true</AtCentre>
<entrances>
<StopPlaceEntrance id="naptStop:9100ABDARE0A" version="1">
<Name>Aberdare Rail Station - Main Entrance</Name>
<Centroid>
<Location>
<Longitude>-3.4430991462</Longitude>
<Latitude>51.715057474</Latitude>
<gml:pos srsName="UKOS">300400 202800</gml:pos>
</Location>
</Centroid>
<placeTypes>
<TypeOfPlaceRef ref="napt:StopType@RSE"/>
</placeTypes>
<RoadAddress version="any" id="naptStop:9100ABDARE0A">
<RoadName>Station Road Avenue</RoadName>
<BearingCompass>SE</BearingCompass>
</RoadAddress>
</StopPlaceEntrance>
</entrances>
<TransportMode>rail</TransportMode>
<tariffZones>
<TariffZoneRef created="2009-10-29T16:30:45" changed="2009-10-29T16:30:45" modification="new" ref="nptg:TariffZone:ABDARE"/>
</tariffZones>
<StopPlaceType>railStation</StopPlaceType>
<quays>
<Quay id="naptStop:9100ABDARE01" version="1">
<Name>Platform 1</Name>
<Centroid>
<Location>
<Longitude>-3.4430991462</Longitude>
<Latitude>51.715057474</Latitude>
<gml:pos srsName="UKOS">300400 202800</gml:pos>
</Location>
</Centroid>
<placeTypes>
<TypeOfPlaceRef ref="napt:StopType@PLT"/>
</placeTypes>
<TransportMode>rail</TransportMode>
<QuayType>railPlatform</QuayType>
</Quay>
<Quay id="naptStop:9100ABDARE02" version="1">
<Name>Platform 2</Name>
<Centroid>
<Location>
<Longitude>-3.4430991462</Longitude>
<Latitude>51.715057474</Latitude>
<gml:pos srsName="UKOS">300400 202800</gml:pos>
</Location>
</Centroid>
<placeTypes>
<TypeOfPlaceRef ref="napt:StopType@PLT"/>
</placeTypes>
<TransportMode>rail</TransportMode>
<QuayType>railPlatform</QuayType>
</Quay>
</quays>
</StopPlace>
</PassengerStopAssignment>
<PassengerStopAssignment responsibilitySetRef="nptgAdminArea:110" version="1" id="naptStop:9100ABDO" order="1">
<ScheduledStopPoint responsibilitySetRef="nptgAdminArea:110" created="2006-09-08T14:30:00" changed="2007-09-26T13:00:00" modification="revise" version="1" status="active" id="naptStop:9100ABDO">
<Name>Aberdour Rail Station</Name>
<stopAreas>
<StopAreaRef created="2006-12-08T00:00:00" changed="2006-12-08T00:00:00" modification="new" version="0" ref="naptStop:910GABDO"/>
</stopAreas>
<ShortStopCode>AUR</ShortStopCode>
<PublicCode type="napt:TIPLOC">ABDO</PublicCode>
</ScheduledStopPoint>
<StopPlace responsibilitySetRef="nptgAdminArea:110" version="1" id="naptStop:9100ABDO">
<Name>Aberdour Rail Station</Name>
<Centroid>
<Location>
<Longitude>-3.30056001734</Longitude>
<Latitude>56.05459191149</Latitude>
<gml:pos srsName="UKOS">319100 685400</gml:pos>
</Location>
</Centroid>
<placeTypes>
<TypeOfPlaceRef ref="napt:StopType@RLY"/>
</placeTypes>
<PostalAddress version="1" id="naptStop:9100ABDO@address">
<CountryRef ref="uk" refPrincipality="iso3166-2:GB-SCT"/>
<BuildingName>Aberdour station</BuildingName>
<Street>Station Place</Street>
<Town>Aberdour</Town>
<PostCode> KY3 0SN</PostCode>
<Province>Fife,</Province>
</PostalAddress>
<TopographicPlaceRef ref="nptgLocality:ES000016" versionRef="EXTERNAL">Aberdour</TopographicPlaceRef>
<AtCentre>true</AtCentre>
<entrances>
<StopPlaceEntrance id="naptStop:9100ABDO0A" version="1">
<Name>Aberdour Rail Station - Main Entrance</Name>
<Centroid>
<Location>
<Longitude>-3.4430991462</Longitude>
<Latitude>51.715057474</Latitude>
<gml:pos srsName="UKOS">300400 202800</gml:pos>
</Location>
</Centroid>
<placeTypes>
<TypeOfPlaceRef versionRef="EXTERNAL" ref="napt:StopType@RSE"/>
</placeTypes>
<RoadAddress version="any" id="naptStop:9100ABDO0A">
<RoadName>Station Road Avenue</RoadName>
<BearingCompass>SE</BearingCompass>
</RoadAddress>
</StopPlaceEntrance>
</entrances>
<TransportMode>rail</TransportMode>
<tariffZones>
<TariffZoneRef created="2009-10-29T16:30:45" changed="2009-10-29T16:30:45" modification="new" versionRef="0" ref="nptg:TariffZone:ABDO"/>
</tariffZones>
<StopPlaceType>railStation</StopPlaceType>
<mainTerminusForPlaces>
<TopographicPlaceRef created="2004-01-13T00:00:00" changed="2004-01-13T00:00:00" versionRef="0" ref="ES000016"/>
<TopographicPlaceRef created="2004-01-13T00:00:00" changed="2004-01-13T00:00:00" versionRef="0" ref="ES000892"/>
<TopographicPlaceRef created="2004-01-13T00:00:00" changed="2004-01-13T00:00:00" versionRef="0" ref="N0067072"/>
<TopographicPlaceRef created="2004-01-13T00:00:00" changed="2004-01-13T00:00:00" versionRef="0" ref="N0071887"/>
<TopographicPlaceRef created="2004-01-13T00:00:00" changed="2004-01-13T00:00:00" versionRef="0" ref="N0071892"/>
<TopographicPlaceRef created="2004-01-13T00:00:00" changed="2004-01-13T00:00:00" versionRef="0" ref="N0071897"/>
<TopographicPlaceRef created="2004-01-13T00:00:00" changed="2004-01-13T00:00:00" versionRef="0" ref="N0071898"/>
</mainTerminusForPlaces>
<quays>
<Quay id="naptStop:9100ABDO01" version="1">
<Name>Platform 1</Name>
<Centroid>
<Location>
<Longitude>-3.4430991462</Longitude>
<Latitude>51.715057474</Latitude>
<gml:pos srsName="UKOS">300400 202800</gml:pos>
</Location>
</Centroid>
<placeTypes>
<TypeOfPlaceRef ref="napt:StopType@PLT"/>
</placeTypes>
<TransportMode>rail</TransportMode>
<QuayType>railPlatform</QuayType>
</Quay>
<Quay id="naptStop:9100ABDO02" version="1">
<Name>Platform 2</Name>
<Centroid>
<Location>
<Longitude>-3.4430991462</Longitude>
<Latitude>51.715057474</Latitude>
<gml:pos srsName="UKOS">300400 202800</gml:pos>
</Location>
</Centroid>
<placeTypes>
<TypeOfPlaceRef ref="napt:StopType@PLT"/>
</placeTypes>
<TransportMode>rail</TransportMode>
<QuayType>railPlatform</QuayType>
</Quay>
</quays>
</StopPlace>
</PassengerStopAssignment>
</stopAssignments>
</ServiceFrame>
<!-- === NaPTAN Common fixed definitions === -->
</frames>
</CompositeFrame>
</dataObjects>
</PublicationDelivery>