Sphere and spline intersection points

Hello!
Is there a way to get sphere and spline intersection points?
This is required in order for a railcar with 2 bogies to move along a spline correctly.