rewrote GPS conversion routines