foundation of gps distance