This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Get relation (country) from node

0

I did this request which is able to provide me all nodes I need:

[out:json][timeout:25][bbox:42.410117500000005,2.4872,42.5101175,2.5871999999999997];
(
    node[natural=peak](if:t['ele'] > 1400.2);
    node[place=town];   
    node[place=city]; 
    node[place=village];
);
out body;
>;
out skel qt;

the output result is the one expected, but I don't find in the documentation the way to add to tags or node's id the name of the country for exemple. Is there a possibility to do so using relation?

asked 05 Mar '22, 09:57

Toucouleur's gravatar image

Toucouleur
11223
accept rate: 0%

Source code available on GitHub .