🆕Turn Restriction

A Turn Restriction provides line geometry that indicates turn restrictions for the given Transport Link (e.g. No right turn, No U turn).

Where the Turn Restriction applies to specific vehicle types (e.g. bus, HGV), this is identified by the corresponding separate attributes as described below.

Temporal Filtering

The earliest date on which you can request a one-off snapshot of a date in the past for data in this feature type is 27 March 2024.

Feature type attributes

The following sub-sections provide details about the attributes included with this feature type, their data types in the different output formats, and other important metadata about them.

Note

For more information about the Turn Restriction feature type please read the Turn Restriction overview page in the About the OS MRN section.

relationid

A unique numerical ID given to each TurnRestriction. This is commonly used by routing software as the primary identifier for the feature.

  • Data Types: Integer (GPKG), String (PBF)

  • Nullable: false

  • Max Length: 10

  • Data Schema Version: 1.0

os_parentid

The osid of the corresponding feature that is published in OS NGD Transport Network Collection.

  • Data Types: String (GPKG), String (PBF)

  • Nullable: true

  • Max Length: 40

  • Data Schema Version: 1.0

type

Describes the type of relation. All relations take value 'restriction' to describe how they should be applied.

  • Data Types: String (GPKG), String (PBF)

  • Nullable: true

  • Max Length: 26

  • Data Schema Version: 1.0

restriction

Describes the type of turn restriction. E.g. 'no_right_turn', 'only_straight_on'.

  • Data Types: String (GPKG), String (PBF)

  • Nullable: true

  • Code List Name: restrictionlabelvalue

  • Max Length: 16

  • Data Schema Version: 1.0

restriction:conditional

If the turn restriction only exists on specific times or days then the time periods will be populated here in OpenStreetMap time conditional formatting , e.g. 'no_right_turn @ (Mo-Fr 07:30-09:30)'

  • Data Types: String (GPKG), String (PBF)

  • Nullable: true

  • Max Length: 250

  • Data Schema Version: 1.0

restriction:hgv

A turn restriction which applies only to heavy goods vehicles.

  • Data Types: String (GPKG), String (PBF)

  • Nullable: true

  • Code List Name: restrictionlabelvalue

  • Max Length: 16

  • Data Schema Version: 1.0

restriction:goods

A turn restriction which applies only to goods vehicles.

  • Data Types: String (GPKG), String (PBF)

  • Nullable: true

  • Code List Name: restrictionlabelvalue

  • Max Length: 16

  • Data Schema Version: 1.0

restriction:bus

A turn restriction which applies only to buses including school buses.

  • Data Types: String (GPKG), String (PBF)

  • Nullable: true

  • Code List Name: restrictionlabelvalue

  • Max Length: 16

  • Data Schema Version: 1.0

restriction:psv

A turn restriction which applies only to Public Service Vehicles inlcuding buses, coaches and local buses

  • Data Types: String (GPKG), String (PBF)

  • Nullable: true

  • Code List Name: restrictionlabelvalue

  • Max Length: 16

  • Data Schema Version: 1.0

restriction:abnormalloads

A turn restriction which applies only to unspecified abnormal loads. This is not a standard OpenStreetMap (OSM) tag.

  • Data Types: String (GPKG), String (PBF)

  • Nullable: true

  • Max Length: 250

  • Data Schema Version: 1.0

restriction:wideloads

A turn restriction which applies only to unspecified wide loads. This is not a standard OSM tag.

  • Data Types: String (GPKG), String (PBF)

  • Nullable: true

  • Max Length: 250

  • Data Schema Version: 1.0

except

Specifies the vehicle types for which the turn restriction does not apply. Multiple vehicle types will be seperated.

  • Data Types: String (GPKG), String (PBF)

  • Nullable: true

  • Max Length: 50

  • Data Schema Version: 1.0

from

The wayid of the first TransportLink involved in the turn restriction.

  • Data Types: Integer (GPKG), String (PBF)

  • Nullable: false

  • Max Length: 10

  • Data Schema Version: 1.0

to

The wayid of the last TransportLink involved in the turn restriction.

  • Data Types: Integer (GPKG), String (PBF)

  • Nullable: false

  • Max Length: 10

  • Data Schema Version: 1.0

via

A list of wayid's (and/or nodeid's). When there are only two links involved in the turn restriction, via is the node at the junction at which the turn restriction applies. When there are more than two links involved in the turn restriction, via is a list of all links which are not the from or to link.

  • Data Types: String (GPKG), String (PBF)

  • Nullable: false

  • Max Length: 250

  • Data Schema Version: 1.0

geometry

2D geometry for the feature.

  • Data Types: Geometry (GPKG), Geometry (PBF)

  • Nullable: false

  • Data Schema Version: 1.0

  • Geometry Type: MultiLineString

Last updated