Hi everyone, I installed locally nominatim via docker image, using the following docker-compose
the image is the latest available and the pbf file is fresh new. I realized that the query https://nominatim.openstreetmap.org/reverse?lat=48.45851286058211&lon=7.885465667596962&format=json&accept-language=en online shows the field "address.state" and enriches also the "display_name" with the same information, while the local one doesn't. Online response:
Local response:
Does anybody know why I'm missing the "state" information locally? I double-checked on the general configuration of the docker image, but I couldn't find anything relevant related to Germany addresses. Thanks for your help! Roberto asked 22 Dec '22, 16:15 RMeloni00 |
The extract you are using doesn't have the full state boundary of Baden-Würtemberg. That is why it doesn't show up in the result. Use http://download.geofabrik.de/europe/germany/baden-wuerttemberg-latest.osm.pbf and you should be fine. answered 22 Dec '22, 16:51 lonvia Hi lonvia, thank you very much for your answer, indeed it was that. Out of curiosity, where can I find some doc to better understand how it works? I mean...that extract doesn't have the full boundary of Germany either, but the country is displayed anyway. Of course, it's the country, so that might be differently handled but still I'm curious of how it works! Thanks again for your help!
(23 Dec '22, 10:18)
RMeloni00
1
Nominatim has a fallback for countries but that's all. For any other boundaries, you either need to make sure your extract covers all of it or manually add the boundaries to the extract before import. Sadly, the latter requires some level of insight into how OSM works. I can't offer a simple solution.
(23 Dec '22, 11:16)
lonvia
|