[localization] Implements the 2 beacon detection.