Hi alan_gr,
thank you very much for your reply and the input. Yes, indeed, I saw “ISO3166-1:alpha3”=“DEU” in another example. It is equal to “ISO3166-1”=“DE”, just referring to the UN alpha3 code of Germany instead of the alpha 2 “DE”. I put some time in understanding the pharmacy example a little bit better ( as you correctly pointed out) and it seems that de:regionalschluessel is a valid key in openstreetmap https://wiki.openstreetmap.org/wiki/DE:Key:de:regionalschluessel, referring to German district level. Thus it seems that this is a crucial element. I was able to change the code, and it runs, for other districts e.g. also
[out:csv( "de:regionalschluessel", name, total )];
area["de:regionalschluessel"~"^01.*"];
foreach->.regio(
( node(area.regio)[amenity=pharmacy];
);
make count "de:regionalschluessel" = regio.set(t[ "de:regionalschluessel"]),
name = regio.set(t["name"]),
total = count(nodes);
out;
);
Yet, I am still unable to change the count level from this "“de:regionalschluessel” to some “admin_level”. Does anyone know how to get that change done?