Skip to content
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

Reverse: improve handling of unnamed streets on address-level lookup #3412

Open
lonvia opened this issue May 5, 2024 · 1 comment
Open

Comments

@lonvia
Copy link
Member

lonvia commented May 5, 2024

When doing reverse lookup on an address level, the algorithm usually looks for the closest housenumbers and streets. If the closest object is a street, it then tries to qualify the address by looking for the closest address the street is a parent of. The reason we do it that way is simple: assume the reverse geo coordinate falls right on a street. if Nominatim just looks for the closest housenumber, it might find an address that belongs to a different street because we happen to be near a street corner and the house gets its address from another nearby street. The result is that Nominatim reports a confusing address. By looking up the street and then going back to the housenumber, the street name reported will always be right.

The algorithm fails when the closest street is an unnamed service road. Nearby housenumbers will get a named street as a parent, not the service road. So going from service road to nearby housenumber will pretty much always fail. In case of an unnamed road, it might be preferable to simply look for addresses in the nearby area.

To be considered: there are countries where streets usually do not get a name. Whatever the algorithm does, it needs to deliver sensible results in that case.

@matkoniecz
Copy link
Contributor

matkoniecz commented Jul 15, 2024

To be considered: there are countries where streets usually do not get a name. Whatever the algorithm does, it needs to deliver sensible results in that case.

(...)

it then tries to qualify the address by looking for the closest address the street is a parent of

what about cases where street is named but has no matching addresses (addresses are present, roads are named but addresses are not using streets as part of their address?)

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

No branches or pull requests

2 participants