This is exactly the same as in `Circularize`, right? Let's extract it to `iD.geo.closestNode`.