Schema NaPTAN.xsd


schema location:  http://www.naptan.org.uk/schema/2.0/NaPTAN.xsd
attribute form default:  unqualified
element form default:  qualified
targetNamespace:  http://www.naptan.org.uk/
 
Elements  Attr. groups 
NaPTAN  DocumentMetadataGroup 


schema location:  http://www.naptan.org.uk/schema/2.0/napt/NaPT_stop-v2-0.xsd
attribute form default:  unqualified
element form default:  qualified
targetNamespace:  http://www.naptan.org.uk/
 
Groups  Complex types  Simple types 
BusStopClassificationGroup  AnnotatedAirRefStructure  AtcoCodeType 
StopIdentifierGroup  AnnotatedCoachRefStructure  BusStopTypeEnumeration 
AnnotatedFerryRefStructure  CleardownCodeType 
AnnotatedMetroRefStructure  CrsCodeType 
AnnotatedRailRefStructure  IataCodeType 
AnnotatedStopPointRefStructure  InterchangeActivityEnumeration 
DescriptorStructure  JourneyStopTypeEnumeration 
FlexibleZoneStructure  MetroCodeType 
HailAndRideSectionStructure  NaptanAlphaPrefixType 
PlaceRefStructure  NaptanCodeType 
StopAreaRefsStructure  NationalCoachCodeType 
StopAreaRefStructure  NationalFerryPortCodeType 
StopAreasStructure  NationalLocationCodeType 
StopAreaStructure  PlateCodeType 
StopAreaVersionedRefStructure  StopActivityEnumeration 
StopAreaWrappedRefStructure  StopAreaCodeType 
StopClassificationStructure  StopAreaTypeEnumeration 
StopPointRefsStructure  StopTypeEnumeration 
StopPointRefStructure  TimingStatusEnumeration 
StopPointsStructure  TiplocCodeType 
StopPointStructure  VehicleAtStopActivityEnumeration 
StopPointVersionedRefStructure 
StopPointWrappedRefStructure 
StopValidityStructure 


schema location:  http://www.w3.org/2001/xml.xsd
attribute form default: 
element form default: 
targetNamespace:  http://www.w3.org/XML/1998/namespace
 
Attr. groups 
specialAttrs 


schema location:  http://www.naptan.org.uk/schema/2.0/napt/NaPT_topography-v2-0.xsd
attribute form default:  unqualified
element form default:  qualified
targetNamespace:  http://www.naptan.org.uk/
 
Complex types  Simple types 
AdministrativeAreaRefsStructure  AdministrativeAreaCodeType 
AdministrativeAreaRefStructure  AtcoAreaCodeType 
AdministrativeAreaVersionedRefStructure  CallCentreCodeType 
NptgLocalityRefsStructure  CountryEnumeration 
NptgLocalityRefStructure  NptgDistrictCodeType 
NptgLocalityVersionedRefStructure  NptgLocalityClassificationEnumeration 
PlusbusZoneRefsStructure  NptgLocalityCodeType 
PlusbusZoneRefStructure  NptgSourceLocalityTypeEnumeration 
PlusbusZoneVersionedRefStructure  PlusbusZoneCodeType 
RegionRefsStructure  RegionCodeType 
RegionRefStructure  RegionShortCodeEnumeration 
RegionVersionedRefStructure  RegionShortCodeType 
UkLanguageEnumeration 


schema location:  http://www.naptan.org.uk/schema/2.0/napt/NaPT_dates-v2-0.xsd
attribute form default:  unqualified
element form default:  qualified
targetNamespace:  http://www.naptan.org.uk/
 
Groups  Complex types  Simple types 
AllBankHolidaysGroup  AnnotatedClosedDateRangeCollectionStructure  DateType 
ChristmasGroup  AnnotatedClosedDateRangeStructure  DayTimeDurationType 
Days5Group  BankHolidaysStructure  DurationType 
Days5NotGroup  ClosedDateRangeCollectionStructure  EndDateType 
Days6Group  ClosedDateRangeStructure  StartDateType 
DaysGroup  ClosedTimeRangeStructure 
DisplacementHolidaysGroup  DailyOpeningHoursStructure 
EarlyRunOffGroup  DateCollectionStructure 
HolidayMondaysGroup  DatePatternStructure 
DayAndTimeAvailabilityStructure 
DayFrequencyStructure 
DaysOfOperationStructure 
FrequencyStructure 
HalfOpenDateRangeStructure 
HalfOpenDateTimeRangeStructure 
HalfOpenTimeRangeStructure 
OpenDateRangeStructure 


schema location:  http://www.naptan.org.uk/schema/2.0/napt/NaPT_geographic-v2-0.xsd
attribute form default:  unqualified
element form default:  qualified
targetNamespace:  http://www.naptan.org.uk/
 
