Hi
After hours, I come here for help. I’m looking for querying Overpass to find in witch country is a relation. I’ve a relation Id of a city (admin_level=8) and I would like to know in witch country is it (admin_level=2).
Thanks for help
Yearh!
The syntax for is_in : rel(76306); >; is_in->.zones;
[timeout:60];
rel(76306);
>;
is_in->.zones;
area.zones["admin_level"="2"][boundary="administrative"];
rel(pivot._); // transform "area" to "relation"
out tags;
I’ve found the solution from coordinates but cannot find with a id
This query return the country where is the point
[timeout:60];
is_in(47,2)->.zones;
area.zones["admin_level"="2"][boundary="administrative"]; //filter areas
out;
What’s the syntax to replace is_in(47,2)->.zones ;
by a relation Id ?
rel(76306);
out geom;
>;
is_in;
rel(pivot)[admin_level=2][boundary=administrative];
out geom;
This simplifies the process a bit.