Find parent place using nominatim
I guess the relationship is a bit tricky to discover. In fact i guess there is no relationship in the sense of OSM: I mean your building is not referenced as a member of the University of texas relation.
In a reproducible perspective, what you can do I such a case could be to perform an overpass query, based on the attribute fetched from the Nominatim reverse geocoding query. E.g. here Nominatim tells you that this building has university
for value ? So lets perform a query to know which university it is :
[out:json];
(
relation["amenity"="university"](around:5000,30.2814,-97.73883);
);
out body;
>;
out skel qt;
Request result on overpass turbo
Or you can perform a new Nominatim query, as previously, based on relevant attributes fetched from the first query (like University, Austin, Texas) and see if there is something interesting: Result on Nominatim
Use Zoom Level in query to get to higher level.
e.g At level 18 this place gives way which is street
nominatim.openstreetmap.org/reverse?format=xml&lat=52.5487429714954&
lon=-1.81602098644987&zoom=18&addressdetails=1
and at zoom level 8 this gives relation which corresponds to country
nominatim.openstreetmap.org/reverse?format=xml&lat=52.5487429714954&
lon=-1.81602098644987&zoom=8&addressdetails=1
Hierarchy
Zoom level | Admin level |
---|---|
2 | country |
4 | state |
5 | state_district |
6 | |
7 | county |
8 | village |
9 | city_district |
10 | suburb |