def xy_time(self) -> Iterator[Tuple[float, float, float]]:
        """Iterates on longitudes, latitudes and timestamps."""
        iterator = iter(zip(self.coords, self.timestamp))
        while True:
            next_ = next(iterator, None)
            if next_ is None:
                return
            coords, time = next_
            yield (coords[0], coords[1], time.to_pydatetime().timestamp())
def xy_time ( self ) -> Iterator [ Tuple [ float , float , float ] ] : iterator = iter ( zip ( self . coords , self . timestamp ) ) while True : next_ = next ( iterator , None ) if next_ is None : return coords , time = next_ yield ( coords [ 0 ] , coords [ 1 ] , time . to_pydatetime ( ) . timestamp ( ) )
Iterates on longitudes, latitudes and timestamps.