I created a postgresql function that helps in reverse resolution of addresses, which is widely used in applications to help customers know the address of the location based only on the latitude and longitude of the point, this function is based on the reverse.php file from the Nominatim project.
the function uses the functions "lookupPoint" and "lookupPolygon" as a base, I haven't applied it to the other functions yet, since I didn't see much need, but if anyone is interested in updating this function, you can comment that I'll be available to help, :)
To create and use the function you need to follow the steps below: