Example #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)
Example #2
0
 def format_altitude(self, unit='km'):
     return format.format_distance(self.altitude, unit)
Example #3
0
File: point.py Project: 0x836/geopy
 def format_altitude(self, unit='km'):
     """
     Foamt altitude with unit
     """
     return format_distance(self.altitude, unit=unit)
Example #4
0
 def format_altitude(self, unit='km'):
     """
     Format altitude with unit
     """
     return format_distance(self.altitude, unit=unit)
Example #5
0
 def format_altitude(self, unit='km'):
     return format.format_distance(self.altitude, unit)