Elements  Groups  Complex types  Simple types 
LocationSystem  GridGroup  BearingStructure  AbsoluteBearingType 
WgsGroup  BoundingBoxStructure  CompassBearingEnumeration 
GridPositionStructure  DistanceType 
LineStringStructure  EastingType 
LocationStructure  FeatureTypeEnumeration 
MapStructure  LatitudeType 
MapSystemReferenceStructure  LocationGridTypeEnumeration 
WGS84PositionStructure  LocationSystemEnumeration 
LongitudeType 
MappingSystemEnumeration 
NorthingType 
PrecisionEnumeration 
RelativeBearingEnumeration 


schema location:  http://www.naptan.org.uk/schema/2.0/napt/NaPT_organisations-v2-0.xsd
attribute form default:  unqualified
element form default:  qualified
targetNamespace:  http://www.naptan.org.uk/
 
Complex types  Simple types 
OperatorRefsStructure  NationalOperatorCodeType 
OperatorRefStructure  OperatorCodeType 
ServicedOrganisationCodeType 


schema location:  http://www.naptan.org.uk/schema/2.0/napt/NaPT_common-v2-0.xsd
attribute form default:  unqualified
element form default:  qualified
targetNamespace:  http://www.naptan.org.uk/
 
Complex types  Simple types  Attr. groups 
ModesStructure  AllModesEnumeration  DocumentModificationDetailsGroup 
ContinuousModesEnumeration  ModificationDetailsGroup 
DeltaModificationEnumeration  RequiredModificationDetailsGroup 
ModificationEnumeration 
RevisionNumberType 
StatusEnumeration 
VehicleModesEnumeration 


schema location:  http://www.naptan.org.uk/schema/2.0/napt/NaPT_types-v2-0.xsd
attribute form default:  unqualified
element form default:  qualified
targetNamespace:  http://www.naptan.org.uk/
 
Complex types  Simple types 
FullPersonNameStructure  EmailAddressType 
NaturalLanguagePlaceNameStructure  EmptyType 
NaturalLanguageStringStructure  IdType 
TelephoneContactStructure  IpAddressType 
PopulatedPlaceNameType 
PopulatedStringType 
PrivateCodeType 


schema location:  http://www.naptan.org.uk/schema/2.0/apd/CommonSimpleTypes-v1-3.xsd
attribute form default:  unqualified
element form default:  qualified
targetNamespace:  http://www.govtalk.gov.uk/core
 
Simple types 
DateType 
EmailAddressType 
LanguageType 
MaritalStatusType 
PopulatedStringType 
RestrictedStringType 
TelCountryCodeType 
TelephoneExtensionType 
TelephoneNumberType 
WorkHomeType 
YesNoType 


element NaPTAN
diagram
namespace http://www.naptan.org.uk/
properties
content complex
children StopPoints StopAreas
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang        
documentation 
Attempting to install the relevant ISO 2- and 3-letter
         codes as the enumerated possible values is probably never
         going to be a realistic possibility.  See
         RFC 3066 at http://www.ietf.org/rfc/rfc3066.txt and the IANA registry
         at http://www.iana.org/assignments/lang-tag-apps.htm for
         further information.
CreationDateTime  xsd:dateTimerequired      
ModificationDateTime  xsd:dateTimerequired      
Modification  ModificationEnumerationrequired      
RevisionNumber  RevisionNumberTyperequired      
FileName  xsd:stringrequired      
documentation 
The name of the file containing the instance document.
SchemaVersion  xsd:NMTOKENrequired    2.0  
LocationSystem  LocationSystemEnumerationoptional  Grid    
identity constraints
  Name  Refer  Selector  Field(s)  
key  StopPointKey    .//napt:StopPoints/napt:StopPoint  napt:AtcoCode  
keyref  StopPointKeyRef  StopPointKey  .//napt:StopPointRef  .  
unique  StopPointPrivateKey    .//napt:StopPoints/napt:StopPoint  napt:PrivateCode  
key  StopAreaKey    .//napt:StopAreas/napt:StopArea  napt:StopAreaCode  
unique  StopAreaPrivateKey    .//napt:StopAreas/napt:StopArea  napt:PrivateCode  
annotation
documentation 
Schema for exchanging National Public Transport Access Node data.
@xml:lang
@CreationDateTime,
@ModificationDateTime,
@Modification,
@RevisionNumber,
@Status,
@FileName,
@SchemaVersion,
@LocationSystem
source
<xsd:element name="NaPTAN">
  <xsd:annotation>
    <xsd:documentation>Schema for exchanging National Public Transport Access Node data.
