-
Notifications
You must be signed in to change notification settings - Fork 15
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
Belgium addresses fail to parse correctly #63
Comments
Please tell me you value the Belgians and don't leave them waiting on their missing packages ... 😉 This is my attempt for a better working regex for a
This doesn't cover this scenario: My full code:
|
Hi @ericclaeren , Thanks for checking in and contributing! Getting addresses in the correct format from a single line has proven to be a very big challenge that will always lead to edge cases that can't be parsed into the correct fields. What I am particularly interested in, is why the first 7 examples of your list went wrong. They seem to have been placed into the correct fields. Could you please clarify on that one? If it's easier to discuss this by email via our Support desk, feel free to send us an email as well. |
Hi @paazl-jaime Yeah there's no to rule them all, I have overridden Paazl at this time and use the Paazl regex as a fallback when the shared example fails. In this case I have covered quite some scenario's but far from all and not ideal. Well the why, is pretty obvious if you add the addresses provided to your own unit test suite 😄
I'd rather use Github as other customer also may benefit or could provide additional information when running into similar issues. Cheers, Eric |
Hi @ericclaeren, Thanks! That's a clear one. Two points we'd like to make on this matter:
Let us know if you have any questions or remarks! |
Hi @paazl-jaime The first is not an option for us at this time, because labels aren't forcing a correct input and html autocomplete which lots of people use will ignore this, thus leaving us with incorrect addresses. How do you see this in the future if this will be removed from your code? Cheers |
Hi,
On a large production site we are encountering many scenarios for Belgium customers where we run into issues with submitting data to Paazl and where customers aren't getting their packages.
Some are because people tend to enter their full address with postal code and city in the street address lines.
We are trying to prevent this through better labeling and preview the address. But sometimes you can't just win them all.
But there are quite some common Belgium scenarios which fail, based on OrderTest::testParseAddress
All are real examples (anonymized street names and numbers) where packages were returned by the carrier due to an incorrect address.
If have tried to create a 1 to rule them all regex to match this and failed miserably 😬 .
Is there a way you could support more types of address notations for Belgium addresses?
Cheers, Eric
The text was updated successfully, but these errors were encountered: