getting closest point (but not closest node)