# 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&#x20;

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: 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:

```
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>
```

The question should be specific, self-contained, and written in natural language.
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.
