original_docstring: 
          Compute and return interpolated position at time t.
  
          Parameters
          ----------
          t : datetime.datetime
              Timestamp to interpolate at
  
          Returns
          -------
          shapely Point
              Interpolated position along the trajectory at time t
          
docstring: Compute and return interpolated position at time t.
  Parameters
  
  t : datetime.datetime
  Timestamp to interpolate at
  
  Returns
  
  shapely Point
  Interpolated position along the trajectory at time t
docstring_tokens: Compute and return interpolated position at time t . Parameters t : datetime . datetime Timestamp to interpolate at Returns shapely Point Interpolated position along the trajectory at time t
code: def interpolate_position_at(self, t):
          """
          Compute and return interpolated position at time t.
  
          Parameters
          ----------
          t : datetime.datetime
              Timestamp to interpolate at
  
          Returns
          -------
          shapely Point
              Interpolated position along the trajectory at time t
          """
          prev_row = self.get_row_at(t, 'ffill')
          next_row = self.get_row_at(t, 'bfill')
          t_diff = next_row.name - prev_row.name
          t_diff_at = t - prev_row.name
          line = LineString([prev_row[self.get_geom_column_name()], next_row[self.get_geom_column_name()]])
          if t_diff == 0 or line.length == 0:
              return prev_row[self.get_geom_column_name()]
          interpolated_position = line.interpolate(t_diff_at/t_diff*line.length)
          return interpolated_position
code_tokens: def interpolate_position_at ( self , t ) : prev_row = self . get_row_at ( t , 'ffill' ) next_row = self . get_row_at ( t , 'bfill' ) t_diff = next_row . name - prev_row . name t_diff_at = t - prev_row . name line = LineString ( [ prev_row [ self . get_geom_column_name ( ) ] , next_row [ self . get_geom_column_name ( ) ] ] ) if t_diff == 0 or line . length == 0 : return prev_row [ self . get_geom_column_name ( ) ] interpolated_position = line . interpolate ( t_diff_at / t_diff * line . length ) return interpolated_position
short_docstring: Compute and return interpolated position at time t.
  Parameters
short_docstring_tokens: Compute and return interpolated position at time t . Parameters
comment: """
          Compute and return interpolated position at time t.
  
          Parameters
          ----------
          t : datetime.datetime
              Timestamp to interpolate at
  
          Returns
          -------
          shapely Point
              Interpolated position along the trajectory at time t
          """