Solution of direct and inverse problems for Laplace type equations by Gr-method