then I get Oberkirch in Germany as result. But when I change (to e.g. 2) or remove the "maxRows" parameter then Oberkirch in Switzerland is the first result.
Shouldn't Oberkirch, CH the result too when I set maxRows=1 ?
The problem has disappeared with a new search index. We have not figured out what really caused the issue and have to monitor it. Let me know if you find other issues of the same type.
While implementing the unit tests for this issue I have discovered that there is still something wrong. It is reproducable with the tests and will be fixed asap.
Best
Marc
Edit: The error has been identified and a fix is deployed on the api.geonames.org server. It will be deployed on the other servers with the next release.