Text this: Optimal management of distance-based location registration using embedded Markov chain