# Path: geopy/units.py
# def degrees(radians=0, arcminutes=0, arcseconds=0):
# def radians(degrees=0, arcminutes=0, arcseconds=0):
# def arcminutes(degrees=0, radians=0, arcseconds=0):
# def arcseconds(degrees=0, radians=0, arcminutes=0):
# def kilometers(meters=0, miles=0, feet=0, nautical=0):
# def meters(kilometers=0, miles=0, feet=0, nautical=0):
# def miles(kilometers=0, meters=0, feet=0, nautical=0):
# def feet(kilometers=0, meters=0, miles=0, nautical=0):
# def nautical(kilometers=0, meters=0, miles=0, feet=0):


from geopy import units
}
ABBR_SYMBOLS = {
    'deg': ABBR_DEGREE,
    'arcmin': ABBR_ARCMIN,
    'arcsec': ABBR_ARCSEC
}


def format_degrees(degrees, fmt=DEGREES_FORMAT, symbols=None):
    """
    TODO docs.
    """
    symbols = symbols or ASCII_SYMBOLS
    arcminutes = units.arcminutes(degrees=degrees - int(degrees))
    arcseconds = units.arcseconds(arcminutes=arcminutes - int(arcminutes))
    format_dict = dict(
        symbols,
        degrees=degrees,
        minutes=abs(arcminutes),
        seconds=abs(arcseconds)
    )
    return fmt % format_dict


DISTANCE_FORMAT = "%(magnitude)s%(unit)s"
DISTANCE_UNITS = {
    'km': lambda d: d,
    'm': lambda d: units.meters(kilometers=d),
    'mi': lambda d: units.miles(kilometers=d),
    'ft': lambda d: units.feet(kilometers=d),

# Path: geopy/units.py
# def degrees(radians=0, arcminutes=0, arcseconds=0):
# def radians(degrees=0, arcminutes=0, arcseconds=0):
# def arcminutes(degrees=0, radians=0, arcseconds=0):
# def arcseconds(degrees=0, radians=0, arcminutes=0):
# def kilometers(meters=0, miles=0, feet=0, nautical=0):
# def meters(kilometers=0, miles=0, feet=0, nautical=0):
# def miles(kilometers=0, meters=0, feet=0, nautical=0):
# def feet(kilometers=0, meters=0, miles=0, nautical=0):
# def nautical(kilometers=0, meters=0, miles=0, feet=0):


# Path: geopy/format.py
from geopy import units

}
ABBR_SYMBOLS = {
    'deg': ABBR_DEGREE,
    'arcmin': ABBR_ARCMIN,
    'arcsec': ABBR_ARCSEC
}


def format_degrees(degrees, fmt=DEGREES_FORMAT, symbols=None):
    """
    TODO docs.
    """
    symbols = symbols or ASCII_SYMBOLS
    arcminutes = units.arcminutes(degrees=degrees - int(degrees))
    arcseconds = units.arcseconds(arcminutes=arcminutes - int(arcminutes))
    format_dict = dict(
        symbols,
        degrees=degrees,
        minutes=abs(arcminutes),
        seconds=abs(arcseconds)
    )
    return fmt % format_dict


DISTANCE_FORMAT = "%(magnitude)s%(unit)s"
DISTANCE_UNITS = {
    'km': lambda d: d,
    'm': lambda d: units.meters(kilometers=d),
    'mi': lambda d: units.miles(kilometers=d),
    'ft': lambda d: units.feet(kilometers=d),

    'nm': lambda d: units.nautical(kilometers=d),