Schema NPTG.xsd


schema location:  http://www.naptan.org.uk/schema/2.0/NPTG.xsd
attribute form default:  unqualified
element form default:  qualified
targetNamespace:  http://www.naptan.org.uk/
 
Elements  Complex types 
NationalPublicTransportGazetteer  AdministrativeAreasStructure 
AdministrativeAreaStructure 
NptgDistrictsStructure 
NptgDistrictStructure 
NptgLocalitiesStructure 
NptgLocalityDescriptorStructure 
NptgLocalityStructure 
PlusbusZonesStructure 
PlusbusZoneStructure 
RegionsStructure 
RegionStructure 


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.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.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/apd/CommonSimpleTypes-v1-3.xsd
attribute form default:  unqualified
element form default:  qualified
targetNamespace:  http://www.cabinetoffice.gov.uk/govtalk.aspx/core
 
Simple types 
DateType 
EmailAddressType 
LanguageType 
MaritalStatusType 
PopulatedStringType 
RestrictedStringType 
TelCountryCodeType 
TelephoneExtensionType 
TelephoneNumberType 
WorkHomeType 
YesNoType 


element NationalPublicTransportGazetteer
diagram
namespace http://www.naptan.org.uk/
properties
content complex
children napt:Regions napt:NptgLocalities napt:PlusbusZones
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  napt:ModificationEnumerationrequired      
RevisionNumber  napt:RevisionNumberTyperequired      
FileName  xsd:stringrequired      
documentation 
The name of the file containing the instance document.
SchemaVersion  xsd:NMTOKENrequired    2.0  
LocationSystem  napt:LocationSystemEnumerationoptional    Grid  
identity constraints
  Name  Refer  Selector  Field(s)  
key  RegionKey    .//napt:Regions/napt:Region  napt:RegionCode  
keyref  RegionKeyRef  RegionKey  .//napt:RegionRef  .  
unique  AdministrativeAreaKey    .//napt:AdministrativeAreas/napt:AdministrativeArea  AdministrativeAreaCode  
unique  NptgDistrict    .//napt:NptgDistricts/napt:NptgDistrict  NptgDistrictCode  
key  NptgLocalityKey    .//napt:NptgLocalities/napt:NptgLocality  napt:NptgLocalityCode  
keyref  NptgLocalityKeyRef  NptgLocalityKey  .//napt:NptgLocalityRef  .  
unique  PlusbusZoneKey    .//napt:PlusbusZones/napt:PlusbusZone  PlusbusZoneCode  
annotation
documentation 
Schema for exchanging National Public Transport Gazetteer data.
@xml:lang
@CreationDateTime,
@ModificationDateTime,
@Modification,
@RevisionNumber,
@Status,
@FileName,
@SchemaVersion,
@LocationSystem
source
<xsd:element name="NationalPublicTransportGazetteer">
  <xsd:annotation>
    <xsd:documentation>Schema for exchanging National Public Transport Gazetteer data.
@xml:lang
@CreationDateTime,
@ModificationDateTime,
@Modification,
@RevisionNumber,
@Status,
@FileName,
@SchemaVersion,
@LocationSystem</xsd:documentation>
  </xsd:annotation>
  <xsd:complexType>
    <xsd:sequence>
      <xsd:element name="Regions" type="RegionsStructure" minOccurs="0">
        <xsd:annotation>
          <xsd:documentation>Definitions of NPTG regions.</xsd:documentation>
        </xsd:annotation>
      </xsd:element>
      <xsd:element name="NptgLocalities" type="NptgLocalitiesStructure" minOccurs="0">
        <xsd:annotation>
          <xsd:documentation>Definitions of NPTG Localities.</xsd:documentation>
        </xsd:annotation>
      </xsd:element>
      <xsd:element name="PlusbusZones" type="PlusbusZonesStructure" minOccurs="0">
        <xsd:annotation>
          <xsd:documentation>definitions of PlusbusZones</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" fixed="Grid"/>
  </xsd:complexType>
  <xsd:key name="RegionKey">
    <xsd:selector xpath=".//napt:Regions/napt:Region"/>
    <xsd:field xpath="napt:RegionCode"/>
  </xsd:key>
  <xsd:keyref name="RegionKeyRef" refer="RegionKey">
    <xsd:selector xpath=".//napt:RegionRef"/>
    <xsd:field xpath="."/>
  </xsd:keyref>
  <xsd:unique name="AdministrativeAreaKey">
    <xsd:selector xpath=".//napt:AdministrativeAreas/napt:AdministrativeArea"/>
    <xsd:field xpath="AdministrativeAreaCode"/>
  </xsd:unique>
  <xsd:unique name="NptgDistrict">
    <xsd:selector xpath=".//napt:NptgDistricts/napt:NptgDistrict"/>
    <xsd:field xpath="NptgDistrictCode"/>
  </xsd:unique>
  <xsd:key name="NptgLocalityKey">
    <xsd:selector xpath=".//napt:NptgLocalities/napt:NptgLocality"/>
    <xsd:field xpath="napt:NptgLocalityCode"/>
  </xsd:key>
  <xsd:keyref name="NptgLocalityKeyRef" refer="NptgLocalityKey">
    <xsd:selector xpath=".//napt:NptgLocalityRef"/>
    <xsd:field xpath="."/>
  </xsd:keyref>
  <xsd:unique name="PlusbusZoneKey">
    <xsd:selector xpath=".//napt:PlusbusZones/napt:PlusbusZone"/>
    <xsd:field xpath="PlusbusZoneCode"/>
  </xsd:unique>
</xsd:element>

element NationalPublicTransportGazetteer/Regions
diagram
namespace http://www.naptan.org.uk/
type napt:RegionsStructure
properties
isRef 0
content complex
children napt:Region
annotation
documentation 
Definitions of NPTG regions.
source
<xsd:element name="Regions" type="RegionsStructure" minOccurs="0">
  <xsd:annotation>
    <xsd:documentation>Definitions of NPTG regions.</xsd:documentation>
  </xsd:annotation>
</xsd:element>

element NationalPublicTransportGazetteer/NptgLocalities
diagram
namespace http://www.naptan.org.uk/
type napt:NptgLocalitiesStructure
properties
isRef 0
content complex
children napt:NptgLocality
annotation
documentation 
Definitions of NPTG Localities.
source
<xsd:element name="NptgLocalities" type="NptgLocalitiesStructure" minOccurs="0">
  <xsd:annotation>
    <xsd:documentation>Definitions of NPTG Localities.</xsd:documentation>
  </xsd:annotation>
</xsd:element>

element NationalPublicTransportGazetteer/PlusbusZones
diagram
namespace http://www.naptan.org.uk/
type napt:PlusbusZonesStructure
properties
isRef 0
content complex
children napt:PlusbusZone
annotation
documentation 
definitions of PlusbusZones
source
<xsd:element name="PlusbusZones" type="PlusbusZonesStructure" minOccurs="0">
  <xsd:annotation>
    <xsd:documentation>definitions of PlusbusZones</xsd:documentation>
  </xsd:annotation>
</xsd:element>

complexType AdministrativeAreasStructure
diagram
namespace http://www.naptan.org.uk/
children napt:AdministrativeArea
used by
element RegionStructure/AdministrativeAreas
annotation
documentation 
Collection of AdministrativeAreas
source
<xsd:complexType name="AdministrativeAreasStructure">
  <xsd:annotation>
    <xsd:documentation>Collection of AdministrativeAreas</xsd:documentation>
  </xsd:annotation>
  <xsd:sequence>
    <xsd:element name="AdministrativeArea" type="AdministrativeAreaStructure" maxOccurs="unbounded">
      <xsd:annotation>
        <xsd:documentation>Administrative area managing data for part of the region.
@CreationDateTime,
@ModificationDateTime,
@Modification,
@RevisionNumber,
@Status.</xsd:documentation>
      </xsd:annotation>
    </xsd:element>
  </xsd:sequence>
</xsd:complexType>

