Wrong country for "border" cities in Nominatim


I’ve recently installed Nominatim on my server as documented in http://wiki.openstreetmap.org/wiki/Nominatim/Installation.

Basically everything works, but I have a strange issue with cities on a or very close to a country border, e.g. “Oberaudorf,Deutschland” or “Kiefersfelden,Deutschland”. http://nominatim.openstreetmap.org/search reports them correctly to be in <country_code>de</country_code> etc. while my server reports them to be in <country_code>at</country_code>. All other searches I tested on my server are working fine. I’m using a recent planet area extract for testing - it includes areas on both sides of the German/Austrian border.

Any idea what’s going on there ?


It looks like a problem with a recent commit that removed some required country code information. I’ve not committed a fix yet - but I’m working on it. Should be resolved by Monday.