def __str__(self):
        """Pretty printed position string.

        Returns:
            str: Human readable string representation of ``Position`` object
        """
        data = ['GPRMC']
        data.append(self.time.strftime('%H%M%S'))
        data.append('A' if self.status else 'V')
        data.extend(nmea_latitude(self.latitude))
        data.extend(nmea_longitude(self.longitude))
        data.append('%.1f' % self.speed)
        data.append('%.1f' % self.track)
        data.append(self.date.strftime('%d%m%y'))
        if self.variation == int(self.variation):
            data.append('%i' % abs(self.variation))
        else:
            data.append('%.1f' % abs(self.variation))
        data.append('E' if self.variation >= 0 else 'W')
        if self.mode:
            data.append(self.mode)
        data = ','.join(data)
        return '$%s*%02X\r' % (data, calc_checksum(data))
def __str__ ( self ) : data = [ 'GPRMC' ] data . append ( self . time . strftime ( '%H%M%S' ) ) data . append ( 'A' if self . status else 'V' ) data . extend ( nmea_latitude ( self . latitude ) ) data . extend ( nmea_longitude ( self . longitude ) ) data . append ( '%.1f' % self . speed ) data . append ( '%.1f' % self . track ) data . append ( self . date . strftime ( '%d%m%y' ) ) if self . variation == int ( self . variation ) : data . append ( '%i' % abs ( self . variation ) ) else : data . append ( '%.1f' % abs ( self . variation ) ) data . append ( 'E' if self . variation >= 0 else 'W' ) if self . mode : data . append ( self . mode ) data = ',' . join ( data ) return '$%s*%02X\r' % ( data , calc_checksum ( data ) )
Pretty printed position string.

        Returns:
            str: Human readable string representation of ``Position`` object