Earlier this year , Miles got a close look at a different kind of racing world : along with a partner , he drove a car in the 2005 Dakar Rally , a 5,566-mile race from Barcelona , Spain , to Dakar , Senegal .