# OS MasterMap Highways Network and OS NGD Speeds

## OS NGD Average and Indicative Speed

In March 2023 OS NGD Average and Indicative Speed dataset was released …and made available to PSGA customers

OSMM Highways Network with Speeds was withdrawn and was no longer supported.

Existing customers who had taken OSMM Highways with Speeds had a replacement dataset but not an easy way to integrate or use it with OSMM Highways Network.

Additionally, new customers faced the same dilemma, particularly if OSMM Highways Network was embedded within existing systems.

## Joining OS NGD Average and Indicative Speed data to OSMM Highways Network

It is not possible to join OS NGD Average and Indicative Speed data to OSMM Highways Network RoadLinks directly using the identifiers.

OS NGD Average and Indicative Speed data references the OS NGD Transport Network Road Link features, which have the <mark style="color:red;">OSID</mark> as the unique identifier. Whereas OSMM Highways Network RoadLink features have the <mark style="color:purple;">TOID</mark>.

To join the data, it’s necessary to use the OS NGD Transport Network Road Link feature as this contains both the <mark style="color:red;">OSID</mark> and <mark style="color:purple;">TOID</mark> for every Road Link feature.

<figure><img src="https://3774974716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzIfdYInJITdcxaLLMhlD%2Fuploads%2Fgit-blob-e1d06de4d2ef5dbf66aef61fe515512e3a99909c%2Fhighways-speeds-joining.png?alt=media" alt="structure diagram of joining Highways to OS NGD Speeds" width="375"><figcaption><p>structure diagram of joining Highways to OS NGD Speeds</p></figcaption></figure>

NOTE: Care is needed to ensure that the OS NGD and OSMM datasets have the same geometry currency.

Information on currency can be found here:

{% embed url="<https://docs.os.uk/osngd/getting-started/os-ngd-core-principles/os-ngd-data-ordering-and-currency>" %}

## Using third party software with OS NGD Average and Indicative Speed data with OSMM Highways Network

### ESRI Tools

In an ESRI environment the UK Data Loader can translate both datasets independently using the versions below…but does not combine elements of each.

<figure><img src="https://3774974716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzIfdYInJITdcxaLLMhlD%2Fuploads%2Fgit-blob-3473f6e65c237090f68431819f760289513d1ea0%2Fhighways-speeds-esri.png?alt=media" alt="image of ESRI software logos" width="563"><figcaption></figcaption></figure>

FME Tools

If OSMM Highways Network can’t easily be replaced, then it’s possible to create ‘pseudo’ OSMM Highways with Speed data from OS NGD Average and Indicative Speeds.

<figure><img src="https://3774974716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzIfdYInJITdcxaLLMhlD%2Fuploads%2Fgit-blob-4156cb7c043a049a7fcf6797eea868974222c551%2Fspeeds-fme-1.png?alt=media" alt="Image of an FME workbench"><figcaption><p>Outputs a Speed Limit Shapefile</p></figcaption></figure>

<figure><img src="https://3774974716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzIfdYInJITdcxaLLMhlD%2Fuploads%2Fgit-blob-4a0c4bb74349390079fdaa79964fa8e9d8906b25%2Fspeeds-fme-2.png?alt=media" alt="Image of an FME workbench"><figcaption><p>Outputs an Average Speed .csv</p></figcaption></figure>

### Create Network Dataset using OSMM Highways data and ‘pseudo’ Speed data using UK Data Loader

You can choose the ‘Process OS Highways Data’ option in UK Data Loader and point it at the data created from FME

<figure><img src="https://3774974716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzIfdYInJITdcxaLLMhlD%2Fuploads%2Fgit-blob-ad75faf83ebe5577ff2af38e53ad371dd0479172%2Fspeeds-uk-data-loader.png?alt=media" alt="image of a dialogue box in ESRI" width="284"><figcaption></figcaption></figure>

## ESRI Toolbox to link OSMM Highways and OS NGD Speeds

Inputs are OSMM Highways Network RoadLinks; NGD Average and Indicative Speed data; and OS NGD Transport Network Road Links (as before).

The model appends the RoadLink TOID onto each row of the OS NGD Average and Indicative Speed data meaning it can be joined to the OSMM Highways Network geometry.

<figure><img src="https://3774974716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzIfdYInJITdcxaLLMhlD%2Fuploads%2Fgit-blob-2a5de42355ea184ecf8bdee75815a8d9b7ec5b85%2Fspeeds-esri-toolbox.png?alt=media" alt="Image of an ESRI model diagram"><figcaption><p>ESRI model</p></figcaption></figure>
