How can I find index of spline point

What are you trying to do, in general terms? How did you arrive at needing to find the nearest spline point…?