spline from coordinates

Hi guys,

can anyone help me please? I want to write a script which creates a Spline by using coordinates. (like from google maps)
i thought of, lets say, 1000 coordinates in a list which will be combined to a spline.
im looking forward to any reply.