Overpass query example

Mountain huts

Find staffed and unstaffed mountain huts. Example: Switzerland.

Staffed mountain huts are tourism=alpine_hut, unstaffed shelters tourism=wilderness_hut. Many carry ele, capacity (beds) and operator.

The query

[out:json][timeout:60];
area["ISO3166-1"="CH"][admin_level=2]->.ch;
nwr["tourism"~"^(alpine_hut|wilderness_hut)$"](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. One regular expression matches both hut types.
  2. out center; gives a point for huts mapped as buildings.

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 →