element AdministrativeAreasStructure/AdministrativeArea
diagram
namespace http://www.naptan.org.uk/
type napt:AdministrativeAreaStructure
properties
isRef 0
content complex
children napt:AdministrativeAreaCode napt:AtcoAreaCode napt:Name napt:ShortName napt:NptgDistricts napt:MaximumLengthForShortNames napt:National napt:NaptanPrefixes napt:CleardownRange napt:ContactEmail napt:ContactTelephone
attributes
Name  Type  Use  Default  Fixed  Annotation
CreationDateTime  xsd:dateTimerequired      
ModificationDateTime  xsd:dateTimeoptional      
Modification  napt:ModificationEnumerationoptional  new    
RevisionNumber  napt:RevisionNumberTypeoptional      
Status  napt:StatusEnumerationoptional  active    
annotation
documentation 
Administrative area managing data for part of the region.
@CreationDateTime,
@ModificationDateTime,
@Modification,
@RevisionNumber,
@Status.
source
<xsd:element name="AdministrativeArea" type="AdministrativeAreaStructure" maxOccurs="unbounded">
  <xsd:annotation>
    <xsd:documentation>Administrative area managing data for part of the region.
@CreationDateTime,
@ModificationDateTime,
@Modification,
@RevisionNumber,
@Status.</xsd:documentation>
  </xsd:annotation>
</xsd:element>

complexType AdministrativeAreaStructure
diagram
namespace http://www.naptan.org.uk/
children napt:AdministrativeAreaCode napt:AtcoAreaCode napt:Name napt:ShortName napt:NptgDistricts napt:MaximumLengthForShortNames napt:National napt:NaptanPrefixes napt:CleardownRange napt:ContactEmail napt:ContactTelephone
used by
element AdministrativeAreasStructure/AdministrativeArea
attributes
Name  Type  Use  Default  Fixed  Annotation
CreationDateTime  xsd:dateTimerequired      
ModificationDateTime  xsd:dateTimeoptional      
Modification  napt:ModificationEnumerationoptional  new    
RevisionNumber  napt:RevisionNumberTypeoptional      
Status  napt:StatusEnumerationoptional  active    
annotation
documentation 
An administrative Area
source
<xsd:complexType name="AdministrativeAreaStructure">
  <xsd:annotation>
    <xsd:documentation>An administrative Area</xsd:documentation>
  </xsd:annotation>
  <xsd:sequence>
    <xsd:element name="AdministrativeAreaCode" type="napt:AdministrativeAreaCodeType">
      <xsd:annotation>
        <xsd:documentation>Unique identifier of the area.</xsd:documentation>
      </xsd:annotation>
    </xsd:element>
    <xsd:element name="AtcoAreaCode" type="napt:AtcoAreaCodeType">
      <xsd:annotation>
        <xsd:documentation>ATCO code for area.</xsd:documentation>
      </xsd:annotation>
    </xsd:element>
    <xsd:element name="Name" type="NaturalLanguagePlaceNameStructure">
      <xsd:annotation>
        <xsd:documentation>Name of the area. @lang.</xsd:documentation>
      </xsd:annotation>
    </xsd:element>
    <xsd:element name="ShortName" type="napt:NaturalLanguagePlaceNameStructure" minOccurs="0">
      <xsd:annotation>
        <xsd:documentation>Short name of area, to use as qualifier.</xsd:documentation>
      </xsd:annotation>
    </xsd:element>
    <xsd:element name="NptgDistricts" type="NptgDistrictsStructure" minOccurs="0">
      <xsd:annotation>
        <xsd:documentation>Definitions of districts.</xsd:documentation>
      </xsd:annotation>
    </xsd:element>
    <xsd:element name="MaximumLengthForShortNames" type="xsd:positiveInteger" default="24" minOccurs="0">
      <xsd:annotation>
        <xsd:documentation>Length limit for StopPoint Short CommonName instances for area. </xsd:documentation>
      </xsd:annotation>
    </xsd:element>
    <xsd:element name="National" type="xsd:boolean" default="false" minOccurs="0">
      <xsd:annotation>
        <xsd:documentation>Whether area administers stops nationally, or only  for its own area  (the default). For areas that issue stop types nationally (the '9nn' admin areas) this should be set to true</xsd:documentation>
      </xsd:annotation>
    </xsd:element>
    <xsd:element name="NaptanPrefixes" minOccurs="0">
      <xsd:annotation>
        <xsd:documentation>NaptanCode prefixes associated with area. Prefixes are used for allocating NaptanCode instances for stops so that the location can be determined from SMS requests. Each administrative area has its own resreved prefixes.</xsd:documentation>
      </xsd:annotation>
      <xsd:complexType>
        <xsd:sequence maxOccurs="unbounded">
          <xsd:element name="AlphaPrefix" type="NaptanAlphaPrefixType">
            <xsd:annotation>
              <xsd:documentation>Alpha8 character set prefix associated with area. A given prefix must be unique to one area only.</xsd:documentation>
            </xsd:annotation>
          </xsd:element>
        </xsd:sequence>
      </xsd:complexType>
    </xsd:element>
    <xsd:element name="CleardownRange" minOccurs="0">
      <xsd:annotation>
        <xsd:documentation>NaPTAN StopPoint CleardownCode ranges associated with area. Prefixes are used for allocating. StopPoint CleardownCode. Each area is allocated a unique range. Cleardown codes are only allocated to stops that need them so as to conserve numbers.  </xsd:documentation>
      </xsd:annotation>
      <xsd:complexType>
        <xsd:sequence maxOccurs="unbounded">
          <xsd:element name="CleardownStart" type="xsd:positiveInteger">
            <xsd:annotation>
              <xsd:documentation>Start of CleardownCode prefix associated with area. A given range must be allocated to one area only. </xsd:documentation>
            </xsd:annotation>
          </xsd:element>
          <xsd:element name="CleardownEnd" type="xsd:positiveInteger">
            <xsd:annotation>
              <xsd:documentation>End of CleardownCode range associated with area. A given range must be allocated to one area only. </xsd:documentation>
            </xsd:annotation>
          </xsd:element>
        </xsd:sequence>
      </xsd:complexType>
    </xsd:element>
    <xsd:element name="ContactEmail" type="EmailAddressType" minOccurs="0">
      <xsd:annotation>
        <xsd:documentation>Administrative contact email for data queries. Should be a general address rather than an individual. </xsd:documentation>
      </xsd:annotation>
    </xsd:element>
    <xsd:element name="ContactTelephone" type="TelephoneContactStructure" minOccurs="0">
      <xsd:annotation>
        <xsd:documentation>Administrative contact phone for data queries.</xsd:documentation>
      </xsd:annotation>
    </xsd:element>
  </xsd:sequence>
  <xsd:attributeGroup ref="RequiredModificationDetailsGroup"/>
</xsd:complexType>

element AdministrativeAreaStructure/AdministrativeAreaCode
diagram
namespace http://www.naptan.org.uk/
type napt:AdministrativeAreaCodeType
properties
isRef 0
content simple
facets
pattern [0-9]{3}
annotation
documentation 
Unique identifier of the area.
source
<xsd:element name="AdministrativeAreaCode" type="napt:AdministrativeAreaCodeType">
  <xsd:annotation>
    <xsd:documentation>Unique identifier of the area.</xsd:documentation>
  </xsd:annotation>
</xsd:element>

element AdministrativeAreaStructure/AtcoAreaCode
diagram
namespace http://www.naptan.org.uk/
type napt:AtcoAreaCodeType
properties
isRef 0
content simple
facets
pattern [0-9]{3}
annotation
documentation 
ATCO code for area.
source
<xsd:element name="AtcoAreaCode" type="napt:AtcoAreaCodeType">
  <xsd:annotation>
    <xsd:documentation>ATCO code for area.</xsd:documentation>
  </xsd:annotation>
</xsd:element>

