Flat but curvy mesh UV

I would like to map curvy road, but what would be easiest way to generate straight UV for easy texturing? Thanks!

Problem solved!

http://wiki.blender.org/index.php/Extensions:Py/Scripts/Manual/UV/UV_Calculate/Follow_active_quads