Actually the question in the title.
There is a table (osm_buildings
) in which the addresses of buildings and their polygons are located. And there is a point, and you need to find the nearest polygons to this point.
Finding the distances between points is very simple and predictable, but how to correctly and most importantly quickly find the distance from the point to the polygon?