Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UK County's being returned in Postcode Field #673

Open
philhutch50 opened this issue Oct 14, 2024 · 3 comments
Open

UK County's being returned in Postcode Field #673

philhutch50 opened this issue Oct 14, 2024 · 3 comments

Comments

@philhutch50
Copy link

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 use it to build keys for our internal address matching softwar


Here's what I did

16 Southfield Drive Barton Seagrave Northamptonshire NN15 5YQ

}

Here's what I got

Result:

{
"house_number": "16",
"road": "southfield drive",
"city": "barton seagrave",
"house": "northamptonshire nn15 5yq"

So I tried adding United Kingdom

Result:

{
"house_number": "16",
"road": "southfield drive",
"city": "barton seagrave",
"postcode": "northamptonshire nn15 5yq",
"country": "united kingdom"
}


Here's what I was expecting

Northamptonshire, Buckinghamshire, Gloucestershire are not being correctly recognised within an address and the postcode field is not always returning a correct 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/#map=19/52.373206/-0.694982
  • Do all the toponyms exist in OSM (city, state, region names, etc.)?
    Yes
  • If the address uses a rare/uncommon format, does changing the order of the fields yield the correct result?
    No
  • If the address does not contain city, region, etc., does adding those fields to the input improve the result?
  • If the address contains apartment/floor/sub-building information or uncommon formatting, does removing that help? Is there any minimum form of the address that gets the right parse?

Here's what I think could be improved

UK Counties not being recognised correctly

@brianmacy
Copy link

brianmacy commented Oct 14, 2024 via email

@philhutch50
Copy link
Author

philhutch50 commented Oct 14, 2024 via email

@brianmacy
Copy link

brianmacy commented Oct 14, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants