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.govtalk.gov.uk/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>
    <