Drawing a path along a spine with branches

Hi, I am wanting to use a line renderer to draw a line along a Spline Container that has multiple spines.
So far i have managed to get the start and end points by getting the nearest point on the container.

So here is the scene setup

What i want is the get the line to only draw along the spline. Any help would be appreciated.