我有以下问题。我想使用 Nominatim 从文本框值中查找坐标我还添加了一个带有国家/地区的选择列表以便更容易找到。但问题是:我何时使用 q 参数:
http://nominatim.openstreetmap.org/search?format=json&q=Berlin&country=Germany
这给了我一些其他的柏林人,例如在美国。但是当我使用 q 的 city 参数时,它的工作正常。
http://nominatim.openstreetmap.org/search?format=json&city=Berlin&country=Germany
但问题是我不能始终使用城市参数,因为可能有一个城镇安装了城市。