Пример #1
0
    def format_altitude(self, unit='km'):
        """
        Format altitude with unit::

            >>> p = Point(41.5, -81.0, 12.3)
            >>> p.format_altitude()
            '12.3km'
            >>> p = Point(41.5, -81.0, 0)
            >>> p.format_altitude()
            '0.0km'

        :param str unit: Resulting altitude unit. Supported units
            are listed in :meth:`.from_string` doc.
        """
        return format_distance(self.altitude, unit=unit)
Пример #2
0
 def format_altitude(self, unit='km'):
     return format.format_distance(self.altitude, unit)
Пример #3
0
 def format_altitude(self, unit='km'):
     """
     Foamt altitude with unit
     """
     return format_distance(self.altitude, unit=unit)
Пример #4
0
 def format_altitude(self, unit='km'):
     """
     Format altitude with unit
     """
     return format_distance(self.altitude, unit=unit)
Пример #5
0
 def format_altitude(self, unit='km'):
     return format.format_distance(self.altitude, unit)