mediagis / nominatim-docker

100% working container for Nominatim
Creative Commons Zero v1.0 Universal
1.08k stars 442 forks source link

Query left-to-right and right-to-left parsing on direct geocoding #409

Closed Afler closed 1 year ago

Afler commented 1 year ago

Hi. If I'll do this: image I'll get the result and it's ok.

But if I'll change the order of the city name which is "moskva" and the street name and the building number which is "ryabinovaya 40a" in the query then I'll get nothing: image

The Nominatim doc says: "q=\<query> is free-form query string to search for. Free-form queries are processed first left-to-right and then right-to-left if that fails." Do i do something wrong? Thanks

Afler commented 1 year ago

UPD: The OSM Nominatim API provides the result for both cases so i expect the same result from my local docker container but there is not: image image

mtmail commented 1 year ago

The openstreetmap.org website is also sending the &viewbox URL parameter (the coordinates the user is currently looking at) and the browser language (&accept-language). You can experiment more at https://nominatim.openstreetmap.org/ui/search.html You can install that debugging interface to run against your own installation, too https://github.com/osm-search/nominatim-ui

mtmail commented 1 year ago

If after further testing you think it's a bug in Nominatim you can open an issue at https://github.com/osm-search/Nominatim/issues It's unrelated to docker