Overpass query example

Migros supermarkets in Switzerland

List every store of a retail chain with the brand tag. Example: all Migros supermarkets in Switzerland.

Chain stores carry brand and brand:wikidata tags. This is how brand and location intelligence teams count stores and find gaps in their own data.

The query

[out:json][timeout:60];
area["ISO3166-1"="CH"][admin_level=2]->.ch;
nwr["shop"="supermarket"]["brand"="Migros"](area.ch);
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. ["brand"="Migros"] matches the brand name exactly.
  2. ["shop"="supermarket"] leaves out the other shop types of the brand (petrol stations, restaurants, DIY stores).

Variations

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 →