element AdministrativeAreaStructure/Name
diagram
namespace http://www.naptan.org.uk/
type napt:NaturalLanguagePlaceNameStructure
properties
isRef 0
content complex
facets
minLength 1
maxLength 48
pattern [^,\[\]\{\}\?$£%\^=@#;:]+
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.
annotation
documentation 
Name of the area. @lang.
source
<xsd:element name="Name" type="NaturalLanguagePlaceNameStructure">
  <xsd:annotation>
    <xsd:documentation>Name of the area. @lang.</xsd:documentation>
  </xsd:annotation>
</xsd:element>

element AdministrativeAreaStructure/ShortName
diagram
namespace http://www.naptan.org.uk/
type napt:NaturalLanguagePlaceNameStructure
properties
isRef 0
content complex
facets
minLength 1
maxLength 48
pattern [^,\[\]\{\}\?$£%\^=@#;:]+
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.
annotation
documentation 
Short name of area, to use as qualifier.
source
<xsd:element name="ShortName" type="napt:NaturalLanguagePlaceNameStructure" minOccurs="0">
  <xsd:annotation>
    <xsd:documentation>Short name of area, to use as qualifier.</xsd:documentation>
  </xsd:annotation>
</xsd:element>

element AdministrativeAreaStructure/NptgDistricts
diagram
namespace http://www.naptan.org.uk/
type napt:NptgDistrictsStructure
properties
isRef 0
content complex
children napt:NptgDistrict
annotation
documentation 
Definitions of districts.
source
<xsd:element name="NptgDistricts" type="NptgDistrictsStructure" minOccurs="0">
  <xsd:annotation>
    <xsd:documentation>Definitions of districts.</xsd:documentation>
  </xsd:annotation>
</xsd:element>

element AdministrativeAreaStructure/MaximumLengthForShortNames
diagram
namespace http://www.naptan.org.uk/
type xsd:positiveInteger
properties
isRef 0
content simple
default 24
annotation
documentation 
Length limit for StopPoint Short CommonName instances for area. 
source
<xsd:element name="MaximumLengthForShortNames" type="xsd:positiveInteger" default="24" minOccurs="0">
  <xsd:annotation>
    <xsd:documentation>Length limit for StopPoint Short CommonName instances for area. </xsd:documentation>
  </xsd:annotation>
</xsd:element>

element AdministrativeAreaStructure/National
diagram
namespace http://www.naptan.org.uk/
type xsd:boolean
properties
isRef 0
content simple
default false
annotation
documentation 
Whether area administers stops nationally, or only  for its own area  (the default). For areas that issue stop types nationally (the '9nn' admin areas) this should be set to true
source
<xsd:element name="National" type="xsd:boolean" default="false" minOccurs="0">
  <xsd:annotation>
    <xsd:documentation>Whether area administers stops nationally, or only  for its own area  (the default). For areas that issue stop types nationally (the '9nn' admin areas) this should be set to true</xsd:documentation>
  </xsd:annotation>
</xsd:element>

element AdministrativeAreaStructure/NaptanPrefixes
diagram
namespace http://www.naptan.org.uk/
properties
isRef 0
content complex
children napt:AlphaPrefix
annotation
documentation 
NaptanCode prefixes associated with area. Prefixes are used for allocating NaptanCode instances for stops so that the location can be determined from SMS requests. Each administrative area has its own resreved prefixes.
source
<xsd:element name="NaptanPrefixes" minOccurs="0">
  <xsd:annotation>
    <xsd:documentation>NaptanCode prefixes associated with area. Prefixes are used for allocating NaptanCode instances for stops so that the location can be determined from SMS requests. Each administrative area has its own resreved prefixes.</xsd:documentation>
  </xsd:annotation>
  <xsd:complexType>
    <xsd:sequence maxOccurs="unbounded">
      <xsd:element name="AlphaPrefix" type="NaptanAlphaPrefixType">
        <xsd:annotation>
          <xsd:documentation>Alpha8 character set prefix associated with area. A given prefix must be unique to one area only.</xsd:documentation>
        </xsd:annotation>
      </xsd:element>
    </xsd:sequence>
  </xsd:complexType>
</xsd:element>

element AdministrativeAreaStructure/NaptanPrefixes/AlphaPrefix
diagram
namespace http://www.naptan.org.uk/
type napt:NaptanAlphaPrefixType
properties
isRef 0
content simple
facets
length 3
pattern [a-z]{3}
annotation
documentation 
Alpha8 character set prefix associated with area. A given prefix must be unique to one area only.
source
<xsd:element name="AlphaPrefix" type="NaptanAlphaPrefixType">
  <xsd:annotation>
    <xsd:documentation>Alpha8 character set prefix associated with area. A given prefix must be unique to one area only.</xsd:documentation>
  </xsd:annotation>
</xsd:element>

element AdministrativeAreaStructure/CleardownRange
diagram
namespace http://www.naptan.org.uk/
properties
isRef 0
content complex
children napt:CleardownStart napt:CleardownEnd
annotation
documentation 
NaPTAN StopPoint CleardownCode ranges associated with area. Prefixes are used for allocating. StopPoint CleardownCode. Each area is allocated a unique range. Cleardown codes are only allocated to stops that need them so as to conserve numbers.  
source
<xsd:element name="CleardownRange" minOccurs="0">
  <xsd:annotation>
    <xsd:documentation>NaPTAN StopPoint CleardownCode ranges associated with area. Prefixes are used for allocating. StopPoint CleardownCode. Each area is allocated a unique range. Cleardown codes are only allocated to stops that need them so as to conserve numbers.  </xsd:documentation>
  </xsd:annotation>
  <xsd:complexType>
    <xsd:sequence maxOccurs="unbounded">
      <xsd:element name="CleardownStart" type="xsd:positiveInteger">
        <xsd:annotation>
          <xsd:documentation>Start of CleardownCode prefix associated with area. A given range must be allocated to one area only. </xsd:documentation>
        </xsd:annotation>
      </xsd:element>
      <xsd:element name="CleardownEnd" type="xsd:positiveInteger">
        <xsd:annotation>
          <xsd:documentation>End of CleardownCode range associated with area. A given range must be allocated to one area only. </xsd:documentation>
        </xsd:annotation>
      </xsd:element>
    </xsd:sequence>
  </xsd:complexType>
</xsd:element>

element AdministrativeAreaStructure/CleardownRange/CleardownStart
diagram
namespace http://www.naptan.org.uk/
type xsd:positiveInteger
properties
isRef 0
content simple
annotation
documentation 
Start of CleardownCode prefix associated with area. A given range must be allocated to one area only. 
source
<xsd:element name="CleardownStart" type="xsd:positiveInteger">
  <xsd:annotation>
    <xsd:documentation>Start of CleardownCode prefix associated with area. A given range must be allocated to one area only. </xsd:documentation>
  </xsd:annotation>
</xsd:element>

element AdministrativeAreaStructure/CleardownRange/CleardownEnd
diagram
namespace http://www.naptan.org.uk/
type xsd:positiveInteger
properties
isRef 0
content simple
annotation
documentation 
End of CleardownCode range associated with area. A given range must be allocated to one area only. 
source
<xsd:element name="CleardownEnd" type="xsd:positiveInteger">
  <xsd:annotation>
    <xsd:documentation>End of CleardownCode range associated with area. A given range must be allocated to one area only. </xsd:documentation>
  </xsd:annotation>
</xsd:element>

element AdministrativeAreaStructure/ContactEmail
diagram
namespace http://www.naptan.org.uk/
type napt:EmailAddressType
properties
isRef 0
content simple
facets
pattern [0-9A-Za-z'\.\-_]{1,127}@[0-9A-Za-z'\.\-_]{1,127}
annotation
documentation 
Administrative contact email for data queries. Should be a general address rather than an individual. 
source
<xsd:element name="ContactEmail" type="EmailAddressType" minOccurs="0">
  <xsd:annotation>
    <xsd:documentation>Administrative contact email for data queries. Should be a general address rather than an individual. </xsd:documentation>
  </xsd:annotation>
</xsd:element>

element AdministrativeAreaStructure/ContactTelephone
diagram
namespace http://www.naptan.org.uk/
type napt:TelephoneContactStructure
properties
isRef 0
content complex
children TelNationalNumber TelExtensionNumber TelCountryCode
annotation
documentation 
Administrative contact phone for data queries.
source
<xsd:element name="ContactTelephone" type="TelephoneContactStructure" minOccurs="0">
  <xsd:annotation>
    <xsd:documentation>Administrative contact phone for data queries.</xsd:documentation>
  </xsd:annotation>
</xsd:element>

complexType NptgDistrictsStructure
diagram
namespace http://www.naptan.org.uk/
children napt:NptgDistrict
used by
element AdministrativeAreaStructure/NptgDistricts
annotation
documentation 
Collection 
source
<xsd:complexType name="NptgDistrictsStructure">
  <xsd:annotation>
    <xsd:documentation>Collection </xsd:documentation>
  </xsd:annotation>
  <xsd:sequence>
    <xsd:element name="NptgDistrict" type="NptgDistrictStructure" maxOccurs="unbounded">
      <xsd:annotation>
        <xsd:documentation>A district with the UK. Corresponds to a unitary authority. Disjoint area of the UK.
@CreationDateTime,
@ModificationDateTime,
@Modification,
@RevisionNumber,
@Status.</xsd:documentation>
      </xsd:annotation>
    </xsd:element>
  </xsd:sequence>
</xsd:complexType>

element NptgDistrictsStructure/NptgDistrict
diagram
namespace http://www.naptan.org.uk/
type napt:NptgDistrictStructure
properties
isRef 0
content complex
children napt:NptgDistrictCode napt:Name
attributes
Name  Type  Use  Default  Fixed  Annotation
CreationDateTime  xsd:dateTimeoptional      
ModificationDateTime  xsd:dateTimeoptional      
Modification  napt:ModificationEnumerationoptional  new    
RevisionNumber  napt:RevisionNumberTypeoptional      
Status  napt:StatusEnumerationoptional  active    
annotation
documentation 
A district with the UK. Corresponds to a unitary authority. Disjoint area of the UK.
@CreationDateTime,
@ModificationDateTime,
@Modification,
@RevisionNumber,
@Status.
source
<xsd:element name="NptgDistrict" type="NptgDistrictStructure" maxOccurs="unbounded">
  <xsd:annotation>
    <xsd:documentation>A district with the UK. Corresponds to a unitary authority. Disjoint area of the UK.
@CreationDateTime,
@ModificationDateTime,
@Modification,
@RevisionNumber,
@Status.</xsd:documentation>
  </xsd:annotation>
</xsd:element>

complexType NptgDistrictStructure
diagram
namespace http://www.naptan.org.uk/
children napt:NptgDistrictCode napt:Name
used by
element NptgDistrictsStructure/NptgDistrict
attributes
Name  Type  Use  Default  Fixed  Annotation
CreationDateTime  xsd:dateTimeoptional      
ModificationDateTime  xsd:dateTimeoptional      
Modification  napt:ModificationEnumerationoptional  new    
RevisionNumber  napt:RevisionNumberTypeoptional      
Status  napt:StatusEnumerationoptional  active    
annotation
documentation 
NPTG District.
source
<xsd:complexType name="NptgDistrictStructure">
  <xsd:annotation>
    <xsd:documentation>NPTG District.</xsd:documentation>
  </xsd:annotation>
  <xsd:sequence>
    <xsd:element name="NptgDistrictCode" type="NptgDistrictCodeType">
      <xsd:annotation>
        <xsd:documentation>Unique identifier of the district.</xsd:documentation>
      </xsd:annotation>
    </xsd:element>
    <xsd:element name="Name" type="NaturalLanguagePlaceNameStructure">
      <xsd:annotation>
        <xsd:documentation>Name of the district. @lang.</xsd:documentation>
      </xsd:annotation>
    </xsd:element>
  </xsd:sequence>
  <xsd:attributeGroup ref="ModificationDetailsGroup"/>
</xsd:complexType>

element NptgDistrictStructure/NptgDistrictCode
diagram
namespace http://www.naptan.org.uk/
type napt:NptgDistrictCodeType
properties
isRef 0
content simple
annotation
documentation 
Unique identifier of the district.
source
<xsd:element name="NptgDistrictCode" type="NptgDistrictCodeType">
  <xsd:annotation>
    <xsd:documentation>Unique identifier of the district.</xsd:documentation>
  </xsd:annotation>
</xsd:element>

element NptgDistrictStructure/Name
diagram
namespace http://www.naptan.org.uk/
type napt:NaturalLanguagePlaceNameStructure
properties
isRef 0
content complex
facets
minLength 1
maxLength 48
pattern [^,\[\]\{\}\?$£%\^=@#;:]+
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.
annotation
documentation 
Name of the district. @lang.
source
<xsd:element name="Name" type="NaturalLanguagePlaceNameStructure">
  <xsd:annotation>
    <xsd:documentation>Name of the district. @lang.</xsd:documentation>
  </xsd:annotation>
</xsd:element>

complexType NptgLocalitiesStructure
diagram
namespace http://www.naptan.org.uk/
children napt:NptgLocality
used by
element NationalPublicTransportGazetteer/NptgLocalities
annotation
documentation 
Collection of localities.
source
<xsd:complexType name="NptgLocalitiesStructure">
  <xsd:annotation>
    <xsd:documentation>Collection of localities.</xsd:documentation>
  </xsd:annotation>
  <xsd:sequence>
    <xsd:element name="NptgLocality" type="NptgLocalityStructure" maxOccurs="unbounded">
      <xsd:annotation>
        <xsd:documentation>A UK town or settlement that may have public transport services and PTANs. 
@CreationDateTime,
@ModificationDateTime,
@Modification,
@RevisionNumber,
@Status.</xsd:documentation>
      </xsd:annotation>
    </xsd:element>
  </xsd:sequence>
</xsd:complexType>

element NptgLocalitiesStructure/NptgLocality
diagram
namespace http://www.naptan.org.uk/
type napt:NptgLocalityStructure
properties
isRef 0
content complex
children napt:NptgLocalityCode napt:Descriptor napt:AlternativeDescriptors napt:ParentNptgLocalityRef napt:AdministrativeAreaRef napt:NptgDistrictRef napt:AdjacentLocalities napt:SourceLocalityType napt:LocalityClassification napt:Location
attributes
Name  Type  Use  Default  Fixed  Annotation
CreationDateTime  xsd:dateTimerequired      
ModificationDateTime  xsd:dateTimeoptional      
Modification  napt:ModificationEnumerationoptional  new    
RevisionNumber  napt:RevisionNumberTypeoptional      
Status  napt:StatusEnumerationoptional  active    
annotation
documentation 
A UK town or settlement that may have public transport services and PTANs. 
@CreationDateTime,
@ModificationDateTime,
@Modification,
@RevisionNumber,
@Status.
source
<xsd:element name="NptgLocality" type="NptgLocalityStructure" maxOccurs="unbounded">
  <xsd:annotation>
    <xsd:documentation>A UK town or settlement that may have public transport services and PTANs. 
@CreationDateTime,
@ModificationDateTime,
@Modification,
@RevisionNumber,
@Status.</xsd:documentation>
  </xsd:annotation>
</xsd:element>

complexType NptgLocalityDescriptorStructure
diagram
namespace http://www.naptan.org.uk/
children napt:LocalityName napt:ShortName napt:Qualify
used by
elements NptgLocalityStructure/Descriptor NptgLocalityStructure/AlternativeDescriptors/Descriptor
source
<xsd:complexType name="NptgLocalityDescriptorStructure">
  <xsd:sequence>
    <xsd:element name="LocalityName" type="napt:NaturalLanguagePlaceNameStructure">
      <xsd:annotation>
        <xsd:documentation>Name of the locality. @lang.</xsd:documentation>
      </xsd:annotation>
    </xsd:element>
    <xsd:element name="ShortName" type="napt:NaturalLanguagePlaceNameStructure" minOccurs="0">
      <xsd:annotation>
        <xsd:documentation>Short name for locality to be used when qualifying children. @lang.</xsd:documentation>
      </xsd:annotation>
    </xsd:element>
    <xsd:element name="Qualify" minOccurs="0">
      <xsd:annotation>
        <xsd:documentation>Qualifier to use when presenting name to distinguish it from other similarly named elements.</xsd:documentation>
      </xsd:annotation>
      <xsd:complexType>
        <xsd:sequence>
          <xsd:element name="QualifierName" type="napt:NaturalLanguagePlaceNameStructure">
            <xsd:annotation>
              <xsd:documentation>Qualifying name. Place name characters only allowed. @lang </xsd:documentation>
            </xsd:annotation>
          </xsd:element>
          <xsd:choice minOccurs="0">
            <xsd:annotation>
              <xsd:documentation>Qualifier Relationship</xsd:documentation>
            </xsd:annotation>
            <xsd:element name="NptgLocalityRef" type="napt:NptgLocalityRefStructure">
              <xsd:annotation>
                <xsd:documentation>Qualifier corresponds to the short name of the  specified locality.</xsd:documentation>
              </xsd:annotation>
            </xsd:element>
            <xsd:element name="NptgDistrictRef" type="EmptyType">
              <xsd:annotation>
                <xsd:documentation>Qualifier corresponds to the short name of the  specified district.</xsd:documentation>
              </xsd:annotation>
            </xsd:element>
          </xsd:choice>
        </xsd:sequence>
      </xsd:complexType>
    </xsd:element>
  </xsd:sequence>
</xsd:complexType>

element NptgLocalityDescriptorStructure/LocalityName
diagram
namespace http://www.naptan.org.uk/
type napt:NaturalLanguagePlaceNameStructure
properties
isRef 0
content complex
facets
minLength 1
maxLength 48
pattern [^,\[\]\{\}\?$£%\^=@#;:]+
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.
annotation
documentation 
Name of the locality. @lang.
source
<xsd:element name="LocalityName" type="napt:NaturalLanguagePlaceNameStructure">
  <xsd:annotation>
    <xsd:documentation>Name of the locality. @lang.</xsd:documentation>
  </xsd:annotation>
</xsd:element>

element NptgLocalityDescriptorStructure/ShortName
diagram
namespace http://www.naptan.org.uk/
type napt:NaturalLanguagePlaceNameStructure
properties
isRef 0
content complex
facets
minLength 1
maxLength 48
pattern [^,\[\]\{\}\?$£%\^=@#;:]+
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.
annotation
documentation 
Short name for locality to be used when qualifying children. @lang.
source
<xsd:element name="ShortName" type="napt:NaturalLanguagePlaceNameStructure" minOccurs="0">
  <xsd:annotation>
    <xsd:documentation>Short name for locality to be used when qualifying children. @lang.</xsd:documentation>
  </xsd:annotation>
</xsd:element>

element NptgLocalityDescriptorStructure/Qualify
diagram
namespace http://www.naptan.org.uk/
properties
isRef 0
content complex
children napt:QualifierName napt:NptgLocalityRef napt:NptgDistrictRef
annotation
documentation 
Qualifier to use when presenting name to distinguish it from other similarly named elements.
source
<xsd:element name="Qualify" minOccurs="0">
  <xsd:annotation>
    <xsd:documentation>Qualifier to use when presenting name to distinguish it from other similarly named elements.</xsd:documentation>
  </xsd:annotation>
  <xsd:complexType>
    <xsd:sequence>
      <xsd:element name="QualifierName" type="napt:NaturalLanguagePlaceNameStructure">
        <xsd:annotation>
          <xsd:documentation>Qualifying name. Place name characters only allowed. @lang </xsd:documentation>
        </xsd:annotation>
      </xsd:element>
      <xsd:choice minOccurs="0">
        <xsd:annotation>
          <xsd:documentation>Qualifier Relationship</xsd:documentation>
        </xsd:annotation>
        <xsd:element name="NptgLocalityRef" type="napt:NptgLocalityRefStructure">
          <xsd:annotation>
            <xsd:documentation>Qualifier corresponds to the short name of the  specified locality.</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="NptgDistrictRef" type="EmptyType">
          <xsd:annotation>
            <xsd:documentation>Qualifier corresponds to the short name of the  specified district.</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
      </xsd:choice>
    </xsd:sequence>
  </xsd:complexType>
</xsd:element>

element NptgLocalityDescriptorStructure/Qualify/QualifierName
diagram
namespace http://www.naptan.org.uk/
type napt:NaturalLanguagePlaceNameStructure
properties
isRef 0
content complex
facets
minLength 1
maxLength 48
pattern [^,\[\]\{\}\?$£%\^=@#;:]+
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.
annotation
documentation 
Qualifying name. Place name characters only allowed. @lang 
source
<xsd:element name="QualifierName" type="napt:NaturalLanguagePlaceNameStructure">
  <xsd:annotation>
    <xsd:documentation>Qualifying name. Place name characters only allowed. @lang </xsd:documentation>
  </xsd:annotation>
</xsd:element>

element NptgLocalityDescriptorStructure/Qualify/NptgLocalityRef
diagram
namespace http://www.naptan.org.uk/
type napt:NptgLocalityRefStructure
properties
isRef 0
content complex
facets
pattern [EN][0S][0-9]{6}
annotation
documentation 
Qualifier corresponds to the short name of the  specified locality.
source
<xsd:element name="NptgLocalityRef" type="napt:NptgLocalityRefStructure">
  <xsd:annotation>
    <xsd:documentation>Qualifier corresponds to the short name of the  specified locality.</xsd:documentation>
  </xsd:annotation>
</xsd:element>

element NptgLocalityDescriptorStructure/Qualify/NptgDistrictRef
diagram
namespace http://www.naptan.org.uk/
type napt:EmptyType
properties
isRef 0
content simple
facets
enumeration 
annotation
documentation 
Qualifier corresponds to the short name of the  specified district.
source
<xsd:element name="NptgDistrictRef" type="EmptyType">
  <xsd:annotation>
    <xsd:documentation>Qualifier corresponds to the short name of the  specified district.</xsd:documentation>
  </xsd:annotation>
</xsd:element>

complexType NptgLocalityStructure
diagram
namespace http://www.naptan.org.uk/
children napt:NptgLocalityCode napt:Descriptor napt:AlternativeDescriptors napt:ParentNptgLocalityRef napt:AdministrativeAreaRef napt:NptgDistrictRef napt:AdjacentLocalities napt:SourceLocalityType napt:LocalityClassification napt:Location
used by
element NptgLocalitiesStructure/NptgLocality
attributes
Name  Type  Use  Default  Fixed  Annotation
CreationDateTime  xsd:dateTimerequired      
ModificationDateTime  xsd:dateTimeoptional      
Modification  napt:ModificationEnumerationoptional  new    
RevisionNumber  napt:RevisionNumberTypeoptional      
Status  napt:StatusEnumerationoptional  active    
annotation
documentation 
NPTG Locality.
source
<xsd:complexType name="NptgLocalityStructure">
  <xsd:annotation>
    <xsd:documentation>NPTG Locality.</xsd:documentation>
  </xsd:annotation>
  <xsd:sequence>
    <xsd:element name="NptgLocalityCode" type="NptgLocalityCodeType">
      <xsd:annotation>
        <xsd:documentation>Unique identifier of the locality.</xsd:documentation>
      </xsd:annotation>
    </xsd:element>
    <xsd:element name="Descriptor" type="NptgLocalityDescriptorStructure">
      <xsd:annotation>
        <xsd:documentation>Structured text descriptor of locality</xsd:documentation>
      </xsd:annotation>
    </xsd:element>
    <xsd:element name="AlternativeDescriptors" minOccurs="0">
      <xsd:annotation>
        <xsd:documentation>Collection of Aliases.</xsd:documentation>
      </xsd:annotation>
      <xsd:complexType>
        <xsd:sequence>
          <xsd:element name="Descriptor" maxOccurs="unbounded">
            <xsd:annotation>
              <xsd:documentation>Alternative name for the locality. @lang.</xsd:documentation>
            </xsd:annotation>
            <xsd:complexType>
              <xsd:complexContent>
                <xsd:extension base="NptgLocalityDescriptorStructure">
                  <xsd:attributeGroup ref="napt:ModificationDetailsGroup"/>
                </xsd:extension>
              </xsd:complexContent>
            </xsd:complexType>
          </xsd:element>
        </xsd:sequence>
        <xsd:attributeGroup ref="ModificationDetailsGroup"/>
      </xsd:complexType>
    </xsd:element>
    <xsd:element name="ParentNptgLocalityRef" type="NptgLocalityVersionedRefStructure" minOccurs="0">
      <xsd:annotation>
        <xsd:documentation>Parent locality. Reference to another locality that contains the child locality completely. Must not be cyclic.</xsd:documentation>
      </xsd:annotation>
    </xsd:element>
    <xsd:element name="AdministrativeAreaRef" type="AdministrativeAreaCodeType">
      <xsd:annotation>
        <xsd:documentation>Administrative area that manages the locality.</xsd:documentation>
      </xsd:annotation>
    </xsd:element>
    <xsd:element name="NptgDistrictRef" type="NptgDistrictCodeType" minOccurs="0">
      <xsd:annotation>
        <xsd:documentation>District to which locality belongs.</xsd:documentation>
      </xsd:annotation>
    </xsd:element>
    <xsd:element name="AdjacentLocalities" type="napt:NptgLocalityRefsStructure" minOccurs="0">
      <xsd:annotation>
        <xsd:documentation>Localities which are adjacent to the locality.  or which partially overlay. NB this should not be used for containment. Instead the ParentRef should be used for localities which completely contain the locality, and on child localities for localities completely contained in the locality. </xsd:documentation>
      </xsd:annotation>
    </xsd:element>
    <xsd:element name="SourceLocalityType" type="NptgSourceLocalityTypeEnumeration">
      <xsd:annotation>
        <xsd:documentation>Classification of the Locality in the original source material used to compile the gazetteer. Enumerated value.</xsd:documentation>
      </xsd:annotation>
    </xsd:element>
    <xsd:element name="LocalityClassification" type="NptgLocalityClassificationEnumeration" minOccurs="0">
      <xsd:annotation>
        <xsd:documentation>Classification of the Locality as a settlement. Enumerated value.</xsd:documentation>
      </xsd:annotation>
    </xsd:element>
    <xsd:element name="Location" type="LocationStructure">
      <xsd:annotation>
        <xsd:documentation>Spatial coordinates of the locality.</xsd:documentation>
      </xsd:annotation>
    </xsd:element>
  </xsd:sequence>
  <xsd:attributeGroup ref="RequiredModificationDetailsGroup"/>
</xsd:complexType>

element NptgLocalityStructure/NptgLocalityCode
diagram
namespace http://www.naptan.org.uk/
type napt:NptgLocalityCodeType
properties
isRef 0
content simple
facets
pattern [EN][0S][0-9]{6}
annotation
documentation 
Unique identifier of the locality.
source
<xsd:element name="NptgLocalityCode" type="NptgLocalityCodeType">
  <xsd:annotation>
    <xsd:documentation>Unique identifier of the locality.</xsd:documentation>
  </xsd:annotation>
</xsd:element>

element NptgLocalityStructure/Descriptor
diagram
namespace http://www.naptan.org.uk/
type napt:NptgLocalityDescriptorStructure
properties
isRef 0
content complex
children napt:LocalityName napt:ShortName napt:Qualify
annotation
documentation 
Structured text descriptor of locality
source
<xsd:element name="Descriptor" type="NptgLocalityDescriptorStructure">
  <xsd:annotation>
    <xsd:documentation>Structured text descriptor of locality</xsd:documentation>
  </xsd:annotation>
</xsd:element>

element NptgLocalityStructure/AlternativeDescriptors
diagram
namespace http://www.naptan.org.uk/
properties
isRef 0
content complex
children napt:Descriptor
attributes
Name  Type  Use  Default  Fixed  Annotation
CreationDateTime  xsd:dateTimeoptional      
ModificationDateTime  xsd:dateTimeoptional      
Modification  napt:ModificationEnumerationoptional  new    
RevisionNumber  napt:RevisionNumberTypeoptional      
Status  napt:StatusEnumerationoptional  active    
annotation
documentation 
Collection of Aliases.
source
<xsd:element name="AlternativeDescriptors" minOccurs="0">
  <xsd:annotation>
    <xsd:documentation>Collection of Aliases.</xsd:documentation>
  </xsd:annotation>
  <xsd:complexType>
    <xsd:sequence>
      <xsd:element name="Descriptor" maxOccurs="unbounded">
        <xsd:annotation>
          <xsd:documentation>Alternative name for the locality. @lang.</xsd:documentation>
        </xsd:annotation>
        <xsd:complexType>
          <xsd:complexContent>
            <xsd:extension base="NptgLocalityDescriptorStructure">
              <xsd:attributeGroup ref="napt:ModificationDetailsGroup"/>
            </xsd:extension>
          </xsd:complexContent>
        </xsd:complexType>
      </xsd:element>
    </xsd:sequence>
    <xsd:attributeGroup ref="ModificationDetailsGroup"/>
  </xsd:complexType>
</xsd:element>

element NptgLocalityStructure/AlternativeDescriptors/Descriptor
diagram
namespace http://www.naptan.org.uk/
type extension of napt:NptgLocalityDescriptorStructure
properties
isRef 0
content complex
children napt:LocalityName napt:ShortName napt:Qualify
attributes
Name  Type  Use  Default  Fixed  Annotation
CreationDateTime  xsd:dateTimeoptional      
ModificationDateTime  xsd:dateTimeoptional      
Modification  napt:ModificationEnumerationoptional  new    
RevisionNumber  napt:RevisionNumberTypeoptional      
Status  napt:StatusEnumerationoptional  active    
annotation
documentation 
Alternative name for the locality. @lang.
source
<xsd:element name="Descriptor" maxOccurs="unbounded">
  <xsd:annotation>
    <xsd:documentation>Alternative name for the locality. @lang.</xsd:documentation>
  </xsd:annotation>
  <xsd:complexType>
    <xsd:complexContent>
      <xsd:extension base="NptgLocalityDescriptorStructure">
        <xsd:attributeGroup ref="napt:ModificationDetailsGroup"/>
      </xsd:extension>
    </xsd:complexContent>
  </xsd:complexType>
</xsd:element>

element NptgLocalityStructure/ParentNptgLocalityRef
diagram
namespace http://www.naptan.org.uk/
type napt:NptgLocalityVersionedRefStructure
properties
isRef 0
content complex
facets
pattern [EN][0S][0-9]{6}
attributes
Name  Type  Use  Default  Fixed  Annotation
CreationDateTime  xsd:dateTimeoptional      
ModificationDateTime  xsd:dateTimeoptional      
Modification  napt:ModificationEnumerationoptional  new    
RevisionNumber  napt:RevisionNumberTypeoptional      
Status  napt:StatusEnumerationoptional  active    
annotation
documentation 
Parent locality. Reference to another locality that contains the child locality completely. Must not be cyclic.
source
<xsd:element name="ParentNptgLocalityRef" type="NptgLocalityVersionedRefStructure" minOccurs="0">
  <xsd:annotation>
    <xsd:documentation>Parent locality. Reference to another locality that contains the child locality completely. Must not be cyclic.</xsd:documentation>
  </xsd:annotation>
</xsd:element>

element NptgLocalityStructure/AdministrativeAreaRef
diagram
namespace http://www.naptan.org.uk/
type napt:AdministrativeAreaCodeType
properties
isRef 0
content simple
facets
pattern [0-9]{3}
annotation
documentation 
Administrative area that manages the locality.
source
<xsd:element name="AdministrativeAreaRef" type="AdministrativeAreaCodeType">
  <xsd:annotation>
    <xsd:documentation>Administrative area that manages the locality.</xsd:documentation>
  </xsd:annotation>
</xsd:element>

element NptgLocalityStructure/NptgDistrictRef
diagram
namespace http://www.naptan.org.uk/
type napt:NptgDistrictCodeType
properties
isRef 0
content simple
annotation
documentation 
District to which locality belongs.
source
<xsd:element name="NptgDistrictRef" type="NptgDistrictCodeType" minOccurs="0">
  <xsd:annotation>
    <xsd:documentation>District to which locality belongs.</xsd:documentation>
  </xsd:annotation>
</xsd:element>

element NptgLocalityStructure/AdjacentLocalities
diagram
namespace http://www.naptan.org.uk/
type napt:NptgLocalityRefsStructure
properties
isRef 0
content complex
children NptgLocalityRef
annotation
documentation 
Localities which are adjacent to the locality.  or which partially overlay. NB this should not be used for containment. Instead the ParentRef should be used for localities which completely contain the locality, and on child localities for localities completely contained in the locality. 
source
<xsd:element name="AdjacentLocalities" type="napt:NptgLocalityRefsStructure" minOccurs="0">
  <xsd:annotation>
    <xsd:documentation>Localities which are adjacent to the locality.  or which partially overlay. NB this should not be used for containment. Instead the ParentRef should be used for localities which completely contain the locality, and on child localities for localities completely contained in the locality. </xsd:documentation>
  </xsd:annotation>
</xsd:element>

element NptgLocalityStructure/SourceLocalityType
diagram
namespace http://www.naptan.org.uk/
type napt:NptgSourceLocalityTypeEnumeration
properties
isRef 0
content simple
facets
enumeration U
enumeration US
enumeration Pa
enumeration Co
enumeration Lo
enumeration DWD
enumeration LOC
enumeration PAR
enumeration RED
enumeration ISL
enumeration Add
annotation
documentation 
Classification of the Locality in the original source material used to compile the gazetteer. Enumerated value.
source
<xsd:element name="SourceLocalityType" type="NptgSourceLocalityTypeEnumeration">
  <xsd:annotation>
    <xsd:documentation>Classification of the Locality in the original source material used to compile the gazetteer. Enumerated value.</xsd:documentation>
  </xsd:annotation>
</xsd:element>

element NptgLocalityStructure/LocalityClassification
diagram
namespace http://www.naptan.org.uk/
type napt:NptgLocalityClassificationEnumeration
properties
isRef 0
content simple
facets
enumeration city
enumeration suburb
enumeration town
enumeration village
enumeration hamlet
enumeration urbanCentre
enumeration placeOfInterest
enumeration other
enumeration unrecorded
annotation
documentation 
Classification of the Locality as a settlement. Enumerated value.
source
<xsd:element name="LocalityClassification" type="NptgLocalityClassificationEnumeration" minOccurs="0">
  <xsd:annotation>
    <xsd:documentation>Classification of the Locality as a settlement. Enumerated value.</xsd:documentation>
  </xsd:annotation>
</xsd:element>

element NptgLocalityStructure/Location
diagram
namespace http://www.naptan.org.uk/
type napt:LocationStructure
properties
isRef 0
content complex
children GridType Easting Northing Longitude Latitude Translation
attributes
Name  Type  Use  Default  Fixed  Annotation
Precision  napt:PrecisionEnumerationoptional  1km    
documentation 
Precision of geocoding
id  xsd:NMTOKENoptional      
annotation
documentation 
Spatial coordinates of the locality.
source
<xsd:element name="Location" type="LocationStructure">
  <xsd:annotation>
    <xsd:documentation>Spatial coordinates of the locality.</xsd:documentation>
  </xsd:annotation>
</xsd:element>

complexType PlusbusZonesStructure
diagram
namespace http://www.naptan.org.uk/
children napt:PlusbusZone
used by
element NationalPublicTransportGazetteer/PlusbusZones
annotation
documentation 
Collection of Plusbus Zones
source
<xsd:complexType name="PlusbusZonesStructure">
  <xsd:annotation>
    <xsd:documentation>Collection of Plusbus Zones</xsd:documentation>
  </xsd:annotation>
  <xsd:sequence>
    <xsd:element name="PlusbusZone" type="PlusbusZoneStructure" maxOccurs="unbounded">
      <xsd:annotation>
        <xsd:documentation>A PlusbusZone region covering a part of the UK.
@CreationDateTime,
@ModificationDateTime,
@Modification,
@RevisionNumber,
@Status.</xsd:documentation>
      </xsd:annotation>
    </xsd:element>
  </xsd:sequence>
</xsd:complexType>

element PlusbusZonesStructure/PlusbusZone
diagram
namespace http://www.naptan.org.uk/
type napt:PlusbusZoneStructure
properties
isRef 0
content complex
children napt:PlusbusZoneCode napt:Name napt:Country napt:Mapping
attributes
Name  Type  Use  Default  Fixed  Annotation
CreationDateTime  xsd:dateTimerequired      
ModificationDateTime  xsd:dateTimeoptional      
Modification  napt:ModificationEnumerationoptional  new    
RevisionNumber  napt:RevisionNumberTypeoptional      
Status  napt:StatusEnumerationoptional  active    
annotation
documentation 
A PlusbusZone region covering a part of the UK.
@CreationDateTime,
@ModificationDateTime,
@Modification,
@RevisionNumber,
@Status.
source
<xsd:element name="PlusbusZone" type="PlusbusZoneStructure" maxOccurs="unbounded">
  <xsd:annotation>
    <xsd:documentation>A PlusbusZone region covering a part of the UK.
@CreationDateTime,
@ModificationDateTime,
@Modification,
@RevisionNumber,
@Status.</xsd:documentation>
  </xsd:annotation>
</xsd:element>

complexType PlusbusZoneStructure
diagram
namespace http://www.naptan.org.uk/
children napt:PlusbusZoneCode napt:Name napt:Country napt:Mapping
used by
element PlusbusZonesStructure/PlusbusZone
attributes
Name  Type  Use  Default  Fixed  Annotation
CreationDateTime  xsd:dateTimerequired      
ModificationDateTime  xsd:dateTimeoptional      
Modification  napt:ModificationEnumerationoptional  new    
RevisionNumber  napt:RevisionNumberTypeoptional      
Status  napt:StatusEnumerationoptional  active    
annotation
documentation 
Plusbus fare Zone.
source
<xsd:complexType name="PlusbusZoneStructure">
  <xsd:annotation>
    <xsd:documentation>Plusbus fare Zone.</xsd:documentation>
  </xsd:annotation>
  <xsd:sequence>
    <xsd:element name="PlusbusZoneCode" type="PlusbusZoneCodeType">
      <xsd:annotation>
        <xsd:documentation>Unique identifier of the Plusbus Zone.</xsd:documentation>
      </xsd:annotation>
    </xsd:element>
    <xsd:element name="Name" type="NaturalLanguagePlaceNameStructure">
      <xsd:annotation>
        <xsd:documentation>Name of the zone @lang.</xsd:documentation>
      </xsd:annotation>
    </xsd:element>
    <xsd:element name="Country" type="CountryEnumeration">
      <xsd:annotation>
        <xsd:documentation>Country of zone. Enumerated value.</xsd:documentation>
      </xsd:annotation>
    </xsd:element>
    <xsd:element name="Mapping" minOccurs="0">
      <xsd:annotation>
        <xsd:documentation>Boundary of the Plusbus zone</xsd:documentation>
      </xsd:annotation>
      <xsd:complexType>
        <xsd:sequence>
          <xsd:element name="Location" type="LocationStructure" minOccurs="3" maxOccurs="unbounded">
            <xsd:annotation>
              <xsd:documentation>Collection of points making a polygon defining zone.</xsd:documentation>
            </xsd:annotation>
          </xsd:element>
        </xsd:sequence>
      </xsd:complexType>
    </xsd:element>
  </xsd:sequence>
  <xsd:attributeGroup ref="RequiredModificationDetailsGroup"/>
</xsd:complexType>

element PlusbusZoneStructure/PlusbusZoneCode
diagram
namespace http://www.naptan.org.uk/
type napt:PlusbusZoneCodeType
properties
isRef 0
content simple
annotation
documentation 
Unique identifier of the Plusbus Zone.
source
<xsd:element name="PlusbusZoneCode" type="PlusbusZoneCodeType">
  <xsd:annotation>
    <xsd:documentation>Unique identifier of the Plusbus Zone.</xsd:documentation>
  </xsd:annotation>
</xsd:element>

element PlusbusZoneStructure/Name
diagram
namespace http://www.naptan.org.uk/
type napt:NaturalLanguagePlaceNameStructure
properties
isRef 0
content complex
facets
minLength 1
maxLength 48
pattern [^,\[\]\{\}\?$£%\^=@#;:]+
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.
annotation
documentation 
Name of the zone @lang.
source
<xsd:element name="Name" type="NaturalLanguagePlaceNameStructure">
  <xsd:annotation>
    <xsd:documentation>Name of the zone @lang.</xsd:documentation>
  </xsd:annotation>
</xsd:element>

element PlusbusZoneStructure/Country
diagram
namespace http://www.naptan.org.uk/
type napt:CountryEnumeration
properties
isRef 0
content simple
facets
enumeration England
enumeration NorthernIreland
enumeration Scotland
enumeration Wales
enumeration UK
annotation
documentation 
Country of zone. Enumerated value.
source
<xsd:element name="Country" type="CountryEnumeration">
  <xsd:annotation>
    <xsd:documentation>Country of zone. Enumerated value.</xsd:documentation>
  </xsd:annotation>
</xsd:element>

element PlusbusZoneStructure/Mapping
diagram
namespace http://www.naptan.org.uk/
properties
isRef 0
content complex
children napt:Location
annotation
documentation 
Boundary of the Plusbus zone
source
<xsd:element name="Mapping" minOccurs="0">
  <xsd:annotation>
    <xsd:documentation>Boundary of the Plusbus zone</xsd:documentation>
  </xsd:annotation>
  <xsd:complexType>
    <xsd:sequence>
      <xsd:element name="Location" type="LocationStructure" minOccurs="3" maxOccurs="unbounded">
        <xsd:annotation>
          <xsd:documentation>Collection of points making a polygon defining zone.</xsd:documentation>
        </xsd:annotation>
      </xsd:element>
    </xsd:sequence>
  </xsd:complexType>
</xsd:element>

element PlusbusZoneStructure/Mapping/Location
diagram
namespace http://www.naptan.org.uk/
type napt:LocationStructure
properties
isRef 0
content complex
children GridType Easting Northing Longitude Latitude Translation
attributes
Name  Type  Use  Default  Fixed  Annotation
Precision  napt:PrecisionEnumerationoptional  1km    
documentation 
Precision of geocoding
id  xsd:NMTOKENoptional      
annotation
documentation 
Collection of points making a polygon defining zone.
source
<xsd:element name="Location" type="LocationStructure" minOccurs="3" maxOccurs="unbounded">
  <xsd:annotation>
    <xsd:documentation>Collection of points making a polygon defining zone.</xsd:documentation>
  </xsd:annotation>
</xsd:element>

complexType RegionsStructure
diagram
namespace http://www.naptan.org.uk/
children napt:Region
used by
element NationalPublicTransportGazetteer/Regions
annotation
documentation 
Collection of regions
source
<xsd:complexType name="RegionsStructure">
  <xsd:annotation>
    <xsd:documentation>Collection of regions</xsd:documentation>
  </xsd:annotation>
  <xsd:sequence>
    <xsd:element name="Region" type="RegionStructure" maxOccurs="unbounded">
      <xsd:annotation>
        <xsd:documentation>A Traveline region serving a part of the UK.
@CreationDateTime,
@ModificationDateTime,
@Modification,
@RevisionNumber,
@Status.</xsd:documentation>
      </xsd:annotation>
    </xsd:element>
  </xsd:sequence>
</xsd:complexType>

element RegionsStructure/Region
diagram
namespace http://www.naptan.org.uk/
type napt:RegionStructure
properties
isRef 0
content complex
children napt:RegionCode napt:Name napt:Country napt:AdministrativeAreas
attributes
Name  Type  Use  Default  Fixed  Annotation
CreationDateTime  xsd:dateTimerequired      
ModificationDateTime  xsd:dateTimeoptional      
Modification  napt:ModificationEnumerationoptional  new    
RevisionNumber  napt:RevisionNumberTypeoptional      
Status  napt:StatusEnumerationoptional  active    
annotation
documentation 
A Traveline region serving a part of the UK.
@CreationDateTime,
@ModificationDateTime,
@Modification,
@RevisionNumber,
@Status.
source
<xsd:element name="Region" type="RegionStructure" maxOccurs="unbounded">
  <xsd:annotation>
    <xsd:documentation>A Traveline region serving a part of the UK.
@CreationDateTime,
@ModificationDateTime,
@Modification,
@RevisionNumber,
@Status.</xsd:documentation>
  </xsd:annotation>
</xsd:element>

complexType RegionStructure
diagram
namespace http://www.naptan.org.uk/
children napt:RegionCode napt:Name napt:Country napt:AdministrativeAreas
used by
element RegionsStructure/Region
attributes
Name  Type  Use  Default  Fixed  Annotation
CreationDateTime  xsd:dateTimerequired      
ModificationDateTime  xsd:dateTimeoptional      
Modification  napt:ModificationEnumerationoptional  new    
RevisionNumber  napt:RevisionNumberTypeoptional      
Status  napt:StatusEnumerationoptional  active    
annotation
documentation 
Traveline Region
source
<xsd:complexType name="RegionStructure">
  <xsd:annotation>
    <xsd:documentation>Traveline Region</xsd:documentation>
  </xsd:annotation>
  <xsd:sequence>
    <xsd:element name="RegionCode" type="RegionCodeType">
      <xsd:annotation>
        <xsd:documentation>Unique identifier of the region.</xsd:documentation>
      </xsd:annotation>
    </xsd:element>
    <xsd:element name="Name" type="NaturalLanguagePlaceNameStructure">
      <xsd:annotation>
        <xsd:documentation>Name of the region. @lang.</xsd:documentation>
      </xsd:annotation>
    </xsd:element>
    <xsd:element name="Country" type="CountryEnumeration">
      <xsd:annotation>
        <xsd:documentation>Country of region. Enumerated value.</xsd:documentation>
      </xsd:annotation>
    </xsd:element>
    <xsd:element name="AdministrativeAreas" type="AdministrativeAreasStructure" minOccurs="0">
      <xsd:annotation>
        <xsd:documentation>Areas making up the region.</xsd:documentation>
      </xsd:annotation>
    </xsd:element>
  </xsd:sequence>
  <xsd:attributeGroup ref="RequiredModificationDetailsGroup"/>
</xsd:complexType>

element RegionStructure/RegionCode
diagram
namespace http://www.naptan.org.uk/
type napt:RegionCodeType
properties
isRef 0
content simple
annotation
documentation 
Unique identifier of the region.
source
<xsd:element name="RegionCode" type="RegionCodeType">
  <xsd:annotation>
    <xsd:documentation>Unique identifier of the region.</xsd:documentation>
  </xsd:annotation>
</xsd:element>

element RegionStructure/Name
diagram
namespace http://www.naptan.org.uk/
type napt:NaturalLanguagePlaceNameStructure
properties
isRef 0
content complex
facets
minLength 1
maxLength 48
pattern [^,\[\]\{\}\?$£%\^=@#;:]+
attributes
Name  Type  Use  Default  Fixed  Annotation
xml:lang        
documentation 
Attempting to install the relevant ISO 2- and 3-letter