Optical positioning system knows the way