> 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/transport-network-portfolio/os-mastermap-highways-network-fundamentals/os-mastermap-highways-network-getting-started-guide/relationships-between-highways-tables.md).

# Relationships between Highways tables

#### Relationships between Highways tables.

<table data-full-width="true"><thead><tr><th width="197">Table</th><th width="148">Specification</th><th width="178">GML file</th><th>Contains geometry</th><th width="174">Column ID Primary</th><th width="136">Relates to</th><th width="346">Column ID ForeignD Foreign</th></tr></thead><tbody><tr><td>RoadLink</td><td>Linear Network</td><td>RoadLink</td><td>Y</td><td>TOID</td><td>N/A</td><td>N/A</td></tr><tr><td>RoadLinkAlternativeIdentifier</td><td>Linear Network</td><td>RoadLink</td><td>N</td><td>TOID (id in GML/technical spec)</td><td>RoadLink</td><td>TOID</td></tr><tr><td>RoadLinkFormsPartOf</td><td>Linear Network</td><td>RoadLink</td><td>N</td><td>TOID</td><td>Road or Street</td><td>formsPartOf - Will be either Road TOID or Street USRN</td></tr><tr><td>RoadLink_TopoTOIDRef</td><td>Linear Network</td><td>RoadLink</td><td>N</td><td>TOID</td><td>Topo Area</td><td>RelatedRoadAreaTOID - Will be the TOID of the Topo area(s) that represent the RoadLink</td></tr><tr><td>AccessRestriction_NetworkRef</td><td>Routing and Asset Management Information</td><td>AccessRestriction</td><td>N</td><td>TOID</td><td>RoadLink</td><td>RoadLink_TOID - The TOID in the RoadLink table</td></tr><tr><td>AccessRestriction</td><td>Routing and Asset Management Information</td><td>AccessRestriction</td><td>N</td><td>TOID</td><td>AccessRestriction_NetworkRef, AccessRestriction_Inclusion, AccessRestriction_Exemption</td><td>TOID</td></tr><tr><td>AccessRestriction_Inclusion</td><td>Routing and Asset Management Information</td><td>AccessRestriction</td><td>N</td><td>TOID</td><td>AccessRestriction</td><td>TOID</td></tr><tr><td>AccessRestriction_Exemption</td><td>Routing and Asset Management Information</td><td>AccessRestriction</td><td>N</td><td>TOID</td><td>AccessRestriction</td><td>TOID</td></tr><tr><td>Hazard_NetworkRef</td><td>Routing and Asset Management Information</td><td>Hazard</td><td>Y</td><td>TOID</td><td>RoadLink and RoadNode</td><td>RoadLink_TOID and RoadNode _TOID - The TOID in the respective tables</td></tr><tr><td>Hazard</td><td>Routing and Asset Management Information</td><td>Hazard</td><td>Y</td><td>TOID</td><td>Hazard_NetworkRef</td><td>TOID</td></tr><tr><td>Hazard_NodeReference_LinkReference</td><td>Routing and Asset Management Information</td><td>Hazard</td><td>N</td><td>TOID</td><td>RoadLink</td><td>RoadLink_TOID</td></tr><tr><td>RestrictionForVehicles_NetworkRef</td><td>Routing and Asset Management Information</td><td>VehicleRestriction, RestrictionForVehicles</td><td>N</td><td>TOID</td><td>RoadLink and RoadNode</td><td>RoadLink_TOID and RoadNode _TOID - The TOID in the respective tables</td></tr><tr><td>RestrictionForVehicles</td><td>Routing and Asset Management Information</td><td>VehicleRestriction, RestrictionForVehicles</td><td>Y</td><td>TOID</td><td>RestrictionForVehicles_NetworkRef</td><td>TOID</td></tr><tr><td>RestrictionForVehicles_NodeReference_LinkReference</td><td>Routing and Asset Management Information</td><td>VehicleRestriction, RestrictionForVehicles</td><td>N</td><td>TOID</td><td>RoadLink</td><td>RoadLinkTOID</td></tr><tr><td>Road</td><td>Linear Network</td><td>Road</td><td>N</td><td>TOID</td><td>Road_NetworkRef</td><td>TOID</td></tr><tr><td>Road_NetworkRef</td><td>Linear Network</td><td>Road</td><td>N</td><td>TOID</td><td>RoadLink</td><td>RoadLink_TOID - Is the TOID of the RoadLink table</td></tr><tr><td>RoadNode</td><td>Linear Network</td><td>RoadNode</td><td>Y</td><td>TOID</td><td>N/A</td><td>N/A</td></tr><tr><td>RoadNode_RelatedRoadArea</td><td>Linear Network</td><td>RoadNode</td><td>N</td><td>TOID</td><td>Topo Area</td><td>RelatedRoadAreaTOID - Will be the TOID of the Topo area(s) that represent the RoadNode</td></tr><tr><td>Street_NetworkRef</td><td>Linear Network</td><td>Street</td><td>N</td><td>USRN</td><td>RoadLink</td><td>RoadLink_TOID - Will be the TOID of the RoadLink table</td></tr><tr><td>Street</td><td>Linear Network</td><td>Street</td><td>N</td><td>USRN</td><td>Street_NetworkRef</td><td>USRN</td></tr><tr><td>Structure_NetworkRef</td><td>Routing and Asset Management Information</td><td>Structure</td><td>N</td><td>TOID</td><td>RoadLink and RoadNode</td><td>RoadLink_TOID and RoadNode _TOID - The TOID in the respective tables</td></tr><tr><td>Structure</td><td>Routing and Asset Management Information</td><td>Structure</td><td>Y</td><td>TOID</td><td>Structure_NetworkRef</td><td>TOID</td></tr><tr><td>Structure_NodeReference_LinkReference</td><td>Routing and Asset Management Information</td><td>Structure</td><td>N</td><td>TOID</td><td>RoadLink</td><td>RoadLink_TOID</td></tr><tr><td>TurnRestriction_NetworkRef</td><td>Routing and Asset Management Information</td><td>TurnRestriction</td><td>N</td><td>TOID</td><td>RoadLink</td><td>RoadLink_TOID - The TOID in the RoadLink table</td></tr><tr><td>TurnRestriction</td><td>Routing and Asset Management Information</td><td>TurnRestriction</td><td>N</td><td>TOID</td><td>TurnRestriction_NetworkRef, TurnRestriction_Exemption, TurnRestriction_Inclusion</td><td>TOID</td></tr><tr><td>TurnRestriction_Exemption</td><td>Routing and Asset Management Information</td><td>TurnRestriction</td><td>N</td><td>TOID</td><td>TurnRestriction</td><td>TOID</td></tr><tr><td>TurnRestriction_Inclusion</td><td>Routing and Asset Management Information</td><td>TurnRestriction</td><td>N</td><td>TOID</td><td>TurnRestriction</td><td>TOID</td></tr><tr><td>Maintenance Point</td><td>Routing and Asset Management Information</td><td>Maintenance</td><td>Y</td><td>ID</td><td>Street</td><td>Reference_To_StreetUSRN - The USRN in the Street table</td></tr><tr><td>Maintenance Line</td><td>Routing and Asset Management Information</td><td>Maintenance</td><td>Y</td><td>ID</td><td>Street</td><td>Reference_To_StreetUSRN - The USRN in the Street table</td></tr><tr><td>Maintenance Area</td><td>Routing and Asset Management Information</td><td>Maintenance</td><td>Y</td><td>ID</td><td>Street</td><td>Reference_To_StreetUSRN - The USRN in the Street table</td></tr><tr><td>Maintenance No Geometry</td><td>Routing and Asset Management Information</td><td>Maintenance</td><td>N</td><td>ID</td><td>Street</td><td>Reference_To_StreetUSRN - The USRN in the Street table</td></tr><tr><td>Reinstatement Point</td><td>Routing and Asset Management Information</td><td>Reinstatement</td><td>Y</td><td>ID</td><td>Street</td><td>Reference_To_StreetUSRN - The USRN in the Street table</td></tr><tr><td>Reinstatement Line</td><td>Routing and Asset Management Information</td><td>Reinstatement</td><td>Y</td><td>ID</td><td>Street</td><td>Reference_To_StreetUSRN - The USRN in the Street table</td></tr><tr><td>Reinstatement Area</td><td>Routing and Asset Management Information</td><td>Reinstatement</td><td>Y</td><td>ID</td><td>Street</td><td>Reference_To_StreetUSRN - The USRN in the Street table</td></tr><tr><td>Reinstatement No Geometry</td><td>Routing and Asset Management Information</td><td>Reinstatement</td><td>Y</td><td>ID</td><td>Street</td><td>Reference_To_StreetUSRN - The USRN in the Street table</td></tr><tr><td>Junction</td><td>Linear Network</td><td>RoadJunction</td><td>N</td><td>TOID</td><td>RoadNode</td><td>TOID, RoadNode_TOIDs (the junction can reference back to multiple road nodes)</td></tr><tr><td>Highways Dedication</td><td>Routing and Asset Management Information</td><td>Dedication</td><td>Y</td><td>ID</td><td>Road, Street or Path</td><td>NetworkRef - TOID in RoadLink and PathLink table and USRN in the Street table</td></tr><tr><td>Special Designation Point</td><td>Routing and Asset Management Information</td><td>SpecialDesignation</td><td>Y</td><td>networkRef</td><td>Street</td><td>NetworkRef - USRN in the Street table</td></tr><tr><td>Special Designation Line</td><td>Routing and Asset Management Information</td><td>SpecialDesignation</td><td>Y</td><td>networkRef</td><td>Street</td><td>NetworkRef - USRN in the Street table</td></tr><tr><td>Special Designation Area</td><td>Routing and Asset Management Information</td><td>SpecialDesignation</td><td>Y</td><td>networkRef</td><td>Street</td><td>NetworkRef - USRN in the Street table</td></tr><tr><td>Special Designation No Geometry</td><td>Routing and Asset Management Information</td><td>SpecialDesignation</td><td>N</td><td>networkRef</td><td>Street</td><td>NetworkRef - USRN in the Street table</td></tr><tr><td>Ferrylink</td><td>Linear Network</td><td>FerryLink</td><td>Y</td><td>TOID</td><td>N/A</td><td>N/A</td></tr><tr><td>Ferrylink</td><td>Linear Network</td><td>FerryLink</td><td>N</td><td>TOID</td><td>FerryNode</td><td>FerryNode_TOID (one for startNode and one for endNode)</td></tr><tr><td>FerryNode</td><td>Linear Network</td><td>FerryNode</td><td>Y</td><td>TOID</td><td>N/A</td><td>N/A</td></tr><tr><td>FerryTerminal</td><td>Linear Network</td><td>FerryTerminal</td><td>N</td><td>refToFuncationalSite,roadNodeRef, pathNodeRef</td><td>Road Node, Path Node and Functional Site</td><td>TOID</td></tr><tr><td>PathLink</td><td>Paths</td><td>PathLink</td><td>Y</td><td>TOID</td><td>N/A</td><td>N/A</td></tr><tr><td>PathLinkAlternativeIdentifier</td><td>Paths</td><td>PathLink</td><td>N</td><td>TOID</td><td>PathLink</td><td>TOID</td></tr><tr><td>PathLinkFormsPartOf</td><td>Paths</td><td>PathLink</td><td>N</td><td>TOID</td><td>Path or Street</td><td>formsPartOf - Will be either Path TOID or Street USRN</td></tr><tr><td>PathLink_TopoTOIDRef</td><td>Paths</td><td>PathLink</td><td>N</td><td>TOID</td><td>Topo Area</td><td>RelatedPathAreaTOID - Will be the TOID of the Topo area(s) that represent the PathLink</td></tr><tr><td>PathLink</td><td>Paths</td><td>PathLink</td><td>N</td><td>TOID</td><td>PathNode</td><td>PathNode_TOID (one for startNode and one for endNode)</td></tr><tr><td>Path</td><td>Paths</td><td>Path</td><td>N</td><td>TOID</td><td>Path_NetworkRef</td><td>TOID</td></tr><tr><td>Path_Ref_PathLink</td><td>Paths</td><td>Path</td><td>N</td><td>TOID</td><td>PathLink</td><td>PathLink_TOID - Is the TOID of the PathLink table</td></tr><tr><td>PathNode</td><td>Paths</td><td>PathNode</td><td>Y</td><td>TOID</td><td>N/A</td><td>N/A</td></tr><tr><td>PathNode_RelatedRoadArea</td><td>Paths</td><td>PathNode</td><td>N</td><td>TOID</td><td>Topo Area</td><td>RelatedPathAreaTOID - Will be the TOID of the Topo area(s) that represent the PathNode</td></tr><tr><td>ConnectingLink</td><td>Paths</td><td>ConnectingLink</td><td>Y</td><td>TOID</td><td>PathNode and ConnectingNode</td><td>TOID</td></tr><tr><td>ConnectingNode</td><td>Paths</td><td>ConnectingNode</td><td>Y</td><td>TOID</td><td>RoadLink</td><td>TOID</td></tr></tbody></table>


---

# 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/transport-network-portfolio/os-mastermap-highways-network-fundamentals/os-mastermap-highways-network-getting-started-guide/relationships-between-highways-tables.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.
