code: def simplify(self, eps, max_dist_error, max_speed_error, topology_only=False):
          
          for segment in self.segments:
              segment.simplify(eps, max_dist_error, max_speed_error, topology_only)
          return self
docs: In-place simplification of segments
  
          Args:
              max_dist_error (float): Min distance error, in meters
              max_speed_error (float): Min speed error, in km/h
              topology_only: Boolean, optional. True to keep
                  the topology, neglecting velocity and time
                  accuracy (use common Douglas-Ramen-Peucker).
                  False (default) to simplify segments keeping
                  the velocity between points.
          Returns:
              This track