-
Notifications
You must be signed in to change notification settings - Fork 58
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
List of citycode #615
Comments
I'm afraid it's not possible (i'm also very interested in such a way to filter results)... |
I amy be wrong (new to addok since few time)- but I think this is possible |
Sorry, but it doesn't work... |
Indeed.
Discovered that also today on my own problem.
There is a way to tackle the problem (not so elegant but performant): for all cities names that corresponds to multiple citycodes, you add all possible citycodes in JSON (vector of city codes).
Cf. #267
Obviously this issues refers to the cases we speak about the same city and subcities (which is also my case today) but still having all citiescodes during indexing would work.
Only drawback is if you have strreets having sames in both cities.
(I said not elegant).
That said, you can also write a small wrapper that will perform 2 times the quey. Using filters in query drastically improves query time.
Sorry for deception;
Eric
Eric Lecoutre
Data Science Advisor
eric.lecoutre@welovedatascience.com<mailto:eric.lecoutre@welovedatascience.com>
+32(0)473 35 50 17
From: Adrien VAN HAMME <notifications@github.com>
Sent: 12 April 2020 16:50
To: addok/addok <addok@noreply.github.com>
Cc: Eric Lecoutre <eric.lecoutre@welovedatascience.com>; Comment <comment@noreply.github.com>
Subject: Re: [addok/addok] List of citycode (#615)
Sorry, but it doesn't work...
You can try these :
https://api-adresse.data.gouv.fr/search/?q=82+carmagnole
https://api-adresse.data.gouv.fr/search/?q=82+carmagnole&citycode=13208&citycode=77296
https://api-adresse.data.gouv.fr/search/?q=82+carmagnole&citycode=77296&citycode=13208
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#615 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AHIWSHKGFSQOYVMCE3IAXZ3RMHIJHANCNFSM4LVBI5IQ>.
|
Implemented by 892fb3d |
Hello, Which returns no result. Has the api-adresse.data.gouv.fr not been updated with this patch since? (also, I guess the issue should be closed if this feature is now implemented) |
Hi Fabien ! |
hi everyone,
is it possible to specify a list of citycode in request api parameter to restrict search on a list of city?
Thanks
The text was updated successfully, but these errors were encountered: