#NEWLINE# def walk( self , only_points = False ) : #NEWLINE# #INDENT# '\n        Generator used to iterates through points in GPX file\n\n        Parameters\n        ----------\n        only_point s: boolean\n            Only yield points while walking\n\n        Yields\n        ----------\n        point : GPXTrackPoint\n            Point in the track\n        track_no : integer\n            Index of track containint point. This is suppressed if only_points\n            is True.\n        segment_no : integer\n            Index of segment containint point. This is suppressed if only_points\n            is True.\n        point_no : integer\n            Index of point. This is suppressed if only_points is True.\n        ' #NEWLINE# for ( track_no , track ) in enumerate ( self . tracks ) : #NEWLINE# #INDENT# for ( segment_no , segment ) in enumerate ( track . segments ) : #NEWLINE# #INDENT# for ( point_no , point ) in enumerate ( segment . points ) : #NEWLINE# #INDENT# if only_points : #NEWLINE# #INDENT# ( yield point ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ( yield ( point , point_no , segment_no , point_no ) )