> 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/land-and-terrain-portfolio/os-mastermap-greenspace-layer/os-mastermap-greenspace-layer-technical-specification/function-hierarchy.md).

# Function hierarchy

The population of Primary Function and Secondary Function attributes is driven by a hierarchy. This hierarchy is applied to the data to determine which function is primary and secondary in cases where more than one function applies for a single topographic area polygon. Not every polygon will have more than one function due to the nature of the primary function, for example, cemeteries and bowling greens are not likely to have secondary functions. This hierarchy only applies where more than one function exists.

The hierarchy has been developed to ensure the process applies the appropriate functions and does not imply any level of priority.

The following table declares this hierarchy:

<table><thead><tr><th width="277">Hierarchy</th><th>Function</th></tr></thead><tbody><tr><td>1</td><td>Public Park Or Garden</td></tr><tr><td>2</td><td>School Grounds</td></tr><tr><td>3</td><td>Institutional Grounds</td></tr><tr><td>4</td><td>Golf Course</td></tr><tr><td>5</td><td>Amenity – Residential Or Business*</td></tr><tr><td>6</td><td>Amenity – Transport</td></tr><tr><td>7</td><td>Camping Or Caravan Park</td></tr><tr><td>8</td><td>Religious Grounds</td></tr><tr><td>9</td><td>Cemetery</td></tr><tr><td>10</td><td>Private Garden</td></tr><tr><td>11</td><td>Playing Field</td></tr><tr><td>12</td><td>Other Sports Facility</td></tr><tr><td>13</td><td>Tennis Court</td></tr><tr><td>14</td><td>Allotments Or Community Growing Spaces</td></tr><tr><td>15</td><td>Play Space</td></tr><tr><td>16</td><td>Bowling Green</td></tr><tr><td>17</td><td>Land Use Changing</td></tr><tr><td>18</td><td><p>Natural</p><p>(features with no other function but with Form attribute of woodland, open semi-natural, open water, foreshore)</p></td></tr></tbody></table>

\*Due to the way Amenity – Residential or Business function is defined (see Code lists), features classified as this primary function would not be expected to have a secondary function.


---

# 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/land-and-terrain-portfolio/os-mastermap-greenspace-layer/os-mastermap-greenspace-layer-technical-specification/function-hierarchy.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.
