Dynamics of the geodesic flow of a foliation