I have a list of geo-positioned elements with decimal coordinates of latitude and longitude, it is necessary to be able to group nearby elements by a distance.
The original data is in a Microsoft SQL Server, if it is with SQL statements, better.
A program in C # is also accepted.
-List of id of the elements and their coordinates
-The radius in meters to group
-coordinates and id list of the elements that are in that radius