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 · 0 comments
Open

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

lonvia opened this issue May 5, 2024 · 0 comments

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.

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

1 participant