You have a set of coordinates that need to be divided into groups close to each other.
Work with Python regarding PostgreSQL database. I figured out which solution would work, but then I realized that I was probably reinventing the wheel again. Are there libraries that I can use to accomplish this without having my own solution?
Example:

postgresql gis postgis
Chris dutrow
source share