#NEWLINE# def speed_between( self , track_point ) : #NEWLINE# #INDENT# '\n        Compute the speed between specified point and this point.\n\n        NOTE: This is a computed speed, not the GPXTrackPoint speed that comes\n              the GPX file.\n\n        Parameters\n        ----------\n        track_point : GPXTrackPoint\n\n        Returns\n        ----------\n        speed : float\n            Speed returned in meters/second\n        ' #NEWLINE# if ( not track_point ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# seconds = self . time_difference ( track_point ) #NEWLINE# length = self . distance_3d ( track_point ) #NEWLINE# if ( not length ) : #NEWLINE# #INDENT# length = self . distance_2d ( track_point ) #NEWLINE# #UNINDENT# if ( ( not seconds ) or ( length is None ) ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# return ( length / float ( seconds ) )