Overpass query example

Vegan and vegetarian places

Find restaurants, cafés and shops with vegan options using the diet:vegan tag. Example: Berlin.

Diet tags such as diet:vegan and diet:vegetarian are set on restaurants, cafés, bakeries and shops. The value says how much is on offer: only for fully vegan places, yes for places with vegan options.

The query

[out:json][timeout:60];
area["name"="Berlin"]["admin_level"="4"]->.a;
nwr["diet:vegan"~"^(yes|only)$"](area.a);
out center;

Run it

Running the query…

Live result from overpass.ch, cached for up to 12 hours. Map data © OpenStreetMap contributors (ODbL).

How it works

  1. Berlin is a city state, so its boundary has admin_level 4.
  2. ~"^(yes|only)$" is a regular expression that matches exactly yes or only.
  3. No amenity filter: any feature with the diet tag is returned, including shops.

Variations

  • Only fully vegan places: ["diet:vegan"="only"].
  • Vegetarian instead: ["diet:vegetarian"~"^(yes|only)$"].

Run it from your code

curl https://api.overpass.ch/v1/YOUR_API_KEY/interpreter \
  --data-urlencode 'data@query.overpassql'

Save the query as query.overpassql. It works the same in Overpass Turbo, QGIS and JOSM.

More examples

All examples →