I have two point layers, let's say one is 'endpoints' and another layer is 'nodes'.
The "endpoints" layer attribute table has a field called
"nearest_node", I want to populate it with names/IDs of the nearest "node".
I have tried using the field calculator to build a proper query, however, I found no way to cycle through all "node" objects on a different layer to find the nearest point.
Is there some easy way to do it within QGIS?