Algorithms for Global Positioning