In brief
The sensor takes into account the angle of the rotating part, not the position of the car on the road.
Useful to know
The rotor position sensor measures the angle of the rotor shaft in an electric machine. Bosch describes a non-contact magnetoresistive principle and signal processing in the inverter to determine the position. This assists in the control of the electric drive. [1]
It is important to distinguish rotor position, vehicle speed and geographical location. They describe different things, though they all sound like movement information. One sensor does not automatically replace the others.
In an electric motor circuitry, it traced the relationship between mechanical rotation and control electronics. The sensor gives feedback; it itself does not supply the traction power. The description is of a specific solution and does not mean that all electric motors use the same sensor. The need for inspection or replacement is determined by the documentation and diagnostics of the relevant system.
Sources
For further detail and to check the information: