Skip to content

Make POIs on unnamed streets searchable by address - #4168

Closed
pawank925 wants to merge 1 commit into
osm-search:masterfrom
pawank925:master
Closed

Make POIs on unnamed streets searchable by address#4168
pawank925 wants to merge 1 commit into
osm-search:masterfrom
pawank925:master

Conversation

@pawank925

Copy link
Copy Markdown

Fixes #4133

POIs that are parented to an unnamed street do not inherit any address terms because the parent street has no entry in the search_name table. The nameaddress_vector in the search_name table stays empty and the POI can only be found by its own name.

When the parent has no search terms, look up the address objects of the parent in place_addressline, take their name_vector entries from search_name and merge them into the address terms of the POI.

Adds a BDD test that verifies a named POI on an unnamed street inside a city is found when searching for the name together with the city.

@pawank925
pawank925 force-pushed the master branch 4 times, most recently from 6ceddc1 to df7048b Compare August 16, 2026 18:00
When a POI is parented to an unnamed street, the street has no entry in
the search_name table. The POI then gets no address terms at all and
can only be found by its name. Use the address objects of the parent
from place_addressline to fill in the missing address terms.
@pawank925

Copy link
Copy Markdown
Author

branch was wrong

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

Successfully merging this pull request may close these issues.

POI object parented to an unnamed streets are not searchable by address

1 participant