My project requires me to be able to find the object's geometry based on the DBID in a 2D map. My team has tried using the bounding box approach to estimate an object's coordinates based on the DBID, but this approach only works well in a 3D map, and it is very inaccurate in a 2D setting.
I have also discovered a technique other users have used before to approach this problem: How to get location with dbid in 2D view. However, this technique is not currently applicable because it involves using namespaces/functions that are not accessible. In addition, I have tried some other approaches like finding the coordinates through the object's properties. But it turns out that the coordinate is not stored inside the object's properties.