Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

give cities a higher priority over higher admin entities in search #5010

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment
Closed

Comments

@openstreetmap-trac
Copy link

Reporter: dieterdreist
[Submitted to the original trac issue database at 10.52am, Friday, 11th October 2013]

E.g. if you search for "Olgastr. 4, Tbingen" you do not get the Olgastr. in Tbingen but the first hits are other Olgastr. in other towns, because there is also a Regierungsbezirk named "Tbingen" (admin_level 5 I think). If you enter only a street and another word, it should be asumed that this other word is a city/town.

@openstreetmap-trac
Copy link
Author

Author: lonvia
[Added to the original trac issue at 7.32pm, Tuesday, 3rd December 2013]

We don't really store the type of the address parts for searching, so we cannot make assumptions like that.

There are a few heuristics in place to get that sorted out via reranking after the lookup (you'll see it works ok for "Olgastr, Tbingen"). The problem here is the same as in #5052, there are too many objects that match 'Olgastr, Tbingen', so search stops before the right one is found (the one where house number 4 belongs to) and the reranking never kicks in.

Closing in favour of #5025.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant