Constrain character movement to landscape spline

Is it possible to confine the characters movement so that the character will follow along the spline of a road (created with the landscape spline tool) ?