Refactored 'distance to gps location text' logic