How to measure a vehicle with a high accuracy with mm?

Boeing Aircraft assembled their 747s in Everett Washington with a ceiling mounted system that functioned similar to GPS and gave 1mm or less measurements.
Paul