The Schauder fixed point theorem in geodesic spaces