Replies: 2 comments
-
The change happened around 2 years ago (Nominatim 4.1) and was deliberate. The country lookup moved to a different table, or rather the extra lookup of country was no longer needed. Basically every place in the database ( |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I don't know exactly which version this change appeared in, but the information returned by detail.php differs.
What did you search for?
I make a request with the parameter addressdetails=1
for example :
https://nominatim.openstreetmap.org/details.php?osmtype=R&osmid=59874&addressdetails=1&format=json&prety=1
What result did you get?
I get in the address array at the end (OK designates an id or a correct value) :
index 4 : “France métropolitaine”, place_id OK, osm_id OK, admin_level 4
index 5 : “fr”, type “contry_code”, ...
index 6 : “France”, type “country”, place_id NULL, osm_id NULL, admin_level NULL
What result did you expect?
But previously, on version 3.3.0, I got :
index 6: “France”, type “country”, place_id OK, osm_id OK, admin_level OK
What is the reason for this change? I haven't found any trace of it in the change logs.
Is it a regression or a change in behavior?
I'm attaching two screenshots, one with the current version of nominatim, the second with our old server version 3.3.0.
Thanks for your answers.
Best regards.
Beta Was this translation helpful? Give feedback.
All reactions