Open phicote opened 4 years ago
@phicote im currently facing the same problem, have you found any solution to this?
@phicote im currently facing the same problem, have you found any solution to this?
Hello @ezzaimsoufiane, I haven't found a solution, but my knowledge of regular expressions has improved since that time and I might try to take a look. On the other hand, I do not offer any guarantee of success.
Hello @ezzaimsoufiane, I haven't found a solution, but my knowledge of regular expressions has improved since that time and I might try to take a look. On the other hand, I do not offer any guarantee of success.
@phicote would very much appreciate it, i'm trying to addapt this to adresses from France.
Hello Vlad! Congratulations for this amazing work, I really appreciate. However, I noticed that the parser has problems with some cases of French Canadian addresses.
Examples This address doesn't parse at all
This one parse but the result is wrong, occupancy is set to None and city is set to bureau 100 Longueuil
{'full_address': '2545, rue De Lorimier, bureau 100 Longueuil, QC, J4K3P7, Canada', 'full_street': '2545, rue De Lorimier', 'street_number': '2545', 'street_type': 'rue', 'street_name': 'De Lorimier', 'route_id': None, 'post_direction': None, 'floor': None, 'building_id': None, 'occupancy': None, 'postal_box': None, 'city': 'bureau 100 Longueuil', 'region1': 'QC', 'postal_code': 'J4K3P7', 'country_id': 'CA'}
Here are some other examples of addresses that do not parse, but seem valid to me, probably because they contain hyphens, parenthesis or something else:
Could you please take a look? My knowledge of regular expressions is very limited