Automatic position detection for cars