I’ve been through the list here: addr:postcode | Keys | OpenStreetMap Taginfo Ireland and Northern Ireland of EirCodes and UK postcodes in Northern Ireland and the list here of postal districts: addr:postal_district | Keys | OpenStreetMap Taginfo Ireland and Northern Ireland
Both lists need tidying up.
An Eircode is split into a Routing Key (the first 3 characters) and a Unique Identifier (the last 4 characters).
On OSM, we treat the Routing Key as addr:postal_district=*.
On OSM, we treat the full Eircode as addr:postcode=*. We never use just the Unique Identifier.
Of the 36 letters and numbers, some are avoided, e.g. to avoid confusion between the letter ‘o’ and zero. This leaves 25 available characters.
Very few routing keys are used - only 139 of an available 15,625 or theoretical 46,656.
===========================
Dud addr:postcode=*
Just a city or county
- Co Cavan
- Co Westmeath
- Co Wicklow
- Co. Clare
- Co. Roscommon
- Co. Wicklow
- Dublin
- Kildare
Just a number (likely to all be Dublin postal districts)
- 2
- 4
- 9
- 24
Dublin postal districts, not EirCodes.
- D2
- D5
- D05
- D6w
- D08
- D11
- D12
- D14
- D16
- D18
- Dublin 2
- Dublin 4
- Dublin5
- Dublin 8
- Dublin 9
- Dublin 13
- Dublin 15
- Dublin 18
- Dublin 22
- Dublin 24
Eircode + other stuff
- Clare V95
- Dublin 15, D15 E77C
At best, a fragment of an Eircode
- F12
- H53
- H62
- H91 DV
- N39
- X91
- E191
- EYN8
- K7W0
- NX3V
- XC3C
Two EirCodes!
- F91 PX34 & F91 VP11
- F91 X023 & F91 X313
- F91 X856 & F91 YR52
- F91 Y201 & F91 E124
- T23 DR5V;T23 PX5T
Too many spaces in EirCode
- D 02 XE 80
- V 92 M2S7
NOT an Eircode
- 1609 (50 km off the coast of Wexford, should be in South Africa)
- DX 6018 (Likely a DX courier number)
- HVJ47P (No idea)
- LA3 2XF (Heysham in England, included because it is on the last node of a ferry route to Warrenpoint)
- R561 (Road number)
- Unit 4 (Unit number)
- WXX7+2MM (Plus Code)
- WXX7+37M (Plus Code)
===========================
Dud addr:postal_district=*
Just a number.
- 1
- 2
- 4
- 12
- 14
- 15
- 17
- 22
All other addr:postal_district=* are in the format addr:postal_district=D01 or addr:postal_district=Dublin 1. I don’t think that poses a particular problem.
===========================
Separately, EIrCode recommends that when EirCodes are stored on a computer system, that the space character should be dropped.
Having a consistent pattern (either all with a space or all without a space) makes them more sortable.
Leaving out the space character makes them more searchable in web searches - the search engines think, for example, that F91 YR52 (Collooney, Sligo) is somehow connected to Y14 YR52 (Arklow, Co. Wicklow), because they both have YR52 in them.
Do we want to delete the space characters from EirCodes (not UK postcodes)?