-
-
Notifications
You must be signed in to change notification settings - Fork 719
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
postalcode before vs after city name returns different results #2167
Comments
@webprogrammierer I added links to the wrong and correct result, just in case they change over time. If you're curious what happens in the background check the 'debug output' link on top of the result pages. |
Thank you. Who can solve this problem? If it is not solved within a few days I will have to use Google API instead. |
It's not a trivial issue to fix. If you're on such a strict timeline, it's better to select a different software. |
Your free-form queries do not recognize which part of the search query is the postalcode? If not, it maybe not trivial. The postalcode is a number, 4 oder 5 digits for the most countries. But if so it can be easy! A lot of European countries are using this order: So millions and millions of people are used to write the addresse in this order " ... postalcode city" and NOT like this "... city postalcode". I do not understand why this problem was not solved many years ago. |
Thanks for your feedback. It's now in our issue tracker and we will do our best to fix it in coming Nominatim releases. |
Results where the housenumber was dropped are an unlikely result when they refer to something other than a street. Therefore increase their result rank so that other matches are tried first before choosing them as a result. Improves osm-search#2167.
This is not fixable. The two queries have a different interpretation in Nominatim. The first one is "find me a postcode 9400 that has Wolfsberg as address", the second is "find me a place called Wolfsberg near postcode 9400". So different results are to be expected. |
What did you search for?
What result did you get?
If searching for a City that there is in 2 different federal states (same name, different postalcodes):
We get a wrong result with free-form queries if the postalcode is entered before the city name:
What result did you expect?
Searching for "9400 Wolfsberg AT" or "Wolfsberg 9400 AT" should both result in the same coordinates (Wolfsberg in Carinthia).
Further details
This problem also occurs when using the PHP packages "geocoder-php/nominatim-provider". It results in wrong coordinates, because there is no chance to change the word order of the query in the PHP script that uses the "geocoder-php/nominatim-provider" package.
That's why the problem should / must be solved by Nominatim directly.
Both searches 1) and 2) must result in right coordinates because the postalcode is entered corretly in both cases.
The same problem exists for a lot of cities (all cases where city have the same name!!!!).
Can you change / repair this?
The text was updated successfully, but these errors were encountered: