A computer program product for a transmission control unit configured to carry out a method comprising determining, by a location device in a motor vehicle, a first position related to an installation point of the location device in the motor vehicle, determining a second position related to a vehicle center of gravity based on the first position, wherein the first position is offset by a distance between the installation point of the location device and the vehicle center of gravity, and initiate a gearshift based at least in part on a position of the motor vehicle, the position of the vehicle being related to the first position and the second position, wherein a routine for determining a position of the motor vehicle is implemented by corresponding control commands stored in software.