code: def get_length(self):
          
          length = 0
          for i, point in enumerate(self.points):
              if i != 0:
                  length += point.distance(self.points[i - 1])
          return length
docs: Calculate and return the length of the line as a sum of lengths
          of all its segments.
  
          :returns:
              Total length in km.