osm-search / Nominatim

Open Source search based on OpenStreetMap data
https://nominatim.org
GNU General Public License v3.0
3.18k stars 714 forks source link

Search should use `amenity=university` polygons (and other polygons used as "campuses") as enclosing features #2363

Open stragu opened 3 years ago

stragu commented 3 years ago

Is your feature request related to a problem? Please describe.

Searching for Richards Building, The University of Queensland does not return any result, even though Richards Building is enclosed by the multipolygon The University of Queensland (tagged as amenity=university and name=The University of Queensland).

In this example, it wouldn't be too hard to look for "Richards Building" and find the right one in the list, but imagine looking for "Building 5" without specifying which university you are referring to...

Describe the solution you'd like Using the university grounds as an enclosing feature for searches would return better results, given that it is common to search for a building located on a university campus. This method is used for admin areas (cities, suburbs, countries...) without requiring addr: tags, I believe?

This would also be applicable to and useful for other areas like amenity=school or amenity=hospital.

Describe alternatives you've considered Navigating a list of dozens of irrelevant results is impractical. Using an administrative area instead of the university name might not be an option if the user does not know which campus it is in, or what is the relevant administrative area.

lonvia commented 3 years ago

I generally agree that it would be nice to have that. Sadly it means that Nominatim internally needs to introduce an additional addressing level between streets and buildings. This needs some fundamental redesign work.