Moved gps distance function to locationupdater