Details on GetPathCost

What does the function GetPathCost take into account to calculate the result?
I mean, does it take into account the path slope? Some terrain characteristic? Obstacles to overstep? Water? What else?

Any help is very appreciate, thanks.