GerdP
(Gerd P)
16
Just in case it might help: In the mkgmap project (1) we compute a file bounds.zip which contains the admin boundaries in a way that allows
to retrieve the wanted information for any position. In mkgmap it is used to fill search indexes.
You can use this functionality to produce a file that contains the osm id and the enclosing boundaries.
Edit: I described this here: https://forum.openstreetmap.org/viewtopic.php?pid=692800#p692800
(1) http://www.mkgmap.org.uk/