You are in: Rob's OSM Stuff » UK PRoW » Ref Formats

Public Rights of Way Reference Formats

The table below gives details of the formats used for Reference numbers given to Public Rights of Way by the various surveying authorities in England and Wales, which should then be used in the prow_ref=* tag in OpenStreetMap. Not all authorities have an official format and not all are consistent in their use. The formats shown below are what are currently in use in my PRoW Progress Tool, but some may need correcting/improving. Hover the mouse of the icons on the right-hand columns to view regular expression and printf format strings for these formats. See below the table for an explanation of the fields.

Surveying authority prow_ref format Type values (FP,BR,RB,BY) RE Pf IDs
Bath and North East Somerset [PID][Num][sfx] regex printf
Buckinghamshire [Parish Name]␣[Type]␣[Num][sfx] Footpath Bridleway Restricted Byway Byway regex printf parishes.tsv
Cambridgeshire [Parish Name]␣[Type]␣[Num][sfx] FP BR RB BY regex printf
Cornwall [Parish Name]␣[Type]␣[Num][sfx] FP BR RB BW regex printf parishes.tsv
Derbyshire [Parish Name]␣[Type]␣[Num][sfx] FP BW RB BOAT regex printf parishes.tsv
Devon [Parish Name]␣[Type]␣[Num][sfx] Footpath Bridleway Restricted Byway Byway regex printf parishes.tsv
Dorset [PID]/[Num] regex printf parishes.tsv
East Riding of Yorkshire [Parish Name]␣[Type]␣[Num][sfx] FP BR RB BY regex printf
East Sussex [Parish Name]␣[Type]␣[Num][sfx] FP BR RB BY regex printf parishes.tsv
Essex [Parish Name]␣[Type]␣[Num][sfx] FP BR RBWY BWY regex printf parishes.tsv
Gloucestershire [PID]␣[Num][sfx] FP BR RB BOAT regex printf parishes.tsv
Hampshire [Parish Name]␣[Type]␣[Num][sfx] FP BR RB BY regex printf parishes.tsv
Herefordshire [PID][Num][sfx] regex printf parishes.tsv
Hertfordshire [Parish Name]␣[Type]␣[Num][sfx] FP BR RB BY regex printf parishes.tsv
Isle of Wight [PID][Num][sfx] regex printf
Kent [PID][Num][sfx] regex printf
Lancashire [Parish Name]␣[Type]␣[Num][sfx] FP BW RB BOAT regex printf parishes.tsv
Norfolk [Parish Name]␣[Type]␣[Num][sfx] FP BR RB BY regex printf
North Yorkshire [PID]/[Num][sfx] regex printf
Oxfordshire [Parish Name]␣[Type]␣[Num][sfx] FP BR RB BOAT regex printf parishes.tsv
Somerset [PID]/[Num][sfx] regex printf parishes.tsv
South Gloucestershire [PID]␣[Num][sfx] regex printf parishes.tsv
Suffolk [Parish Name]␣[Type]␣[Num][sfx] FP BR RB BY regex printf parishes.tsv
Warwickshire [PID][Num][sfx] regex printf parishes.tsv
Worcestershire [PID]-[Num] regex printf parishes.tsv

Download data in JSON format (CC0)

Format Placeholders

In the 'prow_ref format' column in the table above, and the ref-format field in the JSON file, the following placeholders are used:

Capturing groups in regex and input fields for printf

In the 'RE' and 'Pf' columns in the table above, and the ref-regex and ref-printf fields in the JSON file, the regular expression capturing groups and printf input fields are as follows:

  1. Parish name
  2. Parish ID
  3. Right of Way Type
  4. Right of Way Number
  5. Right of Way Suffix

Linked parishes.tsv files

The parishes.tsv files linked from the final column of the table above, and in the parish-list field in the JSON file, contain a list of parishes in the Surveying Authority's area. The file format is tab-seperated-values, and there are at least two columns in the file. The columns are used as follows:

  1. Parish ID (where known)
  2. Parish Name
  3. District Name (optional)
  4. Undefined use (optional)
Icons from FamFamFam Silk, licensed under CC-by 2.5.