> For the complete documentation index, see [llms.txt](https://docs.os.uk/osngd/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/osngd/using-os-ngd-data/os-ngd-transport/trams/trams-in-the-rail-network.md).

# Trams in the Rail Network

## Background

Within the OS NGD Transport Theme, in the OS Transport Network Collection, the Railway Link Feature Type represents geometry of Great Britain’s Rail Network.

This feature type provides a routable network when used in conjunction with the Railway Node Feature Type. The rail network includes tram tracks as well as train tracks. Trams can be identified by the description attribute, which describes the nature of the railway the feature is representing (for example, description = Tram).

## Technical detail

The Railway Link Feature Type provides a generalised geometry for the rail network of Great Britain. The generalisation of the rail network ensures full connectivity between relevant rail nodes. Rail track generalisation can be typically 3 or 4 sets of rail tracks represented as one link (for example, multiple siding tracks); however, this may not always be the case (for example, tracks that pass either side of a station platform are normally included to ensure connectivity at a station).&#x20;

## Examples of uses this data does support

* Routing along the rail network, including trams.
* Visualising track centreline geometry. Railways Links provide the generalised geometry of rail and tram tracks.

<figure><img src="/files/IMcDPyZbaccyXTng36If" alt="Example map comparing Tram On Road and Railway Link Feature Types. A background map has been included to provide context." width="563"><figcaption><p>Example map comparing Tram On Road and Railway Link Feature Types. A background map has been included to provide context.</p></figcaption></figure>

## Examples of uses this data doesn't support

* Identifying which Road Links have a tram track on them.


---

# 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/osngd/using-os-ngd-data/os-ngd-transport/trams/trams-in-the-rail-network.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.
