polyline.length()

Return the length of the polyline.

If the polyline contains no points, 0 is returned.