@property<EOL><INDENT>def length(self):<DEDENT>
total_length = <NUM_LIT:0><EOL>for location_a, location_b in zip(<EOL>self.locations[:-<NUM_LIT:1>], self.locations[<NUM_LIT:1>:]):<EOL><INDENT>total_length += Line(location_a, location_b).length<EOL><DEDENT>return total_length<EOL>
Calculate total length of the polyline

:return: total length in meters
:rtype: float