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

autocomplete not returning the correct postalcode #1589

Open
pcampospaulo opened this issue Dec 6, 2021 · 1 comment
Open

autocomplete not returning the correct postalcode #1589

pcampospaulo opened this issue Dec 6, 2021 · 1 comment
Labels

Comments

@pcampospaulo
Copy link

Describe the bug

I've found a strange behaviour when searching for a postal code "AB10 1ST"

Steps to Reproduce

https://pelias.github.io/compare/#/v1/autocomplete?layers=postalcode&focus.point.lat=54.753161&focus.point.lon=-2.554325&text=AB10+1ST

with the query above several results are returned but not the correct ("AB10 1ST"):
AB10 1GS
AB10 1WS
AB10 1ZX
AB10 1ZG
...

The expected result is found if a comma is added to the end "AB10 1ST,"

https://pelias.github.io/compare/#/v1/autocomplete?layers=postalcode&focus.point.lat=54.753161&focus.point.lon=-2.554325&text=AB10+1ST%2C

Additional information

parsers return the data for both inputs:
"parsed_text": {
"subject": "AB10 1ST"
},

@missinglink
Copy link
Member

Thanks for the report, after some investigation we found that there is a conflict with the functionality which flattens English diacriticals such as 1st, 2nd, 3rd, 4th but we're still discussing a fix for it.

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

No branches or pull requests

2 participants