I'm playing around with various itineraries to minimize riding on a train/bus.

Starting point is Madrid, ending point is Seville. I need to pass through Granada and Cordoba.

Right now it seems that the Madrid-Cordoba-Granada-Seville route work the best because I can ride the Madrid-Cordoba AVE with fairly short rides to follow (Cordoba-Granada, Granada-Seville).

Any ideas?