def walk(self, only_points=False):
        for segment_no, segment in enumerate(self.segments):
            for point_no, point in enumerate(segment.points):
                if only_points:
                    yield point
                else:
                    yield point, segment_no, point_no
Generator used to iterates through track
dataset/ETHPy150Open tkrajina/gpxpy/gpxpy/gpx.py/GPXTrack.walk