Overpass query example

EV charging stations

Find electric vehicle chargers with their sockets and operator. Example: Oslo.

Charging stations are tagged amenity=charging_station. Detail tags such as socket:type2_combo (CCS), capacity and operator say what each offers.

The query

[out:json][timeout:60];
area["name"="Oslo"]["admin_level"="4"]->.a;
nwr["amenity"="charging_station"](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. Oslo is both a municipality and a county (admin_level 4).
  2. out center; handles chargers mapped as an area.

Variations

  • Fast chargers with CCS: add ["socket:type2_combo"].
  • One operator: add ["operator"~"Tesla",i].

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 →