added functions for gps distance and bearing