Detecting distance travelled (Cartesian)

Is triangulation the only answer for reference points. It seems like overkill to lay a bunch of base stations around.

Does anyone have any examples of such technies (especially in code!)