Replies: 1 comment 3 replies
-
Nominatim always needs an OSM object to return. If you only import an extract, then it can still use the fallback names, to find out that you where looking for the country, but it doesn't have the relevant data to return. I admit that this is not very satisfying. Nominatim could return an artificial object instead made up of the information from the country_name table. That would need to be implemented, of course. Another quick-fix solution for you is to grab the country relations from OSM and import those into your existing database using |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, what data do I need to import into my Nominatim instance to resolve country names?
e.g. in the public instance I can query this and get the expected result: https://nominatim.openstreetmap.org/ui/search.html?q=united+states
But if I run that query on my instance I get some result in South Africa just because I have imported https://download.geofabrik.de/africa/south-africa.html but I don't have the US in my database.
I don't want to import the whole planet but surely it should be possible to resolve country names without needing to import everything?
Is this what the Fallback Country Boundaries is for? I'm on Nominatim 4 but the equivalent docs aren't very clear about it.
Otherwise is there a dataset available for this?
Many thanks
Beta Was this translation helpful? Give feedback.
All reactions