When querying OSM through OverpassTurbo, I notice some locations are ploted as polygons (closed ways) instead of nodes:
When I clicked on the node I gt this result:
This is data:
{
"type": "way",
"id": 140180197,
"nodes": [
1535810420,
9649588958,
1535810287,
9649588955,
1535810413,
9649588954,
1535810346,
1535810420
],
"tags": {
"addr:city": "Երևան",
"addr:housenumber": "17",
"addr:postcode": "0006",
"addr:street": "Գարեգին Նժդեհի փողոց",
"building": "retail",
"building:levels": "2",
"name": "«Հայրենիք» առևտրի կենտրոն",
"name:en": "Hayreniq Mall",
"name:ru": "ТЦ \"Айреник\"",
"phone": "+374 10 44 64 03",
"shop": "mall"
}
}
I have this query:
[out:json][timeout:25];
area["ISO3166-1:alpha2"="AM"][boundary=administrative][admin_level~"2|5|6|8"]->.a;
rel[place~"town|city"]['name:en'~"Yerevan"](area.a)->.r;
.r out geom;
.r map_to_area ->.m;
nwr(area.m)["shop"~"mall"];
(._;>;);
out qt;
I want to show all data as a node, how can I convert these ways as a node on the map?