I have a dataset with coordinates from all letterboxes in a certain area. I want to have all the letterboxes in a maximum of 500m away for everyone. So if there is a place without a letterbox nearby, I want to place there a letterbox (or more than one if it is needed).
I have tried a few options, like placing a radius around the existing letterboxes and then calculate a new point for a new mailbox at the place where are no mailboxes yet.
The other options was to convert de coordinates to meters and calculate the distance with the nearest mailbox. If the distance is bigger then 1000m I want to place a new mailbox between the two point.
Which one of the two options would be the best? And does anyone have an example code?