Datatypes › United Kingdom › Geographic identifiers
Ordnance Survey National Grid reference
ID gb_os_grid_reference
DatatypeNot PIIidentifierDraft
This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).
Location on the Ordnance Survey National Grid of Great Britain written with the two letters of a 100 km square (SD, TQ) and an even number of digits, half eastings and half northings: 4 digits give a 1 km square, 10 digits a 1 m point. The digits are often split by spaces (SD 97624 17311). The Irish Grid of Northern Ireland uses one letter instead.
- Categories
- Geographic identifiers
- Countries
- United Kingdom
- Languages
- English
- Quality
- 85/100 · missing: mapping (Wikidata, Schema.org, ...), translation
- Metacrafter rules
- 2 rules (0 by field name, 2 by value)
gbosgridreferencefieldvaluedata, gb/gb_geo.yamlgbosgridreferencevaluedata, gb/gb_geo.yaml
- Supported by tools
- metacrafter
Regular expression
^[HJNOST][A-HJ-Z] ?(?:\d{2}|\d{4}|\d{6}|\d{8}|\d{10}|\d \d|\d{2} \d{2}|\d{3} \d{3}|\d{4} \d{4}|\d{5} \d{5})$
Python re syntax.
Test a value
Examples
| Value | Description |
|---|---|
| SD 97624 17311 | Scheduled monument in Calderdale, 10 digits |
| TQ 873 846 | Shellfish sampling point, 6 digits |
| SE1735221689 | Without spaces |
| TL97441340 | 8 digits |
| SD 9762 173 invalid | Odd number of digits |
| XY 123 456 invalid | No such 100 km square |
| TQ invalid | No digits |
Sources
Use this record
- Page URL:
https://registry.apicrafter.io/datatype/gb_os_grid_reference - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/GB/geo/gb_os_grid_reference.yamlon GitHub