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

Problematic behavior with street names that start with a number (when this number is also one of its housenumbers) #813

Open
AdrienVH-c2c opened this issue Dec 22, 2023 · 1 comment

Comments

@AdrienVH-c2c
Copy link
Contributor

AdrienVH-c2c commented Dec 22, 2023

Hi !

I would love to have some feedback from users about dealing with street names that start with a number, when this number is also a housenumber of this street. We have a lot of cases in France, especially when it comes to dates or military references...

Let's have an example...

About the "Rue du 8 Mai 1945" in Nevers (France)...

If I'm searching "12 rue 8 mai 1945"

https://api-adresse.data.gouv.fr/search/?q=12+rue+8+mai+1945&citycode=58194

I get the good result ✅ : 12 Rue du 8 Mai 1945 58000 Nevers (housenumber 58194_2820_00012)

If I'm searching "rue 8 mai 1945"

https://api-adresse.data.gouv.fr/search/?q=rue+8+mai+1945&citycode=58194

I get the good result ✅ : Rue du 8 Mai 1945 58000 Nevers (street 58194_2820)

if I'm searching "8 mai 1945"

https://api-adresse.data.gouv.fr/search/?q=8+mai+1945&citycode=58194

I get the wrong result ❌ : 8 Rue du 8 Mai 1945 58000 Nevers (housenumber 58194_2820_00008)

Some other examples...

In Pau (France)

"10 avenue 14 juillet"
https://api-adresse.data.gouv.fr/search/?q=10+avenue+14+juillet&citycode=64445
✅ (housenumber 64445_3580_00010)

"avenue 14 juillet"
https://api-adresse.data.gouv.fr/search/?q=avenue+14+juillet&citycode=64445
✅ (street 64445_3580)

"14 juillet"
https://api-adresse.data.gouv.fr/search/?q=14+juillet&citycode=64445
❌ (housenumber 64445_3580_00014)

In Les Septvallons (France) :

"8 rue 6 regiment infanterie"
https://api-adresse.data.gouv.fr/search/?q=8+rue+6+regiment+infanterie&citycode=02439
✅ (housenumber 02439_i5qluy_00008)

"rue 6 regiment infanterie"
https://api-adresse.data.gouv.fr/search/?q=rue+6+regiment+infanterie&citycode=02439
✅ (street 02439_i5qluy)

"6 regiment infanterie"
https://api-adresse.data.gouv.fr/search/?q=6+regiment+infanterie&citycode=02439
❌ (housenumber 02439_i5qluy_00006)

@jdesboeufs
Copy link
Member

It's definitely related to tokenization.
There is no fallback on "street mode".

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

No branches or pull requests

2 participants