Overpass query example

ATMs and banks

Find cash machines and bank branches with one regular expression. Example: Singapore.

ATMs are tagged amenity=atm, bank branches amenity=bank. A regular expression matches both in one search.

The query

[out:json][timeout:60];
area["ISO3166-1"="SG"][admin_level=2]->.sg;
nwr["amenity"~"^(atm|bank)$"](area.sg);
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. ^(atm|bank)$ matches exactly atm or bank. Without ^ and $ it would also match values that only contain these words.
  2. Singapore is a city state, so the country boundary is the city.

Variations

  • ATMs of one operator: add ["operator"="DBS"].
  • Banks with an ATM inside are often tagged atm=yes on the bank.

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 →