Overpass query example

Peaks without an ele tag

Find summits that have no height in OpenStreetMap, with a reference height from the elevation model. Example: the Valais and Mont Blanc.

A summit without ele is a gap in the map: many maps and apps show the height next to the name. This query finds peaks without one, and elevation=1 adds the height of the 90 m elevation model for reference, so you can start with the highest.

Don't copy that value into ele. On summits the model reads tens of metres too low (see peaks with their height). Use it to sort the list, then take the height from your own survey or from a source whose licence allows its use in OpenStreetMap.

The query

[out:json][timeout:60];
node["natural"="peak"][!"ele"](45.8,6.8,46.6,8.5);
out;

Run it

Running the query…

Live result from overpass.ch, cached for up to 12 hours. Map data © OpenStreetMap contributors (ODbL). Heights produced using Copernicus WorldDEM™-90 © DLR e.V. 2010-2014 and © Airbus Defence and Space GmbH 2014-2018 provided under COPERNICUS by the European Union and ESA; all rights reserved. Sea depths: GEBCO Compilation Group (2026) GEBCO 2026 Grid.

How it works

  1. [!"ele"] keeps only peaks without an ele tag.
  2. The bounding box covers the Valais and the Mont Blanc massif. About 200 peaks there have no height.
  3. With elevation=1 the table lists them from the highest, so the summits that most deserve an ele come first.

Variations

  • Named peaks only: add ["name"].
  • Other features that often lack a height: node["mountain_pass"="yes"][!"ele"] or nwr["tourism"="alpine_hut"][!"ele"].

Run it from your code

The query is unchanged; elevation=1 in the URL adds the heights. Each height uses one lookup from your elevation allowance.

curl 'https://api.overpass.ch/v1/YOUR_API_KEY/interpreter?elevation=1' \
  --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 →