When you are hiking along a trail, you will be taking some turns and not all direction will going up, some will be even horizontal. The distance you will travel will be the total length you walked along the trail. The displacement is the just distance between your starting point and where your final destination is.