#NEWLINE# def get_bounds( self ) : #NEWLINE# #INDENT# '\n        Gets the latitude and longitude bounds of the GPX file.\n\n        Returns\n        ----------\n        bounds : Bounds named tuple\n            min_latitude : float\n                Minimum latitude of track in decimal degrees [-90, 90]\n            max_latitude : float\n                Maxium latitude of track in decimal degrees [-90, 90]\n            min_longitude : float\n                Minium longitude of track in decimal degrees [-180, 180]\n            max_longitude : float\n                Maxium longitude of track in decimal degrees [-180, 180]\n        ' #NEWLINE# min_lat = None #NEWLINE# max_lat = None #NEWLINE# min_lon = None #NEWLINE# max_lon = None #NEWLINE# for track in self . tracks : #NEWLINE# #INDENT# bounds = track . get_bounds ( ) #NEWLINE# if ( ( not mod_utils . is_numeric ( min_lat ) ) or ( bounds . min_latitude < min_lat ) ) : #NEWLINE# #INDENT# min_lat = bounds . min_latitude #NEWLINE# #UNINDENT# if ( ( not mod_utils . is_numeric ( max_lat ) ) or ( bounds . max_latitude > max_lat ) ) : #NEWLINE# #INDENT# max_lat = bounds . max_latitude #NEWLINE# #UNINDENT# if ( ( not mod_utils . is_numeric ( min_lon ) ) or ( bounds . min_longitude < min_lon ) ) : #NEWLINE# #INDENT# min_lon = bounds . min_longitude #NEWLINE# #UNINDENT# if ( ( not mod_utils . is_numeric ( max_lon ) ) or ( bounds . max_longitude > min_lat ) ) : #NEWLINE# #INDENT# max_lon = bounds . max_longitude #NEWLINE# #UNINDENT# #UNINDENT# return GPXBounds ( min_lat , max_lat , min_lon , max_lon )