Skip to content

UK County's being returned in Postcode Field #673

@philhutch50

Description

@philhutch50

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions