Text this: GPS Theory, Algorithms and Applications