libpostal
libpostal copied to clipboard
UK County's being returned in Postcode Field
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