trying to make an infinite proceduraly generated road

Ive already made the landscape generation but i need a road that goes down it i tried using a spline and aligning the z to the ground but i couldn’t get it to work properly then i also need the ground to flatten under the road so it looks right.