NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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 '20, 08:35

Arthurle's gravatar image

Arthurle
36335
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 '20, 12:03

mtmail's gravatar image

mtmail
4.8k1574
accept rate: 27%

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 '20, 11:40

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866
accept rate: 16%

Follow this question

By Email:

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

By RSS:

Answers

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:

×689
×193
×94

question asked: 06 Feb '20, 08:35

question was seen: 2,202 times

last updated: 06 Feb '20, 12:03

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum