I wanted to search for bars in a viewbox, but most of them are pubs. This is my search request: https://nominatim.openstreetmap.org/search?q=[bar]&format=json&bounded=true&viewbox=6.408,51.197,6.474,51.231&limit=50

asked 06 Feb, 08:35

Arthurle's gravatar image

accept rate: 0%

The syntax is https://nominatim.openstreetmap.org/search?q=[amenity=bar]&format=json&bounded=true&viewbox=6.408,51.197,6.474,51.231&limit=50 and it works only for a selection of tags, see https://wiki.openstreetmap.org/wiki/Nominatim/Special_Phrases

I agree with SomeoneElse though, Overpass API is the best tool for bounded/nearby POI searches.

permanent link

answered 06 Feb, 12:03

mtmail's gravatar image

accept rate: 30%

If you want to search for something that is explicitly tagged as amenity=bar, I'd suggest using Overpass for that. There's plenty of information on the wiki, but a quick way to find what it will return for a particular area is to click through to it from taginfo. In this case the query looks similar to this, depending on your search area.

permanent link

answered 06 Feb, 11:40

SomeoneElse's gravatar image

SomeoneElse ♦
accept rate: 15%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 06 Feb, 08:35

question was seen: 379 times

last updated: 06 Feb, 12:03

powered by OSQA