In this example, we'll be fetching a list of landmarks that are near a given user, along with the user’s details in the same query. PostGIS’ built-in function
ST_Distance can be used to implement this use case.
Note: Most managed database vendors will include PostGIS as part of their Postgres installation. If self-hosting, you may need to first install PostGIS (more information for Docker-based installation can be found here: https://registry.hub.docker.com/r/postgis/postgis/)