@xml:lang
@CreationDateTime,
@ModificationDateTime,
@Modification,
@RevisionNumber,
@Status,
@FileName,
@SchemaVersion,
@LocationSystem</xsd:documentation>
  </xsd:annotation>
  <xsd:complexType>
    <xsd:sequence>
      <xsd:element name="StopPoints" type="StopPointsStructure" minOccurs="0">
        <xsd:annotation>
          <xsd:documentation>Definitions of districts.</xsd:documentation>
        </xsd:annotation>
      </xsd:element>
      <xsd:element name="StopAreas" type="StopAreasStructure" minOccurs="0">
        <xsd:annotation>
          <xsd:documentation>Definitions of stop areas.</xsd:documentation>
        </xsd:annotation>
      </xsd:element>
    </xsd:sequence>
    <xsd:attributeGroup ref="DocumentModificationDetailsGroup"/>
    <xsd:attribute name="SchemaVersion" type="xsd:NMTOKEN" use="required" fixed="2.0"/>
    <xsd:attribute name="LocationSystem" type="LocationSystemEnumeration" use="optional" default="Grid"/>
  </xsd:complexType>
  <xsd:key name="StopPointKey">
    <xsd:selector xpath=".//napt:StopPoints/napt:StopPoint"/>
    <xsd:field xpath="napt:AtcoCode"/>
  </xsd:key>
  <xsd:keyref name="StopPointKeyRef" refer="StopPointKey">
    <xsd:selector xpath=".//napt:StopPointRef"/>
    <xsd:field xpath="."/>
  </xsd:keyref>
  <xsd:unique name="StopPointPrivateKey">
    <xsd:selector xpath=".//napt:StopPoints/napt:StopPoint"/>
    <xsd:field xpath="napt:PrivateCode"/>
  </xsd:unique>
  <xsd:key name="StopAreaKey">
    <xsd:selector xpath=".//napt:StopAreas/napt:StopArea"/>
    <xsd:field xpath="napt:StopAreaCode"/>
  </xsd:key>
  <xsd:unique name="StopAreaPrivateKey">
    <xsd:selector xpath=".//napt:StopAreas/napt:StopArea"/>
    <xsd:field xpath="napt:PrivateCode"/>
  </xsd:unique>
</xsd:element>

element NaPTAN/StopPoints
diagram
namespace http://www.naptan.org.uk/
type StopPointsStructure
properties
isRef 0
content complex
children StopPoint
annotation
documentation 
Definitions of districts.
source
<xsd:element name="StopPoints" type="StopPointsStructure" minOccurs="0">
  <xsd:annotation>
    <xsd:documentation>Definitions of districts.</xsd:documentation>
  </xsd:annotation>
</xsd:element>

element NaPTAN/StopAreas
diagram
namespace http://www.naptan.org.uk/
type StopAreasStructure
properties
isRef 0
content complex
children StopArea
annotation
documentation 
Definitions of stop areas.
source
<xsd:element name="StopAreas" type="StopAreasStructure" minOccurs="0">
  <xsd:annotation>
    <xsd:documentation>Definitions of stop areas.</xsd:documentation>
  </xsd:annotation>
</xsd:element>

attributeGroup DocumentMetadataGroup
namespace http://www.naptan.org.uk/
attributes
Name  Type  Use  Default  Fixed  Annotation
CreationDateTime  xsd:dateTimerequired      
documentation 
Record of the date and time of creation of the NaPTAN file.
FileName  xsd:stringrequired      
documentation 
The name of the TransXChange file.
SchemaVersion  xsd:NMTOKENrequired    2.0  
documentation 
The version of the schema that the NaPTAN instance document was written against. This attribute conforms with e-GIF guidance.
xml:lang        
documentation 
Attempting to install the relevant ISO 2- and 3-letter
         codes as the enumerated possible values is probably never
         going to be a realistic possibility.  See
         RFC 3066 at http://www.ietf.org/rfc/rfc3066.txt and the IANA registry
         at http://www.iana.org/assignments/lang-tag-apps.htm for
         further information.
annotation
documentation 
Grouping for document change metadata.
source
<xsd:attributeGroup name="DocumentMetadataGroup">
  <xsd:annotation>
    <xsd:documentation>Grouping for document change metadata.</xsd:documentation>
  </xsd:annotation>
  <xsd:attribute name="CreationDateTime" type="xsd:dateTime" use="required">
    <xsd:annotation>
      <xsd:documentation>Record of the date and time of creation of the NaPTAN file.</xsd:documentation>
    </xsd:annotation>
  </xsd:attribute>
  <xsd:attribute name="FileName" type="xsd:string" use="required">
    <xsd:annotation>
      <xsd:documentation>The name of the TransXChange file.</xsd:documentation>
    </xsd:annotation>
  </xsd:attribute>
  <xsd:attribute name="SchemaVersion" type="xsd:NMTOKEN" use="required" fixed="2.0">
    <xsd:annotation>
      <xsd:documentation>The version of the schema that the NaPTAN instance document was written against. This attribute conforms with e-GIF guidance.</xsd:documentation>
    </xsd:annotation>
  </xsd:attribute>
  <xsd:attribute ref="xml:lang"/>
