External fields as intrinsic geometry