def simplify(self, max_distance=None):
        for segment in self.segments:
            segment.simplify(max_distance=max_distance)
Simplify using the Ramer-Douglas-Peucker algorithm: http://en.wikipedia.org/wiki/Ramer-Douglas-Peucker_algorithm
dataset/ETHPy150Open tkrajina/gpxpy/gpxpy/gpx.py/GPXTrack.simplify