UK County abbreviations missing
Hi!
I was checking out libpostal, and saw something that could be improved.
My country is United Kingdom
Here's how I'm using libpostal
I am using libpostal to improve my current data wrangling software.
Here's what I did
10 Lewis Road Kettering Northants NN15 6HE
Here's what I got
{10 House Number}{lewis rd road}{kettering city}{northants nn15 6he house}
Here's what I was expecting
{10 House Number}{lewis rd road}{kettering city}{northants state}{nn15 6he postcode}
If you add UK to the address you get
{Kettering City}{Northants house}{nn15 6he postcode}
For parsing issues, please answer "yes" or "no" to all that apply.
- Does the input address exist in OpenStreetMap? yes - https://www.openstreetmap.org/search?query=lewis%20road%2C%20kettering%2C%20northamptonshire%2C%20nn15%206he#map=19/52.38692/-0.71610
- Do all the toponyms exist in OSM (city, state, region names, etc.)? No - does not recognise Northants
Here's what I think could be improved
Northants is common UK abbreviation of Northamptonshire
(see https://www.familysearch.org/wiki/en/UK_County_Abbreviations)
Is there a way I can add these State abbreviations in like you do for US states?
Many thanks Phil
Hi. Do you mean something like this file? https://github.com/openvenues/libpostal/blob/master/resources/dictionaries/en/toponyms.txt
I found the USA abbreviations in https://github.com/openvenues/libpostal/tree/master/resources/states
If I build a UK abbreviation list, I am not sure how I then get libpostal to use it as this seems the obvious way to do it as
Northants | Northamptonshire Lancs | Lancashire Notts | Nottinghamshire
etc
Could be added I believe @albarrentine is this right? And if so how do I update libpostal to use a gb states list - Thanks!
adding this info is only the first step. Then, most of the time, we'll have to wait until Al runs the pipeline. I've never tried it myself, but I remember it takes 2 weeks and some significant RAM and storage resources.
@philhutch50 May you please publish your full abbreviation file here?
@baerbock I don't really have a full list I started and stopped as unless there is an easy way to import these in and I have had no reply from the man himself yet you will need to code new routines to sort? unless I have missed something?
I ran into the same issue.
Some starting places might be:
- https://www.familysearch.org/en/wiki/UK_County_Abbreviations
- https://langscape.org.uk/about/CountyAbbreviations.html
- https://digimap.edina.ac.uk/webhelp/os/data_information/os_products/supporting/county_abbreviations.htm
- https://www.bahs.org.uk/CountyAbbreviations.html
- https://en.wikipedia.org/wiki/Postal_counties_of_the_United_Kingdom
- http://www.gasconrolls.org/en/editorial_guidelines/appendices/counties-and-their-abbreviation/
Would producing a list of counties and their possible abbreviations help?