A geared motor is provided, including an electric motor, a transmission, a drive shaft and a switching device arranged on the drive shaft. The switching device includes a single housing that is distinct and separate from an electric motor housing and a transmission housing. The switching device also includes a contactless, absolute position-measuring device and an evaluation unit, each provided within the single housing, a gear wheel coupled to the drive shaft, and an output unit. The switching device is coupled to the position-measuring device by a pinion, which rotates about the same rotational axis as the drive shaft.