You are in: Rob's OSM Stuff » UK Addresses » Postcode Errors

OSM UK Postcode Value Errors

Based on OSM UK data from 2024‑07‑21 07:21:58 Z, there are approximately 5867 instances of invalid postcodes in addr:postcode tags on OSM objects. Each addr:postcode tag is first split at semi-colons. Correct formatting of each postcode is then checked using the regular expression /^[A-Z][A-Z]?[0-9][0-9A-Z]? [0-9][A-Z][A-Z]$/. Postcodes are also checked for validity by cross-referencing them with the official Code-Point Open dataset.

In the lists below, clicking on the postcode value performs an Overpass Turbo search, the number in brackets shows the number of OSM objects when there is more than one, 'J+' loads objects with that postcode* into JOSM with the JOSM Remote Control, and 'NC' searches for the nearest current postcode in Code-Point Open.

Empty String

The value of addr:postcode contains an empty string.

No errors of this type found.

Unknown Postal District

The value of addr:postcode is correctly formatted, but the postal district (the part before the space) does not match any postcodes found in the official lists. These errors may be typos, or may be the result of a former postal district whose postcodes have been re-numbered.

No errors of this type found.

Unknown Postal Sector

The value of addr:postcode is correctly formatted and the postal district (the part before the space) exists, but the postal sector (the number after the space) does not match any postcodes found in the official lists. These errors may be typos, or may be the result of a former postal sector whose postcodes have been re-numbered.

Unknown Postal Unit

The value of addr:postcode is correctly formatted and the postal sector (the part before the space and the number after it) exists, but the postal unit (the final two letters) does not match any postcode found in recent official lists. These values may be errors from typos, errors in sources used by mappers, or may arise for new developments where Code-Point Open has not yet been updated to include the new units. Note that the letters {C,I,K,M,O,V} can never appear in the final two positions of a postcode.

Old Postal Unit

The value of addr:postcode is correctly formatted and the postal sector (the part before the space and the number after it) exists, but the postal unit (the final two letters) matches an old postcode that was previously in use but is no longer present in the current official list. Be careful with just updating these postcodes to a current value. It is reasonably likely that the postcode in OSM has been withdrawn because the entities it belonged to no longer exist (e.g. a Large user like a bank has closed, or some houses have been demolished for redevelopment).

Badly Cased Postcode

The value of addr:postcode is correctly formatted apart from the case of one or more letters. (No further checks have been done as to the existence of the postcode.)

Badly Spaced Postcode

The value of addr:postcode is correctly formatted apart from omitted or superfluous space characters. (No further checks have been done as to the existence of the postcode.)

Letter/number transliteration

The value of addr:postcode is correctly formatted apart from the transliteration of a letter or number into a similar looking character. (No further checks have been done as to the existence of the postcode.)

No errors of this type found.

Badly Formatted Postcode

The value of addr:postcode is incorrectly formatted, and the problems are more than just a simple spacing or letter-case issue. (Values with the latter two issues are listed in other sections of this report.) Common problems include erroneously transcribing similar-looking letters and numbers, missing or extraneous characters, and holding down shift while typing a number.

Partial Postcodes (district)

The addr:postcode tag contains only the outbound part identifying the postal district.