> 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/buildings-and-infrastructure-portfolio/os-open-toid/os-open-toid-technical-specification/data-structure.md).

# Data structure

The OS Open TOID data carries five attributes which are all mandatory for each release. These can be used to identify and link affiliated information for a real-world object as well as plotting its real-world position. The TOID represents a range of feature types which related to an even wider range of real-world object types, examples range from buildings (including those without an address), roads, junctions, bridges, trees, fields and more.

## OS Open TOID attributes

### TOID

A unique identifier assigned to geospatial data by Ordnance Survey for their MasterMap products.

* **Type:** Varchar
* **Size:** 20
* **Multiplicity:** \[1]

### VERSION\_NUMBER

The date representing the version of the feature.

* **Type:** Integer
* **Size:** N/A
* **Multiplicity:** \[0 ... 1)

### VERSION\_DATE

The date representing the date the feature was last updated.

* **Type:** Datetime (GPKG), Date (CSV)
* **Size:** N/A
* **Multiplicity:** \[1]

### SOURCE\_PRODUCT

Attribute indicating which product a feature can be found in.

* **Type:** Varchar
* **Size:** 29
* **Multiplicity:** \[1]

### EASTING

A value in meters defining the x location according to the British National Grid.

* **Type:** Float
* **Size:** (precision, scale) - (10, 3)
* **Multiplicity:** \[1]

### NORTHING

A value in meters defining the y location according to the British National Grid.

* **Type:** Float
* **Size:** (precision, scale) - (10, 3)
* **Multiplicity:** \[1]

## GeoPackage structure <a href="#bookmark5" id="bookmark5"></a>

The GeoPackage data follows the same structure as demonstrated above, except for the inclusion of the following additional attribute:

#### id

A non-persistent integer which has been autogenerated as a function of OGC GeoPackage.

* Type: Integer
* Size: N/A
* Multiplicity: \[1]

GeoPackage is also split between three different layers to allow for easier data interrogation; these layers are:

* os\_mastermap\_highways\_network
* os\_mastermap\_sites\_layer
* os\_mastermap\_topography\_layer


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.os.uk/os-downloads/products/buildings-and-infrastructure-portfolio/os-open-toid/os-open-toid-technical-specification/data-structure.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
