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

This example Overpass query for node["cuisine"="coffee_shop"] will not return nodes tagged "cuisine"="coffee_shop;sandwiches", i.e. with multiple values.

  1. Shouldn't it?
  2. Any workarounds?

asked 26 Feb '19, 17:18

robinmetral's gravatar image

robinmetral
1867718
accept rate: 0%


You can use a regular expression

node["cuisine"~"coffee_shop"]

I would also suggest looking for ways (and relations)

nwr["cuisine"~"coffee_shop"]
permanent link

answered 26 Feb '19, 18:43

andrewblack's gravatar image

andrewblack
3651214
accept rate: 57%

Amazing @andrewblack, thanks! I didn't know of the nwr shortcut either, it's saving my query two lines 👍

(26 Feb '19, 19:16) robinmetral

nwr is fairly new. It makes it easier/safer to edit. How many times have I edited node and not way.

(26 Feb '19, 19:20) andrewblack

FYI there are 41732 coffee_shops in the world. Next step is dealing with this kind of data

(26 Feb '19, 19:32) robinmetral
Your answer
toggle preview

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:

×483

question asked: 26 Feb '19, 17:18

question was seen: 2,688 times

last updated: 26 Feb '19, 19:32

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