</xsd:attributeGroup>

group BusStopClassificationGroup
diagram
namespace http://www.naptan.org.uk/
children MarkedPoint UnmarkedPoint HailAndRideSection FlexibleZone
used by
element StopClassificationStructure/OnStreet/Bus
annotation
documentation 
Type of Bus stop. 
source
<xsd:group name="BusStopClassificationGroup">
  <xsd:annotation>
    <xsd:documentation>Type of Bus stop. </xsd:documentation>
  </xsd:annotation>
  <xsd:choice>
    <xsd:element name="MarkedPoint">
      <xsd:annotation>
        <xsd:documentation>[BCT - MKD] Marked stop - for example a pole or a shelter. Point footprint. </xsd:documentation>
      </xsd:annotation>
      <xsd:complexType>
        <xsd:sequence>
          <xsd:element name="DefaultWaitTime" type="DurationType" minOccurs="0">
            <xsd:annotation>
              <xsd:documentation>Default time to wait at the bus stop as a Duration.</xsd:documentation>
            </xsd:annotation>
          </xsd:element>
          <xsd:element name="Bearing" type="BearingStructure">
            <xsd:annotation>
              <xsd:documentation>Direction along street in which vehicle is pointing when stopped at stopping point. </xsd:documentation>
            </xsd:annotation>
          </xsd:element>
        </xsd:sequence>
      </xsd:complexType>
    </xsd:element>
    <xsd:element name="UnmarkedPoint">
      <xsd:annotation>
        <xsd:documentation>[BCT - CUS] Unmarked stop (or only marked on the road). Point footprint. .</xsd:documentation>
      </xsd:annotation>
      <xsd:complexType>
        <xsd:sequence>
          <xsd:element name="Bearing" type="BearingStructure">
            <xsd:annotation>
              <xsd:documentation>Direction along street in which vehicle is pointing when stopped at stopping point. </xsd:documentation>
            </xsd:annotation>
          </xsd:element>
        </xsd:sequence>
      </xsd:complexType>
    </xsd:element>
    <xsd:element name="HailAndRideSection" type="HailAndRideSectionStructure">
      <xsd:annotation>
        <xsd:documentation>[BCT - HAR] Hail and ride section of route, with a linear footprint.</xsd:documentation>
      </xsd:annotation>
    </xsd:element>
    <xsd:element name="FlexibleZone" type="FlexibleZoneStructure">
      <xsd:annotation>
        <xsd:documentation>[BCT - FLX] Flexible zone, with an area footprint.</xsd:documentation>
      </xsd:annotation>
    </xsd:element>
  </xsd:choice>
</xsd:group>

element BusStopClassificationGroup/MarkedPoint
diagram
namespace http://www.naptan.org.uk/
properties
isRef 0
content complex
children DefaultWaitTime Bearing
annotation
documentation 
[BCT - MKD] Marked stop - for example a pole or a shelter. Point footprint. 
source
<xsd:element name="MarkedPoint">
  <xsd:annotation>
    <xsd:documentation>[BCT - MKD] Marked stop - for example a pole or a shelter. Point footprint. </xsd:documentation>
  </xsd:annotation>
  <xsd:complexType>
    <xsd:sequence>
      <xsd:element name="DefaultWaitTime" type="DurationType" minOccurs="0">
        <xsd:annotation>
          <xsd:documentation>Default time to wait at the bus stop as a Duration.</xsd:documentation>
        </xsd:annotation>
      </xsd:element>
      <xsd:element name="Bearing" type="BearingStructure">
        <xsd:annotation>
          <xsd:documentation>Direction along street in which vehicle is pointing when stopped at stopping point. </xsd:documentation>
        </xsd:annotation>
      </xsd:element>
    </xsd:sequence>
  </xsd:complexType>
</xsd:element>

element BusStopClassificationGroup/MarkedPoint/DefaultWaitTime
diagram
namespace http://www.naptan.org.uk/
type DurationType
properties
isRef 0
content simple
facets
pattern PT.*
annotation
documentation 
Default time to wait at the bus stop as a Duration.
source
<xsd:element name="DefaultWaitTime" type="DurationType" minOccurs="0">
  <xsd:annotation>
    <xsd:documentation>Default time to wait at the bus stop as a Duration.</xsd:documentation>
  </xsd:annotation>
</xsd:element>

element BusStopClassificationGroup/MarkedPoint/Bearing
<