Selecting/Filtering CogoPoints close to each other

Hi everyone,

This might be a bit hard to do, but im trying to filter out Cogopoints that have a identical Layername, and are in a ceirtain distance from each other. So for instance i have 3 cogopoints named A and they are 100mm from each other. I want them deleted, and that only one point is left between the 3 cogopoints that got deleted.

There might be way of doing this but i cant seem to find a lot of nodes for Cogopoints. Maybe im not searching for the right options. So if anyone has an idea please let me know.

Thank you all in advance,

hi
try