(self)
return bbox
Compute the smallest rectangle that contains the entire track (border box).
Compute the smallest rectangle that contains the entire track (border box).
Compute the smallest rectangle that contains the entire track ( border box ) .
def bbox(self) -> s2sphere.LatLngRect:
        """Compute the smallest rectangle that contains the entire track (border box)."""
        bbox = s2sphere.LatLngRect()
        for line in self.polylines:
            for latlng in line:
                bbox = bbox.union(s2sphere.LatLngRect.from_point(latlng.normalized()))
        return bbox
def bbox ( self ) -> s2sphere . LatLngRect : bbox = s2sphere . LatLngRect ( ) for line in self . polylines : for latlng in line : bbox = bbox . union ( s2sphere . LatLngRect . from_point ( latlng . normalized ( ) ) ) return bbox