Overpass query example

Glass recycling points

Find recycling containers by the materials they accept. Example: bottle banks in Geneva.

Recycling points carry one tag per material, such as recycling:glass_bottles=yes or recycling:paper=yes.

The query

[out:json][timeout:60];
area["name"="Genève"]["admin_level"="8"]->.a;
nwr["amenity"="recycling"]["recycling:glass_bottles"="yes"](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. ["recycling:glass_bottles"="yes"] keeps only points that accept glass bottles.
  2. Recycling centres are also tagged recycling_type=centre; street containers recycling_type=container.

Variations

  • Batteries, clothes or paper: change the key to recycling:batteries, recycling:clothes or recycling:paper.

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 →