> For the complete documentation index, see [llms.txt](https://docs.os.uk/os-downloads/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.os.uk/os-downloads/products/areas-and-zones-portfolio/boundary-line/boundary-line-technical-specification/gml/features-gml/administrativeunit.md).

# AdministrativeUnit

Unit of administration where a Member State has and/or exercises jurisdictional rights for local, regional and national governance.

## Feature type attributes <a href="#feature-type-attributes" id="feature-type-attributes"></a>

The following page provides details about the attributes included with this feature type, their data types in the different output formats, and other important metadata about them.

### ID

`Admin_Unit_ID` from Boundary-Line, which is preceded by `osgb7` and enough zeros to make it 16 digits, for example, `Admin_Unit_ID=25483` becomes `osgb7000000000025483`.

* **Attribute Name**: gml:id
* **Data Type**: CharacterString
* **Size**: 16
* **Multiplicity**: \[1]

### Identifier

Use identifier from Boundary-Line linked data. For example, `http://data.ordnancesurvey.co.uk/id/7000000000025483`. The number is the `Admin_Unit_ID` from Boundary-Line, which is preceded by the number 7 and enough zeros to make it 16 digits, for example, `Admin_Unit_ID=25483` becomes `7000000000025483`.

* **Attribute Name**: gml:identifier
* **Data Type**: CharacterString
* **Size**: 16
* **Multiplicity**: \[1]

### Geometry

Geometric representation of spatial area covered by this administrative unit. Can be a multi- polygon.

* **Attribute Name**: geometry
* **Data Type**: GM\_Surface
* **Multiplicity**: \[1]

### National code

Set to the Census/GSS Code for the boundary, for example, E10000014.

* **Attribute Name**: nationalCode
* **Data Type**: CharacterString
* **Size**: 8
* **Multiplicity**: \[1]

### Inspire local ID

Admin\_Unit\_ID from Boundary-Line, which is preceded by the number 7 and enough zeros to make it 16 digits, for example, `Admin_Unit_ID=25483` becomes `7000000000025483`.

* **Attribute Name**: inspireId.Identifier.localId
* **Data Type**: CharacterString
* **Size**: 16
* **Multiplicity**: \[1]

### Inspire namespace

Set to '`http://data.ordnancesurvey.co.uk/id/`'.

* **Attribute Name**: inspireId.Identifier.namespace
* **Data Type**: IdentifierNamespaceValue
* **Multiplicity**: \[1]

### Inspire version ID

Set to publication timestamp, for example, '`2016-09-20T16:18:19.000`'.

* **Attribute Name**: inspireId.Identifier.versionId
* **Data Type**: DateTime
* **Multiplicity**: \[1]

### National level

Level in the national administrative hierarchy at which the administrative unit is established. Note that the UK boundary (nationalLevel = 1stOrder) or the boundaries of England/Wales/Scotland (nationalLevel = 2ndOrder) are not included.

* **Attribute Name**: nationalLevel
* **Code List Name**: [AdministrativeHierarchyValue](/os-downloads/products/areas-and-zones-portfolio/boundary-line/boundary-line-technical-specification/gml/code-lists-gml/administrativehierarchyvalue.md)
* **Multiplicity**: \[1]

### National level name

Name of the level in the national administrative hierarchy at which the administrative unit is established.

* **Attribute Name**: nationalLevelName
* **Code List Name**: [NationalClassificationValue](/os-downloads/products/areas-and-zones-portfolio/boundary-line/boundary-line-technical-specification/gml/code-lists-gml/nationalclassificationvalue.md)
* **Multiplicity**: \[1]

### Country

Set to '`UK`'.

* **Attribute Name**: country
* **Data Type**: CountryValue
* **Multiplicity**: \[1]

### language.xsi:nil

Set to '`true`'.

* **Attribute Name**: name.language.xsi:nil
* **Data Type**: BooleanTrueValue
* **Multiplicity**: \[1]

### language.nilReason

Set to '`unknown`'.

* **Attribute Name**: name.language.nilReason
* **Data Type**: UnknownReasonValue
* **Multiplicity**: \[1]

### nativeness.xlink:title

Set to '`endonym`'.

* **Attribute Name**: name.nativeness.xlink:title
* **Data Type**: NativenessValue
* **Multiplicity**: \[1]

### nativeness.xlink:href

Set to '`http://inspire.ec.europa.eu/codelist/NativenessValue#endonym`'.

* **Attribute Name**: name.nativeness.xlink:href
* **Data Type**: NativenessNamespaceValue
* **Multiplicity**: \[1]

### nameStatus.xlink:title

Set to '`official`'.

* **Attribute Name**: name.nameStatus.xlink:title
* **Data Type**: NameStatusValue
* **Multiplicity**: \[1]

### nameStatus.xlink:href

Set to '`http://inspire.ec.europa.eu/codelist/NameStatusValue#official`'.

* **Attribute Name**: name.nameStatus.xlink:href
* **Data Type**: NameStatusNamespaceValue
* **Multiplicity**: \[1]

### sourceOfName

Set to '`Boundary-Line'`.

* **Attribute Name**: name.sourceOfName
* **Data Type**: SourceOfNameValue
* **Multiplicity**: \[1]

### pronunciation.xsi:nil

Set to '`true`'.

* **Attribute Name**: name.pronunciation.xsi:nil
* **Data Type**: BooleanTrueValue
* **Multiplicity**: \[1]

### pronunciation.nilReason

Set to '`missing`'.

* **Attribute Name**: name.pronunciation.nilReason
* **Data Type**: MissingReasonValue
* **Multiplicity**: \[1]

### spelling.text

Official national geographical name of the administrative unit.

* **Attribute Name**: name.spelling.text
* **Data Type**: CharacterString
* **Multiplicity**: \[1]

### spelling.script

Set to '`Latn`'.

* **Attribute Name**: name.spelling.script
* **Data Type**: ScriptValue
* **Multiplicity**: \[1]

### residenceOfAuthority.xsi:nil

Set to '`true'`.

* **Attribute Name**: residenceOfAuthority.xsi:nil
* **Data Type**: BooleanTrueValue
* **Multiplicity**: \[1]

### residenceOfAuthority.nilReason

Set to '`unknown`'.

* **Attribute Name**: residenceOfAuthority.nilReason
* **Data Type**: UnknownReasonValue
* **Multiplicity**: \[1]

### beginLifespanVersion

Set to publication timestamp, for example, `2016-09-20T16:18:19.000`.

* **Attribute Name**: beginLifespanVersion
* **Data Type**:
* **Multiplicity**: \[1]

### boundary.xsi:nil

Set to 't`rue'`.

* **Attribute Name**: boundary.xsi:nil
* **Data Type**: BooleanTrueValue
* **Multiplicity**: \[1]

### boundary.nilReason

Set to '`unknown`'.

* **Attribute Name**: boundary.nilReason
* **Data Type**: UnknownReasonValue
* **Multiplicity**: \[1]


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.os.uk/os-downloads/products/areas-and-zones-portfolio/boundary-line/boundary-line-technical-specification/gml/features-gml/administrativeunit.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
