Overpass query:
show query
–
Overpass Turbo
[timeout:300][out:json];
(
node(around:1000,48.23405,9.46202)[capital][~"^(addr:housenumber|.*name.*)$"~".",i];
way(around:1000,48.23405,9.46202)[capital][~"^(addr:housenumber|.*name.*)$"~".",i];
rel(around:1000,48.23405,9.46202)[capital][~"^(addr:housenumber|.*name.*)$"~".",i];
node(around:1000,48.23405,9.46202)[place=city][name];
way(around:1000,48.23405,9.46202)[place=city][name];
rel(around:1000,48.23405,9.46202)[place=city][name];
node(around:1000,48.23405,9.46202)[place=locality][name];
way(around:1000,48.23405,9.46202)[place=locality][name];
rel(around:1000,48.23405,9.46202)[place=locality][name];
);
out center tags;