Almost periodic geodesics on manifolds of hyperbolic type