Optoelectronic position measuring apparatus, comprising • a code carrier, which carries an optically detectable position code, • a radiation source for emitting optical radiation onto the code carrier and • a detection element having a multiplicity of light-sensitive receiving regions for receiving at least part of the optical radiation, as a result of which a scanning signal dependent on the position code can be generated and a position of the code carrier relative to the detection element can thus be detected, wherein • the measuring components radiation source and detection element • are arranged parallelly and in a fixed spatial relationship with respect to one another and in each case with an end side facing the code carrier on a carrier element, the carrier element being a printed circuit board, • in each case have a height (h 1, h 2) between the end side and a base, and • in each case have an overhang (h 1 ', h 2 ') between the end side and a front side of the carrier element, said front side facing the code carrier, • the code carrier is movable with one degree of freedom, in particular rotationally or along an axis, and • the code carrier and the carrier element are arranged at a fixed spatial distance (d) with respect to one another, said distance • being at least of the same magnitude as the overhang (h 1 ') of the radiation source, and • being at least of the same magnitude as the overhang (h 2 ') of the detection element, wherein of the measuring components radiation source and detection element at least that measuring component (20, 30) having the greater height (h 1, h 2) is arranged on the carrier element respectively on a plane situated further away from the code carrier in comparison with the front side such that its overhang (h 1 ', h 2 ') is less than its height (h 1, h 2) in particular whereby a smaller value can be chosen for the distance (d), compared with an apparatus in which the measuring components (20, 30) are arranged on a plane defined by the front side. • a code carrier, which carries an optically detectable position code, • a radiation source for emitting optical radiation onto the code carrier and • a detection element having a multiplicity of light-sensitive receiving regions for receiving at least part of the optical radiation, as a result of which a scanning signal dependent on the position code can be generated and a position of the code carrier relative to the detection element can thus be detected, • the measuring components radiation source and detection element • are arranged parallelly and in a fixed spatial relationship with respect to one another and in each case with an end side facing the code carrier on a carrier element, the carrier element being a printed circuit board, • in each case have a height (h 1, h 2) between the end side and a base, and • in each case have an overhang (h 1 ', h 2 ') between the end side and a front side of the carrier element, said front side facing the code carrier, • in each case have a height (h 1, h 2) between the end side and a base, and • in each case have an overhang (h 1 ', h 2 ') between the end side and a front side of the carrier element, said front side facing the code carrier, • the code carrier is movable with one degree of freedom, in particular rotationally or along an axis, and • the code carrier and the carrier element are arranged at a fixed spatial distance (d) with respect to one another, said distance • being at least of the same magnitude as the overhang (h 1 ') of the radiation source, and • being at least of the same magnitude as the overhang (h 2 ') of the detection element, • being at least of the same magnitude as the overhang (h 1 ') of the radiation source, and • being at least of the same magnitude as the overhang (h 2 ') of the detection element,