Encoder to replace a potentiometer

It would be an absolute encoder, unless starting position is irrelevant