The real principle of relativity is a bit more subtle (sometimes called the strong principle): that the effects of gravity can be explained entirely at the level of local geometry, without any need for non-local interaction from the distant body that is generating the gravitational field. To describe the geometry of non-uniform fields, we need more sophisticated mathematical machinery than what is implied by the elevator car thought experiment, but nonetheless, the elevator example is a useful launching point for that type of inquiry.