Search function issues

I’m new to using OpenStreetmap. The biggest disatvantage against google maps are the locations and serching restaurants etc. Lack of places and no grading system.

This is an example of the basic of the basics that should work better:

  • I have a map view of a part of the city open in Goiânia, Brazil, there is a bar called “Monkey Karaoke Bar” that is already added to OpenStreetMap
  • I write “Monkey” on the search and hit enter
  • The search takes me to a place called Monkey in Ica, Peru

Even if there are no result that would match to my search, I don’t want the map view to move to some random place on the other side of the world. And in this case there was a place that would match to the search.

Another exaple. I have downtown Helsinki, Finland open on the map and I look for craft beer bar, so I type “craft beer” - the search takes me to some location in Moscow, Russia

You should understand that actually, OpenStreetMap is not a map, but a database of map data. We collect geographic data such as the location and name of a bar and enter it in the database. Many map apps use those data to create maps (we call them “data consumers”) and allow searching for items on those maps. It is the search function of one of those apps that you are not happy with. Can you tell us which app you are using?

The default map shown at https://www.openstreetmap.org/ is called Carto, see here for more info and how to report complaints about that map style. The search function there is run by Nominatim, see Nominatim Demo

Yes, Google Maps has much better search (even when operating on worse data) than osm.org website or various openstreetmap-based products

it is more or less known problem, but solutions are not very obvious

in addition Nominatim powering osm.org is not really trying to work for generic features and terms such as “craft beer”

that may be a Nominatim bug/design issue but I am not fully sure

Also, keep in mind that openstreetmap.org is intended for editors (who want to find everything, everywhere :slightly_smiling_face:). The search results show only a few results but there is the “more results” button. Extending the search parameters a little will limit wat is found.

Aside monkey is a pretty general word thus will have many results. Too many to easily find the bar.

So extending the search parameters to for instance:

  • “monkey brazil” - stil lots of results, but for me two clicks on more result found all results for these parameters (including the bar).
  • “monkey goiania” - Single result being the bar
  • 'monkey karaoke" - Single result being the bar
  • 'karaoke monkey" - Single result being the bar

In other words the more general the search parameters the more results.

For a website that takes OSM data and tries to be more of a direct replacement for Google Maps, you might like to try https://cartes.app/ .

As others have said, the Openstreetmap website is primarily for mapping.
For the sort of functionality you are asking for you need to use an app which uses OSM data such as OSMand or comaps.

The site I was using was https://www.openstreetmap.org/ and it had a link to this forum, so I assumed that this is the place to report.

The impression I get from these answers is that there is not much hope for improvement / not ment for normal users so maybe I find a better app.

When you open Google Maps, it only loads the background map and ‘point-of-interest’ (POI) data for the area you can see and perhaps surrounding areas. When you search, it searches that area first. If the search only gets weak results, it then searches elsewhere.

When you open OSM, it only loads the background map and very little else. When you search, you are searching the entire Nominatum database that covers the whole world. It then gives the best matching result, with no context of the map view.

A week ago we had a different post from someone who thought that openstreetmap.org was an usable map app. When I open the website front page with a fresh browser, I first see the welcome message

Welcome to OpenStreetMap! OpenStreetMap is a map of the world, created by people like you and free to use under an open license.

Nothing there indicates that OSM is primarily a map database, and not just the map product that loads in front of your eyes when you open the main page of the project. Why is it not indicated clearly that OpenStreetMap is not only that one map with the crappy search on the openstreetmap.org website? With the current design, when someone hears “you should try out OpenStreetMap”, they’ll Google it, open the website, see the lack of basic functionality, and leave thinking that OpenStreetMap sucks, instead of recognizing it as a technology that empowers the global geographic information ecosystem.

Should we finally address this? It’s off-topic for this thread.

Agreed. Nothing indicates that the site would be targeted only to developers. It has same layout and basic functions as, for example, google maps.

No harm in improving the search for developers either though. If the issue is with the locations/map data, maybe it does not work so well on the other apps using openstreetmaps either.

What would be a good way to improve the map data to get better results, for example in case of a bar of specific type?

Now I see attribute amenity=pub, that is quite general definition. Is there a different tag that would define the type of the place more accurately or should you add several amenity= tags for the same place, for example amenity=craft beer, amenity=cervejas especiais, amenity=brewpub?

They would be different attributes rather than repeating the amenity tag. See “tags used in combination” and “additional tags” on the wiki page for amenity=pub.

That won’t necessarily help with search on the main website which is more an address / place name search than a POI search.

But some of these attributes can be searched/filtered in other apps. e.g. this screenshot from OsmAnd shows some pub attributes.

I think the Monkey example raises a fair point. If someone is already looking at Goiânia, a matching place nearby should probably get more weight than one on another continent.

Does the website already pass the current map bounds to Nominatim? I noticed Nominatim supports viewbox for geographic preference, so I’m wondering whether this is more of a ranking issue.

Even if the distant result is technically the best match, jumping the map straight to Peru feels like a strange default. Showing the nearby matches first, with an option to search globally, might be less frustrating.