Creating multiple meshes side by side according to a curve

Hello.
This is my first post here but I hope I comply all guidelines.

I’m not new with Blender or bpy (Blender Python API) but I’m stuck so hopefully you can help me.
Because of different circumstances I use Blender 3.6. I try to create meshes (especially road lanes = planes with different widths and lengths) based on a curve. The curve can go any way. To start with, I want one lane on the left-hand side of the curve and one lane on the right-hand side.
Is there a (smart) way to get the direction/local orientation of a curve so I can move the created meshes along the correct axes?

I found a solution: I add a vector to the location of the current mesh with the width of the previous mesh.